v0.138.4
Patch Changes
-
#1171
5a28ef76Thanks @tenphi! - Fix high-contrast scheme rendering of disabled brand-tinted chips on PRIMARY-style buttons. The#<theme>-accent-disabled-surfacetokens (primary,success,danger,warning,note,special) had an inverted contrast pair ([1.4, 1.3]— first value > second), which made the chip slightly less contrasty in high-contrast mode than in regular mode — opposite to the HC scheme's intent and inconsistent with every other contrast pair inpalette.ts. Corrected to[1.4, 1.5]. Light and dark modes are unchanged; only the high-contrast scheme bumps from cr ≈ 1.3 to cr ≈ 1.5 against#surface. -
#1171
5a28ef76Thanks @tenphi! - Special theme:special-variant components (Button,ItemAction,ItemButton, etc.) now render consistently across light, dark, and high-contrast schemes. Previously, dark mode inverted the brand-purple pressed/focused border (#purple-text,mode: 'auto') and the PRIMARY disabled chip (#primary-disabled, scheme-adaptive neutral) — both visibly different from the light-mode design.The fix is a new standalone
specialThemeinsrc/tokens/palette.ts(not extended fromdefaultTheme) whose tokens are allmode: 'fixed', so the resolved OKHSL is identical in every scheme. It emits#special-surface,#special-accent-fill,#special-accent-fill-hover,#special-accent-fill-text,#special-accent-text,#special-accent-disabled-surface, and#special-accent-disabled-surface-text. The PRIMARY disabled state now uses a brand-tinted chip (#special-accent-disabled-surface) instead of a neutral grey, and OUTLINE's disabled fill no longer mirrors thepressedstate. The legacy#fixed-darkand#fixed-primary-textaliases keep working — they now resolve to#special-surfaceand#special-accent-textrespectively. Validation borders (#danger-text/#success-text) intentionally stay scheme-adaptive.