Documentation

  • 312 sections
  • Solid
  • Tailwind or StyleX

Button

Avatar

Gradient

A background wash that fades through the Bayer matrix instead of alpha, in four directions and any palette color.

from
TypePixelColor Defaultseed / blue
to
TypePixelColor | "transparent" Default"transparent"
direction
Type"up" | "down" | "left" | "right" Defaultseed / up
cell
Typenumber (px) Defaultseed / 3
opacity
Typenumber 0…1 Defaultseed / 1
bloom
Type"off" | "low" | "high" | "aura" | object | number Defaultseed / off
seed
Typenumber Defaultundefined
class
Typestring Defaultundefined
renderMode
Type"live" | "static" Default"live"
precompiled
Typestring | { src: string; width?: number; height?: number } Defaultundefined
maxCols / maxRows
Typenumber Default960 / 600 live, 320 / 200 static
Add it to your project
One line copies DitherGradient 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 DitherGradient

Image