extract-tokens

Extract design tokens from rendered webpages and local HTML files.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/I2olanD/ai.to.prototype --skill extract-tokens-i2oland
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-tokens
Source: https://github.com/I2olanD/ai.to.prototype/tree/main/plugin/skills/extract-tokens
Command: npx skills add https://github.com/I2olanD/ai.to.prototype --skill extract-tokens-i2oland

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It removes the manual effort of inspecting a website or HTML file and translating its visual system into reusable design tokens for implementation or review.

Core Features & Use Cases

  • Token extraction from live pages or local files: Capture colors, typography, spacing, radius, shadows, z-index, and motion values from rendered content.
  • Multiple output formats: Export results as W3C DTCG JSON, CSS variables, JavaScript, or Markdown for different handoff and integration needs.
  • Practical workflows: Use it to audit an existing design system, match a reference site before prototyping, or create a token baseline for a new UI direction.

Quick Start

Ask the skill to extract tokens from a URL or local HTML file and save the results to your chosen output path.

Frequently Asked Questions about extract-tokens

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

FAQPage Schema
How do I extract design tokens from a live webpage?

To extract design tokens from a webpage, provide the skill with a URL or local HTML file. It uses headless Chromium rendering to capture colors, typography, spacing, radius, shadows, z-index, and motion values into a structured output.

What is the W3C DTCG JSON format for design tokens?

W3C DTCG JSON is a standardized structured output format for design tokens. This skill exports extracted visual values like colors and typography into W3C DTCG JSON, ensuring consistent visual foundations for design audits and UI prototyping workflows.

Can I convert extracted CSS variables into JavaScript or Markdown?

Yes, you can convert extracted CSS variables into multiple output formats. The skill exports captured design tokens as W3C DTCG JSON, CSS variables, JavaScript, or Markdown to support different handoff and integration needs.

How do I audit an existing design system from a reference site?

To audit an existing design system from a reference site, the skill analyzes rendered content and detects visual themes. It extracts foundational design tokens with configurable confidence filtering to establish a reliable baseline for review.

Does token extraction require a headless Chromium browser?

Yes, token extraction requires headless Chromium rendering. The skill relies on Chromium to accurately render local HTML files and live webpages, detecting themes and capturing true visual values before outputting structured tokens.

What limitations exist when extracting visual foundations from local HTML files?

When extracting visual foundations from local HTML files, the process relies on headless Chromium rendering to capture accurate styles. Complex dynamic content or external assets may impact theme detection and the confidence filtering of extracted tokens.