Dark Mode

Use when generating or modifying any visual output that renders in a browser or artifact viewer: HTML pages, CSS, React SSR components, Egregore artifacts, markdown renderers, web components, design-system tokens, Tailwind themes, or standalone demos. Triggers on requests involving dark mode, theme toggles, color systems, card surfaces, browser rendering, or visual polish. The load-bearing lesson: if React SSR emits an inline hex color through `style={}`, CSS dark-mode overrides cannot reach it, so every theme-sensitive color must be emitted as `var(--token)` rather than a resolved hex. Do not use for TUI output, plain markdown files, or non-visual code.

egregore-labs 397b234 16.5 KB Updated

File contents

egregore-labs/egregore/tree/main/.claude/skills/dark-mode commit 397b234abb

Frequently asked questions

npx skillmds@latest add egregore-labs/dark-mode-2