---
name: tryghost-shade-tokens-not-hex
description: "Colour Ghost UI with Shade's semantic tokens. Use when choosing colours or styling UI, including surfaces, text, borders and hover states."
license: "MIT"
metadata:
  decimalai-skill-id: "a8b7ea6d-0544-48ff-aade-5a6cde9fa111"
  decimalai-version-id: "26de22d5-5f25-4dc6-8739-118da8205a2c"
  decimalai-version: "1"
  decimalai-body-sha256: "2dad002c6ae1b5a5f45c4727787e536ecd6b1bfea82571a268790d9b5d9bc1c1"
  decimalai-name: "tryghost/shade-tokens-not-hex"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "frontend"
  decimalai-source: "https://app.decimal.ai/s/tryghost-shade-tokens-not-hex-a8b7ea@1/SKILL.md"
---
# Shade tokens, not hex

Every colour on a Ghost screen comes from a Shade token. The rules live in
[Tokens](https://shade.ghost.org/docs/tokens.md).

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](https://shade.ghost.org/docs/tokens.md#common-semantic-tokens).
   Choose between close candidates with
   [Surface elevation](https://shade.ghost.org/docs/tokens.md#surface-elevation),
   [Interactive surfaces](https://shade.ghost.org/docs/tokens.md#interactive-surfaces) and
   [Form control borders](https://shade.ghost.org/docs/tokens.md#form-control-borders).
3. Write it the way
   [Rules of consumption](https://shade.ghost.org/docs/tokens.md#rules-of-consumption) shows,
   in classes and in stylesheets.
4. When no semantic token fits, [Two flavours](https://shade.ghost.org/docs/tokens.md#two-flavours)
   and [Source files](https://shade.ghost.org/docs/tokens.md#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`](../shade-no-dark-variants/SKILL.md).
