Colours

DAVE uses a 12-step primitive scale for each colour family, with semantic aliases that map to specific stops. Override the primitives to theme the entire system.

Primitive scales

Neutral

1

Background

2

Surface

3

Hover

4

Border

5

6

Border strong

7

8

Subdued text

9

Secondary text

10

11

12

Foreground

Accent (Indigo)

1

2

Subtle bg

3

4

5

6

7

Border

8

9

Solid

10

Hover

11

Text

12

Success (Green)

1

Subtle bg

2

3

Border

9

Solid

10

Hover

11

Text

Warning (Amber)

1

Subtle bg

2

3

Border

9

Solid

10

Hover

11

Text

Error (Red)

1

Subtle bg

2

3

Border

9

Solid

10

Hover

11

Text

Semantic tokens

Components use these tokens, not the primitive scale directly. Override primitives and semantics update automatically.

TokenValueDescription
Base
--color-backgroundvar(--neutral-1)Page background
--color-surfacevar(--neutral-2)Subtle fill, inputs
--color-surface-hoveredvar(--neutral-3)Hover and highlight fill
--color-cardoklch(100% 0 0)Card and dialog backgrounds
--color-foregroundvar(--neutral-12)Primary text
--color-foreground-secondaryvar(--neutral-9)Secondary and placeholder text
--color-foreground-subduedvar(--neutral-8)Muted hint text
--color-bordervar(--neutral-4)Default border
--color-border-strongvar(--neutral-6)Focused or prominent border
Accent
--color-accentvar(--accent-9)Solid accent — buttons, focus
--color-accent-hovervar(--accent-10)Hovered accent solid
--color-accent-subtlevar(--accent-2)Accent tinted background
--color-accent-subtle-bordervar(--accent-3)Subtle accent border
--color-accent-bordervar(--accent-7)Accent border and focus rings
--color-accent-foregroundvar(--accent-11)Accent text on tinted background
Success
--color-successvar(--green-9)Success solid
--color-success-subtlevar(--green-1)Success background
--color-success-bordervar(--green-3)Success border
--color-success-foregroundvar(--green-11)Success text
Warning
--color-warningvar(--amber-9)Warning solid
--color-warning-subtlevar(--amber-1)Warning background
--color-warning-bordervar(--amber-3)Warning border
--color-warning-foregroundvar(--amber-11)Warning text
Error
--color-errorvar(--red-9)Error solid
--color-error-hovervar(--red-10)Hovered error solid
--color-error-subtlevar(--red-1)Error background
--color-error-bordervar(--red-3)Error border
--color-error-foregroundvar(--red-11)Error text