Design Tokens

    by Matt Strom-Awn

    1

    Expert in design tokens using the DTCG specification.

    Free

    2 usesSecurity scanned

    Works with the AI Agents you already use

    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).

    tokens.css

    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.

    Strictly follows DTCG specification; does not support legacy non-standard formats. Requires CLI tools like Terrazzo or jq for execution of transformation scripts.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    2 uses

    Times used to date

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 2 months ago

    • Free with an Agensi account

    Software
    terrazzoNode.js

    Permissions

    Terminal / Shell
    Network Access
    Listed2 months ago

    What's inside

    Creator

    M

    Matt Strom-Awn

    Frequently Asked Questions

    This skill assists in creating, validating, and transforming design tokens specifically following the Design Tokens Community Group (DTCG) specification, ensuring your design system remains consistent across multiple platforms and tools.

    The skill provides expert guidance on working with modern color spaces like OKLCH and Display P3, as well as complex logic including token aliasing, resolver configuration, and multi-mode theming.

    Yes, it is designed to help you generate and refine token files that are compatible with industry-standard tools like Terrazzo, jq, and JSONata for seamless integration into your development pipeline.

    Upon purchase, you receive the full capability to generate DTCG-compliant JSON structures, naming convention strategies, and accessibility-focused token transformations directly within your AI agent.

    The design-tokens skill is built for any AI agent that supports custom skill integration or system prompt extensions, allowing you to bring expert token logic into your existing workflow.

    This skill is regularly updated to reflect the latest drafts and changes from the DTCG specification, ensuring your design system stays ahead of evolving industry standards.

    New in Frontend & Web Apps

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.

    Free