design-tokens

Guide design token creation and validation per the DTCG specification.

14|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/ilikescience/design-tokens-skill --skill design-tokens-ilikescience
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-tokens
Source: https://github.com/ilikescience/design-tokens-skill/tree/main
Command: npx skills add https://github.com/ilikescience/design-tokens-skill --skill design-tokens-ilikescience

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides domain-specific guidance for creating, validating, and maintaining design tokens using the DTCG specification, helping teams achieve consistent token systems across platforms.

Core Features & Use Cases

  • In-depth guidance on token formats, types, and validation per the DTCG spec.
  • Comprehensive coverage of color spaces (srgb, display-p3, OKLCH) and color value formatting, including hex fallbacks.
  • Clear handling of references and aliasing, plus resolvers for theming across contexts and platforms.
  • Tooling guidance for jq, JSONata, Terrazzo, and Figma exports to enable end-to-end workflows.

Quick Start

Ask Claude Code to guide you through creating a DTCG-compliant token file and resolver setup.

Frequently Asked Questions about design-tokens

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the DTCG specification for design tokens?

The DTCG specification standardizes design token formats, types, and validation to ensure consistent token systems across platforms. It defines structure rules, color formatting, and reference aliasing for interoperable theming workflows.

How do I set up design token aliasing and resolvers for theming?

Design token aliasing uses references to map token values, while resolvers interpret these references to generate context-specific themes. This skill provides configuration guidance and practical examples for setting up resolvers across different platforms.

How do I format color spaces in design tokens using OKLCH and display-p3?

Color spaces like srgb, display-p3, and OKLCH require specific formatting rules in design tokens. The DTCG spec defines how to structure these color values, including hex fallbacks for broader compatibility across rendering engines.

Can I process Figma exports into DTCG-compliant design tokens?

Yes, Figma exports can be processed into DTCG-compliant design tokens using tooling workflows. This skill offers guidance for integrating jq, JSONata, and Terrazzo to transform and validate Figma token outputs end-to-end.

What's the best way to validate design token files against the DTCG spec?

Validating design token files requires checking structure definitions, color formatting rules, and alias resolution against the DTCG specification. Tools like Terrazzo and jq can automate this validation process within your tooling workflow.

Why are my design token references not resolving correctly across platforms?

Design token references may fail due to incorrect aliasing syntax or resolver misconfiguration. The DTCG spec defines strict reference resolution rules, and this skill helps diagnose and fix resolver setup issues for cross-platform theming.