Component Examples

Every element below is styled exclusively with dn-* utility classes.

p-8
p-16
p-24
p-32
px-32 py-12
primary
danger
success
warning
info
secondary
pink
teal

Heading Bold 32px

Subheading Semibold 22px

Body Normal 16px — the quick brown fox jumps over the lazy dog.

Small Light Centered 13px

UPPERCASE TRACKED TEXT

Italic 18px — elegant styling

dn-flex dn-justify-between dn-items-center
Left Center Right
dn-flex dn-justify-center dn-gap-16

Performance

Ultra-lightweight runtime. No build step needed.

🎨

Theming

Custom color tokens, extend the palette in constants.js.

🔧

Extensible

Add new utilities in utilities.js in seconds.

Use breakpoint and pseudo-state prefixes directly in your HTML:

dn-md-p-40  →  @media (min-width: 768px) { .dn-md-p-40 { padding: 40px } } dn-hover-bg-primary  →  .dn-hover-bg-primary:hover { background-color: #2563eb } dn-focus-border-blue  →  .dn-focus-border-blue:focus { border-color: #3b82f6 }