Skill Wiki v0.1.0
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
4.0
Edges
9 out · 7 in
Tokens
92/417/758
$ prime 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

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

Compiled at 2026-05-07