---
name: tryghost-shade-no-dark-variants
description: "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."
license: "MIT"
metadata:
  decimalai-skill-id: "b4ebd809-59ae-4264-bf47-f7372f918b50"
  decimalai-version-id: "893eff7e-c6e4-4391-9d75-6b8d8dc112a4"
  decimalai-version: "1"
  decimalai-body-sha256: "3284b0427ac593fa86d2808837acf010590d79d8ea6fb5773f200ae6a77ad253"
  decimalai-name: "tryghost/shade-no-dark-variants"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "frontend"
  decimalai-source: "https://app.decimal.ai/s/tryghost-shade-no-dark-variants-b4ebd8@1/SKILL.md"
---
# Shade no dark variants

Shade's semantic tokens carry both themes. The rules, the fix and the
exceptions live in
[Tokens: Dark mode](https://shade.ghost.org/docs/tokens.md#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](https://shade.ghost.org/docs/tokens.md#dark-mode). Pick the replacement token
   with [`shade-tokens-not-hex`](../shade-tokens-not-hex/SKILL.md).
3. Keep a `dark:` class only when it matches an exception that section names.
4. When debugging a dark-mode-only problem, change the token rather than
   adding a variant.

## Self-check

- Each remaining `dark:` class is one of the documented exceptions.
- You viewed the changed screen in both themes.
