Dark mode system
Portable agent skills for desktop apps, programming, UI, and web design - Codex, Claude, Cursor, Grok. English SKILL.md playbooks (Photino, Inno, CI, landings).
npx -y skills add swd3k/skills --skill dark-mode-systemAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 19 days oldThe repository was created 19 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Implement light/dark (and system) themes with design tokens and accessible contrast. Use when adding theme toggles, desktop dark UI, or fixing unreadable dark styles.
SKILL.md
1.0 KB, as published. Nobody here has run it
Dark Mode System
Token approach
:root {
--bg: #f6f7f9;
--surface: #ffffff;
--text: #12141a;
--muted: #5c6370;
--accent: #3b82f6;
--danger: #dc2626;
--border: rgba(0,0,0,.08);
}
[data-theme="dark"] {
--bg: #0e1014;
--surface: #171a21;
--text: #eef1f6;
--muted: #9aa3b2;
--accent: #60a5fa;
--danger: #f87171;
--border: rgba(255,255,255,.10);
}
Rules
- Theme via tokens, not scattered hex
- Follow
prefers-color-schemewhen mode = system - Persist user choice in settings
- Test contrast for text, borders, focus rings
- Images/icons may need theme variants
Pitfalls
- Pure
#000backgrounds with gray text (muddy) - Box-shadows that disappear on dark
- Hardcoded white modals in dark app
Acceptance
- Toggle switches all chrome in one frame
- Focus ring visible in both themes