Shade no dark variants

From TryGhost/Ghost · View interactive version

Shade no dark variants is an AI agent skill from the GitHub repository TryGhost/Ghost. Make dark mode work through Shade's semantic tokens. Use when writing or reviewing `dark:` classes, or when something looks wrong only in dark mode.

How to use this skill

Skill file

Shade no dark variants

Shade's semantic tokens carry both themes. The rules, the fix and the

exceptions live in

Tokens: Dark mode.

Docs links use https://shade.ghost.org. If the project's AGENTS.md says

where Shade's docs are (another address, or a source folder), use that

instead. Fetch web pages with curl -s.

Workflow

  1. Find every dark: class in the code you're writing or reviewing.
  2. For each one that sets a colour, follow the three fix steps in

Dark mode. Pick the replacement token

with CODE0.

  1. Keep a dark: class only when it matches an exception that section names.
  2. When debugging a dark-mode-only problem, change the token rather than

adding a variant.

Self-check

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.