agentsclimarketplace

Dark mode system

Skill swd3k/skills/agent-skills/ui/dark-mode-system

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.From its SKILL.md

Install
npx -y skills add swd3k/skills --skill dark-mode-system

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 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.

SKILL.md

1.0 KB, 284 tokens by cl100k_base, 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-scheme when mode = system
  • Persist user choice in settings
  • Test contrast for text, borders, focus rings
  • Images/icons may need theme variants

Pitfalls

  • Pure #000 backgrounds 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

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.