1# Color
2
3Read tokens.css for current values and RULES.md for intent (R-02/R-08).
4Inspect [tokens.css](/brand-workshop/system/tokens) for live swatches.
5
6## Use roles, not substitute palettes
7
8`--w-ink` is primary text; `--w-ink-body` is running copy;
9`--w-ink-muted` supports it. `--w-ink-ghost` is deliberate de-emphasis
10and eligible eyebrows, not a default for small body text.
11`--w-line` is divider color, not a text color or a control's full-ink
12outline. `--w-accent` carries emphasis and interactive feedback.
13
14Use `--w-on-ink` for content on a solid ink or accent treatment. Check
15the actual pairing rather than assuming every token pair is accessible.
16Do not use color alone to communicate focus, selection or meaning.
17
18## Action colors
19
20`--w-accent` remains feedback and interactive emphasis. It is not a
21replacement for every button fill. `--w-fill-yield` identifies the Book
22a demo path; `--w-ink` fills the primary action; `--w-surface-control`
23and `--w-control-border` give an outlined action a white surface over a
24drawing ground.
25
26Yield is a named demo role, not a generic second-brand-color option.
27Use it only where the action hierarchy calls for a demo path.
28
29## Surfaces
30
31The page owns `--w-surface-page`; components ask for
32`--w-surface-raised` or `--w-surface-sunken`.
33`--w-surface-grid` is the explicitly chosen drawing ground.
34`--w-scrim` supports a control over media, not an arbitrary grey panel.
35
36## Inversion
37
38`data-invert='true'` restates the same roles on a scope or nested
39component. Use roles inside it rather than swapping colors manually.
40The reverse accent is lifted, not just a mechanical color inversion.
41Do not interpret `data-invert='false'` as a reset of an inverted ancestor.
42
43Inspect nested inverted components as well as a fully inverted page.
44Derived token aliases need declarations in the scope where their
45inputs change. The floating shadow must not turn into white ink.
46
47## Exceptions and review
48
49R-02 permits figure-owned chart palettes where series need more steps.
50Do not promote every chart color into a general brand color.
51Check real font sizes, translucent layers, images and surfaces for
52contrast. A token is not an accessibility guarantee.
53
54Related source: docs/effects.md, docs/buttons.md and
55docs/graphic-elements.md.
56[Effects](/brand-workshop/system/effects) ·
57[Buttons](/brand-workshop/system/buttons) ·
58[Graphic elements](/brand-workshop/system/graphic-elements).