Agent skill

Extract Design Skill: Real Tokens From Any Live Site

The extract-design skill has an AI coding agent run Dembrandt against a live URL and return real colors, typography, spacing, components and W3C design tokens.

Install
git clone https://github.com/dembrandt/dembrandt-skills.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the extract-design skill?

extract-design is a skill in the dembrandt-skills collection. It tells an agent how to run Dembrandt, a headless Chromium extractor, through its CLI or MCP server. A site's computed CSS becomes colors with confidence scores, type styles, spacing, shadows, component states and W3C design tokens.

The extract-design skill points your agent at Dembrandt, which runs headless Chromium against a URL, walks up to thousands of DOM elements and reads computed CSS. The result is a structured design system with colors scored for confidence.

It is a front end for a separate engine. The skill holds the instructions and declares dembrandt 0.38.0 or newer in its metadata, so the Dembrandt CLI or MCP server has to be available before any real tokens come back.

CLI flags and MCP tools

  • Zero install: npx -y dembrandt <url> fetches the package on first run. Add --json-only for JSON, --dtcg for W3C tokens, --design-md for a brand document and --crawl 5 to follow internal links.
  • Variants: --dark-mode and --mobile capture those modes, --tailwind writes a Tailwind v4 theme block and --html writes a self-contained report.
  • Drift gate: --compare checks a site against a saved baseline and exits 1 when it has drifted.

Over MCP every extraction tool returns a job_id at once, and you poll get_job_status until it reads completed. Pass sync true to block instead. Extraction tools include get_design_tokens, get_color_palette, get_typography, get_spacing and get_motion.

What the extraction returns

  • A deduplicated color palette with high, medium or low confidence, each entry carrying hex, LCH and OKLCH values.
  • Typography styles per context with element counts, plus font source detection and fluid size ramps built from clamp.
  • Spacing values and a scale verdict of 4px, 8px or custom, then border radius, borders and shadows.
  • Button, input, link and badge variants with hover and focus states, plus breakpoints, detected frameworks and icon system.

Who extract-design is for

Best for

  • Seeding a new design system from an existing product, or reading a competitor's real colors, fonts and spacing from its URL.
  • Generating a Tailwind v4 theme or a shadcn theme from observed values. A related skill for Tailwind work is tailwind-design-system.
  • Teams that want a pull request gate that fails when a live site drifts away from saved tokens.

Not for

  • Running without the engine. The skill carries instructions, not an extractor, so with no Dembrandt CLI or MCP server nothing gets extracted.
  • Judging whether a palette is good. It reports what a site does, not what it should do. For that, try better-colors.
  • Docker and most CI containers, unless you set noSandbox. Without it the browser launch fails.

Use it with UiChemy

The tokens this skill reads describe a look, not a WordPress theme. Use them as the brief for an AI build, then import that build with UiChemy AI to WordPress and refine it in Composer. Click Get Started on uichemy.com.