feat(ui): high-contrast theme variants, WCAG AA/AAA (LC-192) #238
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/lc-192-high-contrast"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
High-contrast theme variants on the LC-190 token foundation + LC-191 switching.
What lands
main.css):[data-theme="hc-light"]and[data-theme="hc-dark"]- black/white surfaces + text (AAA for body text), always-visible pure-black/white borders (no faint greys), and 700-ish state colors (success/warning/danger) that pass AA against their surface.color-schemeset per variant so native controls/scrollbars match.:focus-visiblenow usesvar(--ring)(themes with the palette) and is thickened to 3px with a larger offset under the HC themes.base.html): explicit values (light/dark/hc-light/hc-dark) pass through;systemupgrades to the matching high-contrast variant whenprefers-contrast: more(and followsprefers-color-scheme);<meta theme-color>mapped per theme; re-resolves on OS color-scheme and contrast changes while on system.User::theme_or_system,post_appearance, and thelc-themecookie-sync inresolve_locale.theme-hc-light/theme-hc-darklabels in en + es.Notes
users.themecolumn.Verification
just test+just test-saasgreen;cargo fmt --allclean;i18n_cataloggate passes. Contrast: hc body text is #000-on-#fff / #fff-on-#000 (AAA); state colors are 700/400 shades chosen for >= AA on their surface.