Documentation

  • 312 sections
  • Solid
  • Tailwind or StyleX

Badge

A small label chip: the button's dither fill at rest, no hover machinery, any palette color and texture variant.

color
TypePixelColor Default"blue"
variant
Type"gradient" | "solid" | "dotted" | "hatched" Default"gradient"
seed
Typenumber Defaultnone
class
Typestring Defaultnone
children
Typecontent Defaultnone
Add it to your project
One line copies DitherBadge and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherBadge

Skeleton

A loading placeholder that shimmers pixel-by-pixel: the field's density breathes through the Bayer matrix instead of a gradient sweep. Size it with classes and compose it into any layout.

seed
Typenumber Defaultnone
class
Typestring Defaultnone
Add it to your project
One line copies DitherSkeleton and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherSkeleton

Spinner

A dithered loader, repainted at 30fps. It's not one shape. A seed samples three axes at once: the silhouette (circle ring, square box-ring, or bar), the flow (sweep like a comet, pulse breathing, or a travelling wave), and the detail (dashes, petals, thickness). So every seed is a genuinely different loader: a rotating ring, a breathing square, dashes racing a bar. Static under reduced motion.

size
Typenumber (px) Default20
color
TypePixelColor Default"blue"
seed
Typenumber (samples a spinner form) Defaultclean arc
renderMode
Type"live" | "static" Default"live"
precompiled
Typestring | { src: string; width?: number; height?: number } Defaultundefined
Add it to your project
One line copies DitherButton, DitherSpinner and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherButton DitherSpinner

Separator

A 2px rule whose pixels dissolve toward both ends through the Bayer matrix: the image component's edge fade, applied to a divider.

orientation
Type"horizontal" | "vertical" Default"horizontal"
class
Typestring Defaultnone
Add it to your project
One line copies DitherSeparator and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherSeparator