Skip to content

Utilities

Low-level utility classes for spacing, layout, color, borders, shadows, and more.

Spacing

Margin (n-m-*) and padding (n-p-*) with a 6-step scale (0–5).

Padding Scale

p-0
p-1
p-2
p-3
p-4
p-5

Scale Reference

StepValueMarginPadding
00.n-m-0.n-p-0
10.25rem (4px).n-m-1.n-p-1
20.5rem (8px).n-m-2.n-p-2
31rem (16px).n-m-3.n-p-3
41.5rem (24px).n-m-4.n-p-4
53rem (48px).n-m-5.n-p-5

Directional Variants

SuffixDirectionProperty
tTopmargin-top / padding-top
bBottommargin-bottom / padding-bottom
lLeftmargin-left / padding-left
rRightmargin-right / padding-right
xHorizontalmargin-inline / padding-inline
yVerticalmargin-block / padding-block
<!-- Margin bottom 3 --> <div class="n-mb-3">...</div> <!-- Padding horizontal 4 --> <div class="n-px-4">...</div> <!-- Center with auto margin --> <div class="n-mx-auto">...</div>

Flexbox

Flex direction, justify, align, wrap, and gap utilities.

Justify Content

.n-justify-start

A
B
C

.n-justify-center

A
B
C

.n-justify-between

A
B
C

.n-justify-evenly

A
B
C

Align Items

.n-items-start

A
B

.n-items-center

A
B

.n-items-end

A
B

Direction & Wrap

.n-flex-col

Row 1
Row 2
Row 3

.n-flex-wrap .n-gap-2

Tag 1
Tag 2
Tag 3
Tag 4
Tag 5
Tag 6

Display

Control element visibility and display type. Includes responsive variants.

ClassValueResponsive
.n-d-nonedisplay: none.n-d-sm-none, .n-d-md-none, .n-d-lg-none
.n-d-blockdisplay: block.n-d-sm-block, .n-d-md-block, .n-d-lg-block
.n-d-flexdisplay: flex.n-d-sm-flex, .n-d-md-flex, .n-d-lg-flex
.n-d-inlinedisplay: inline
.n-d-inline-blockdisplay: inline-block
.n-d-griddisplay: grid

Live Example (resize browser)

Hidden on ≥768px
Visible only ≥768px
Always visible

Background Colors

Apply semantic background colors to any element.

Primary Secondary Success Danger Warning Info Dark Light

Borders & Radius

Border utilities and six border-radius levels.

Border Radius

none
sm
default
lg
xl
full

Border Colors

Primary
Success
Danger
Warning

Directional Borders

border-t
border-b
border-l
border-r

Shadows

Five elevation levels for visual depth and hierarchy.

shadow-sm
shadow
shadow-md
shadow-lg
shadow-xl

Opacity

Control element transparency.

0%
25%
50%
75%
100%

Position

Positioning and z-index utilities.

ClassProperty
.n-relativeposition: relative
.n-absoluteposition: absolute
.n-fixedposition: fixed
.n-stickyposition: sticky
.n-top-0 / .n-right-0 / .n-bottom-0 / .n-left-0Set edge to 0
.n-inset-0inset: 0 (all edges)
.n-z-10, .n-z-50, .n-z-100z-index levels

Width & Height

Common sizing utilities for responsive layouts.

ClassValue
.n-w-fullwidth: 100%
.n-w-halfwidth: 50%
.n-w-autowidth: auto
.n-max-w-sm / md / lg / xlmax-width: 24rem → 36rem
.n-h-fullheight: 100%
.n-h-screenheight: 100vh
.n-min-h-screenmin-height: 100vh

Overflow

Control how content overflows its container.

.n-overflow-hidden .n-overflow-auto .n-overflow-scroll .n-overflow-visible .n-overflow-x-auto .n-overflow-y-auto

Transitions & Transforms

Smooth animations and transform helpers. Hover the boxes to see effects.

Scale
Lift
Color
Fade

Available Classes

ClassApplies
.n-transitionall properties
.n-transition-colorscolor, bg, border
.n-transition-shadowbox-shadow
.n-transition-transformtransform
ClassDuration
.n-duration-7575ms
.n-duration-150150ms (default)
.n-duration-300300ms
.n-duration-500500ms

Helpers

Miscellaneous utility classes for common needs.

ClassPurpose
.n-sr-onlyVisually hidden, accessible to screen readers
.n-pointercursor: pointer
.n-select-nonePrevent text selection
.n-select-allSelect all text on click
.n-img-fluidResponsive image (max-width: 100%)
.n-img-coverCover its container (object-fit: cover)
.n-clearfixClear floated children