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

shade-tokens-not-hex

What it does

This skill tells an AI agent to pick colors for an interface from Shade's named tokens rather than fixed color codes. It is for developers who want their screens to stay consistent with Ghost's design.

When to use it

  • ✓When you choose colors for backgrounds, text, borders, or hover states.
  • ✓When you are reviewing an interface for hard-coded color values.
  • ✓When you need a color for a case that no standard token covers.

Skill link

https://github.com/TryGhost/Ghost/blob/main/apps/shade/skills/shade-tokens-not-hex/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-tokens-not-hex/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

“I want to color the background and borders of my card in my Ghost app, using the proper design tokens.”

5 new skills a week. 1 minute to read.

How it works

The agent names the job each color does, looks up the matching semantic token, and writes it in the form the docs show. It uses a raw token only where the docs allow.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Shade tokens, not hex

Every colour on a Ghost screen comes from a Shade token. The rules live in Tokens.

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. Name the job of each colour you're about to write: canvas, surface, floating menu, text, border, form control, hover, destructive or focus.
  2. Look the job up in Common semantic tokens. Choose between close candidates with Surface elevation, Interactive surfaces and Form control borders.
  3. Write it the way Rules of consumption shows, in classes and in stylesheets.
  4. When no semantic token fits, Two flavours and Source files say what to use instead.

Self-check

  • Every colour, border and hover in your diff is a semantic token, or a raw token for a case the docs allow.
  • The screen looks right in both light and dark mode. For any dark: class, run shade-no-dark-variants.
FAQ

Why use tokens instead of hex codes?

Tokens keep colors consistent across the design system, and semantic tokens also adjust to the active theme.

What if no token fits?

The docs describe how to use another kind of token or source file for that case.

How does it check my work?

Its self-check asks that every color in your changes be a semantic token, or a raw token the docs allow.

Details

Original description by the author

Colour Ghost UI with Shade's semantic tokens. Use when choosing colours or styling UI, including surfaces, text, borders and hover states.

repo: TryGhost/Ghost

Popularity

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills