Agent skill

Design Tokens Skill: DTCG Tokens in Three Tiers

The design-tokens skill has an AI coding agent generate, extend or audit DTCG design tokens in three tiers, with OKLCH palettes, contrast checks and a validation script for aliases.

Install
/plugin marketplace add plugin87/ux-ui-agent-skills
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the design-tokens skill?

The design-tokens skill is a SKILL.md in the plugin87/ux-ui-agent-skills kit. It produces and maintains design tokens in DTCG format using a primitive, semantic and component hierarchy. It covers colors, type, spacing, shadows, motion and theming, and ends by running a script that validates the JSON and resolves aliases.

The design-tokens skill teaches an agent to write tokens in DTCG format, with a $type and a $value on every entry. It ships in the plugin87/ux-ui-agent-skills kit, beside the token files it edits and the script that checks them.

Use it when you want a color palette, a type scale, spacing, shadow, radius or motion tokens, multi-brand theming, or a check that existing token files are valid.

The three token tiers

  • Primitives hold raw values and are never used directly.
  • Semantic tokens are purpose aliases, such as the color that means a primary action.
  • Component tokens are scoped to one component.
  • Dark mode is applied at the semantic layer, so primitives stay constant.

How a palette is produced

New palettes are generated as eleven OKLCH shades. The skill then checks that the 500 shade reaches at least 4.5 to 1 on white for text, and that the 600 shade reaches 3 to 1 for interface elements.

Contrast doubts go to a Python script or to the kit's accessibility audit skill. Spacing starts from a 4 pixel base, and the type scale follows Major Third.

What changes in your agent's output

  • Output is DTCG JSON that matches the structure of the existing token files, not a loose list of CSS variables.
  • Every token keeps its $description.
  • Values are referenced rather than hardcoded, so a theme change touches one layer.
  • The run ends with validation of JSON syntax and alias resolution.

Who the design-tokens skill is for

Best for

  • Starting a token system from scratch with a sensible hierarchy and accessible palette.
  • Adding multi-brand or density variants to existing tokens through the theming file.
  • Auditing token files for broken aliases before a release.

Not for

  • Standalone use. It reads rules and files from the kit, and stops with a message if the tokens folder is missing.
  • Deciding who may change tokens or how releases work. For a broader design system skill, see uiux-design-system.
  • Starting from an existing brand. For brand-driven starting points, try brand-extract.

Use it with UiChemy

Tokens define the look, UiChemy delivers it. Figma to WordPress brings Figma frames across as editable pages, and Composer edits the result in Elementor or Gutenberg. For rules inside Figma, read these design system rules. Click Get Started on uichemy.com.