- Home
- Skills
- Frontend & Web Apps
- design-tokens
Design Tokens
Expert in design tokens using the DTCG specification.
Free
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
- Run
npx terrazzo validate tokens.jsonto confirm the structure is sound. - Execute
npx terrazzo buildto generate the./dist/tokens.cssfile. - Reference the CSS variables in your components using
var(--ds-color-semantic-button-bg-primary).
tokens.css
TSX · React component
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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
- terrazzo
Node.js
Permissions
What's inside
Creator
Matt Strom-Awn
Frequently Asked Questions
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.