What problem does it solve?
Many browser-rendered artifacts break dark mode because server-side rendering emits resolved hex colors or library color references inline, preventing CSS variable overrides from remapping theme colors at runtime; this Skill enforces patterns and constraints so theme-sensitive colors remain overridable across renders.
Core Features & Use Cases
- Enforce emitting theme-sensitive colors as CSS variable references so client-side and CSS overrides can remap light and dark palettes.
- Provide concrete rules and palette tokens for React SSR, standalone HTML artifacts, Tailwind integration, markdown renderers, and email fallbacks.
- Offer a pre-ship checklist and signature patterns: data-theme on html, head-first theme restoration to avoid flash, a three-state persistent toggle, and anti-patterns to grep out.
- Use cases include fixing React SSR components that serialize resolved colors, converting inline-style render paths to variable-first outputs, and aligning design-system tokens for warm dark surfaces.
Quick Start
Replace theme-sensitive inline colors with CSS variable references, ensure data-theme is placed on the html element, and add a blocking head-run theme restore plus a three-state persistent toggle.