rule @community/rule-color-dark-mode-cascade

Color Dark Mode Cascade

Dark mode MUST be implemented via a CSS-cascade strategy keyed on `@media (prefers-color-scheme: dark)` or a single root-level `[data-theme='dark']` selector that flips token values.…

Skill
@community
Domain
visual-design
Version
1.0.0
Quality
0.0
Edges
0 out · 0 in
Tokens
92/439/909
$ aoe install @community/rule-color-dark-mode-cascade

Projection

Always in _index.xml · the agent never has to ask for this.

ColorDarkModeCascade [rule] v1.0.0

Dark mode MUST be implemented via a CSS-cascade strategy keyed on @media (prefers-color-scheme: dark) or a single root-level [data-theme='dark'] selector that flips token values. Hand-edited per-component dark colors, JS-driven inline-style toggling, and duplicated 'dark' class variants are forbidden.

Source

aoe-engine/examples/frontend-design/primes/compiled/@community/rule-color-dark-mode-cascade/atom.yaml