Design tokens: themes on any element, primary-inverse, form template
Follow-ups from the reference site's first visual test: - data-theme="dark"/"light" switches the tokens on any element (LIGHT_SELECTOR, DARK_SELECTOR as selector lists); the base layer colours a themed panel's text - inverted sections re-map primary / primary-hover / primary-text to the new primary-inverse / primary-inverse-text roles; the contrast report checks them (inherited roles resolved on the ancestor, as the cascade does) - ipal-form formClasses.ts on token utilities + buttonClass(); theme.md: one-icon ThemeSwitcher pattern (the default two-option toggle stays) Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
51f80cea13
commit
d6675d2979
@@ -134,8 +134,9 @@
|
||||
letter-spacing: var(--ipal-tracking-heading);
|
||||
line-height: var(--ipal-lh-heading);
|
||||
}
|
||||
/* a scope that re-maps the text roles (data-surface="inverse") also sets its own text colour */
|
||||
[data-surface] {
|
||||
/* a scope that re-maps the text roles (data-surface="inverse", a nested data-theme panel) also sets its text colour */
|
||||
[data-surface],
|
||||
[data-theme] {
|
||||
color: var(--ipal-text);
|
||||
}
|
||||
:focus-visible {
|
||||
|
||||
Reference in New Issue
Block a user