Skip to content
Skillpedia
Interfaces (UI/UX)56k · #3283

shade-no-dark-variants

What it does

This skill tells an AI agent how to handle dark mode in Shade-based interfaces. It is for developers who want their screens to look right in both light and dark themes.

When to use it

  • ✓When you write or review dark mode classes in a Shade interface.
  • ✓When a screen looks wrong only in dark mode.
  • ✓When you are unsure whether a dark color class is needed.

Skill link

https://github.com/TryGhost/Ghost/blob/main/apps/shade/skills/shade-no-dark-variants/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/TryGhost/Ghost/blob/main/apps/shade/skills/shade-no-dark-variants/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“My Ghost app screen looks wrong only in dark mode, and I want to fix it the proper way.”

5 new skills a week. 1 minute to read.

How it works

The agent finds any dark-mode color classes and swaps them for Shade's semantic tokens, which switch between themes automatically. It keeps a dark class only for the few documented exceptions.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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 shade-tokens-not-hex.
  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.
FAQ

Why avoid separate dark color classes?

Shade's semantic tokens already handle both themes, so the skill favors them over separate dark classes.

Are there any exceptions?

Yes. The docs list a few cases where a dark class is still allowed.

What should I check after a change?

The skill says to view the changed screen in both light and dark themes.

Details

Original description by the author

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.

repo: TryGhost/Ghost

Popularity

GitHub stars
56k
Ranking position
#3283
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills