design.md icon indicating copy to clipboard operation
design.md copied to clipboard

Add a11y lint rules for remaining #116 items (2, 3, 6, 10)

Open drmikecrypto opened this issue 5 months ago • 0 comments

Summary

  • Add borderColor component sub-token and WCAG 1.4.11 non-text-contrast lint rule (3:1 border vs background)
  • Add color(display-p3 ...) / color(srgb ...) parser support and wide-gamut-palette lint rule
  • Document forced-colors elevation fallbacks in spec; add missing-forced-colors-guidance prose lint
  • Document interactive state variant conventions; add interactive-state-tokens lint for missing hover/disabled and opacity-only disabled states
  • Pass documentSections and colorSources through DesignSystemState for 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)

drmikecrypto avatar Jun 28 '26 09:06 drmikecrypto