design.md
design.md copied to clipboard
Add a11y lint rules for remaining #116 items (2, 3, 6, 10)
Summary
- Add
borderColorcomponent sub-token and WCAG 1.4.11non-text-contrastlint rule (3:1 border vs background) - Add
color(display-p3 ...)/color(srgb ...)parser support andwide-gamut-palettelint rule - Document forced-colors elevation fallbacks in spec; add
missing-forced-colors-guidanceprose lint - Document interactive state variant conventions; add
interactive-state-tokenslint for missing hover/disabled and opacity-only disabled states - Pass
documentSectionsandcolorSourcesthroughDesignSystemStatefor prose and palette checks
Test plan
- [x]
bun run spec:gen - [x]
bun test(291 pass) — non-text-contrast, wide-gamut-palette, missing-forced-colors-guidance, interactive-state-tokens, types, spec, broken-ref
Addresses #116 (items 2 partial, 3, 6, 10)