Design Tokens

    1

    Expert in design tokens using the DTCG specification.

    Free

    Security scanned

    Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    design-tokens

    Example session with this skill installed

    Create a DTCG compliant color token for a brand blue using sRGB components and a semantic alias for a primary button background. Include a Terrazzo config for CSS output.

    • Read your context and instructions
    • Compiled the design-tokens
    • Generated the UI component

    I have generated the DTCG compliant token structure and the corresponding Terrazzo configuration to export these as CSS variables.

    DTCG Token Definition

    {
      "color": {
        "primitive": {
          "$type": "color",
          "blue-500": {
            "$value": {
              "colorSpace": "srgb",
              "components": [0.145, 0.388, 0.922],
              "hex": "#2563eb"
            },
            "$description": "Primary brand blue"
          }
        },
        "semantic": {
          "$type": "color",
          "button-bg-primary": {
            "$value": "{color.primitive.blue-500}",
            "$description": "Background color for primary action buttons"
          }
        }
      }
    }
    

    Terrazzo Configuration

    import { defineConfig } from "@terrazzo/cli";
    import pluginCSS from "@terrazzo/plugin-css";
    
    export default defineConfig({
      tokens: ["./tokens.json"],
      outDir: "./dist/",
      plugins: [
        pluginCSS({
          filename: "tokens.css",
          variablePrefix: "ds"
        })
      ]
    });
    

    Next steps

    1. Run npx terrazzo validate tokens.json to confirm the structure is sound.
    2. Execute npx terrazzo build to generate the ./dist/tokens.css file.
    3. Reference the CSS variables in your components using var(--ds-color-semantic-button-bg-primary).

    design-tokens.tsx

    TSX · React component

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Expert in design tokens using the DTCG specification. Use this skill when users ask about design tokens, DTCG format, token validation, formatting, transformation, color spaces (sRGB, Display P3, OKLCH), references and aliasing, resolvers, theming with modifiers/contexts, multi-platform design systems, accessibility, or working with tools like jq, jsonata, and terrazzo. Helps with token file creation, resolver configuration, structure, naming conventions, and best practices.

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 8 days ago

    • Free to download with an account

    Needs access to

    Terrazzo
    Designtokens
    Github

    Listed8 days ago

    What's inside

    Frequently Asked Questions