extract-tokens

Extract design tokens from consolidated patterns into W3C DTCG-compliant JSON.

3|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/GDSDN/kord-aios --skill extract-tokens
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-tokens
Source: https://github.com/GDSDN/kord-aios/tree/main/src/features/builtin-skills/kord-aios/design-system/extract-tokens
Command: npx skills add https://github.com/GDSDN/kord-aios --skill extract-tokens

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of a comprehensive design token system from existing design patterns, streamlining the process of establishing a consistent visual language across projects.

Core Features & Use Cases

  • Automated Token Generation: Creates layered design tokens (core, semantic, component) from consolidated design patterns.
  • Multi-Format Exports: Generates tokens in various formats including YAML, W3C DTCG JSON, JSON, CSS, Tailwind, and SCSS.
  • Use Case: After consolidating your design system's colors, spacing, and typography, use this Skill to automatically generate all necessary token files for immediate use in development.

Quick Start

Run the tokenize command to extract design tokens from your consolidated patterns.

Frequently Asked Questions about extract-tokens

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

FAQPage Schema
How do I generate design tokens from existing UI patterns?

You can generate design tokens by running the tokenize command on your consolidated design elements. This process extracts colors, spacing, and typography patterns, producing a layered token architecture with OKLCH values and W3C DTCG-compliant JSON.

Can I export CSS variables and Tailwind config from a design token system?

Yes, you can export CSS variables and Tailwind config from a design token system. The extraction supports multiple export formats including YAML, JSON, CSS, Tailwind config, and SCSS for immediate integration into your UI development workflow.

What are W3C DTCG-compliant JSON design tokens and when do I need them?

W3C DTCG-compliant JSON design tokens are structured variables following the Design Tokens Community Group standard for interoperability. You need them when establishing a consistent visual language across projects and tools, ensuring tokens are parsed correctly by different platforms.

How do I prepare my design system for tokenization?

To prepare your design system for tokenization, you must consolidate your design elements into recognized patterns first. This includes standardizing your core colors, spacing scales, and typography rules before running the automated token extraction.

What is the best way to structure design tokens for UI development?

The best way to structure design tokens for UI development is using a layered architecture. This Skill automatically organizes extracted patterns into core, semantic, and component layers, ensuring scalable and maintainable styling variables.