Documentation

  • 312 sections
  • Solid
  • Tailwind or StyleX

Button

A button printed in tone classes with the page; its density lifts on hover and again on press. Four fills, seven colors, optional bloom, and static/precompiled raster paths.

color
TypePixelColor Defaultseed / blue
variant
Type"gradient" | "dotted" | "hatched" | "solid" Defaultseed / gradient
bloom
Type"off" | "low" | "high" | "aura" | object | number Defaultseed / off
cell
Typenumber (px) Defaultseed / 2
seed
Typenumber Defaultundefined
type
Type"button" | "submit" | "reset" Default"button"
loading / disabled
Typeboolean Defaultfalse
class
Typestring Defaultundefined
renderMode
Type"live" | "static" Default"live"
precompiled
Typestring | { src: string; width?: number; height?: number } Defaultundefined
Add it to your project
One line copies DitherButton 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

Avatar

Gradient

Image