Color Palette
17 color scales × 10 shades each (-0 lightest through -9 darkest). 16 scales include semantic tokens — -filled, -light, and -outline — that automatically shift shades between light and dark mode.
Color Scales
All raw palette values are available as --dv-color-{name}-{0-9}. These are static hex values that never change with the theme — use them when you need a specific shade directly.
Semantic Variants
16 scales have semantic variant tokens that components consume. Each exposes a filled (solid background), light (tinted background), and outline (border only) variant. Toggle the theme in the sidebar to see how each shifts between modes.
Surface & Interface Tokens
These tokens define the base UI surfaces and switch between light and dark mode automatically via the data-dv-color-scheme attribute on <html>.
CSS Variable Reference
| Pattern | Example | Notes |
|---|---|---|
--dv-color-{name}-{0-9} | --dv-color-blue-6 | Raw palette shade — static, never changes with theme |
--dv-color-{name}-filled | --dv-color-blue-filled | Filled variant background (shade 6 light / shade 7 dark) |
--dv-color-{name}-filled-hover | --dv-color-blue-filled-hover | Filled variant hover state |
--dv-color-{name}-filled-color | --dv-color-blue-filled-color | Text color on filled background (usually white) |
--dv-color-{name}-light | --dv-color-blue-light | Light variant background (shade 0 in light / rgba 0.15 in dark) |
--dv-color-{name}-light-hover | --dv-color-blue-light-hover | Light variant hover state |
--dv-color-{name}-light-color | --dv-color-blue-light-color | Text color on light background (shade 7 light / shade 2–4 dark) |
--dv-color-{name}-outline | --dv-color-blue-outline | Outline variant border color |
--dv-color-{name}-outline-hover | --dv-color-blue-outline-hover | Background on hover for outline variant |
--dv-color-{name}-outline-color | --dv-color-blue-outline-color | Text color for outline variant |
--dv-color-primary-* | --dv-color-primary-filled | Alias pointing to the active primary color (default: blue) |