Skip to content

Decorations

The decorations bundle provides border-radius, box-shadow, border, and opacity utility classes.

Import

js
import '@nikelaz/nadir/dist/nadir-decorations.min.css';

Or as part of the full bundle:

js
import '@nikelaz/nadir/dist/nadir.min.css';

Border Radius

Named Variants

Classborder-radius
.round-none0px
.round1rem (same as md)
.round-full9999px — pill shape
.round-circle50% — use with equal width/height for a circle

Scaled Variants

ClassValue
.round-3xs0.1rem
.round-2xs0.25rem
.round-xs0.5rem
.round-sm0.75rem
.round-md1rem
.round-lg1.25rem
.round-xl1.5rem
.round-2xl1.75rem
.round-3xl2rem

Shadows

Drop Shadows

ClassDescription
.shadow-noneNo shadow
.shadow-smSmall drop shadow
.shadowDefault drop shadow (alias for .shadow-md)
.shadow-mdMedium drop shadow
.shadow-lgLarge drop shadow
.shadow-xlExtra large drop shadow
.shadow-2xl2× extra large drop shadow

Inset Shadows

ClassDescription
.shadow-inner-smSmall inset shadow
.shadow-innerDefault inset shadow (alias for .shadow-inner-md)
.shadow-inner-mdMedium inset shadow
.shadow-inner-lgLarge inset shadow
.shadow-inner-xlExtra large inset shadow
.shadow-inner-2xl2× extra large inset shadow

Border

Border classes use currentColor so the border inherits the element's text color. Control the actual color by setting color on the element or a parent.

Width

ClassPropertyValue
.borderborder1px solid currentColor
.border-2border2px solid currentColor
.border-4border4px solid currentColor
.border-nonebordernone

Directional

ClassPropertyValue
.border-topborder-top1px solid currentColor
.border-rightborder-right1px solid currentColor
.border-bottomborder-bottom1px solid currentColor
.border-leftborder-left1px solid currentColor

Opacity

Classopacity
.opacity-00
.opacity-250.25
.opacity-500.5
.opacity-750.75
.opacity-1001

Useful for disabled states, overlays, and placeholder content:

html
<button class="opacity-50 cursor-not-allowed" disabled>Disabled</button>