extract-theme

Extract a website's visual theme into shadcn/ui and Tailwind CSS v4 tokens.

1|Updated May 12, 2026
One-click install
npx skills add https://github.com/Firzus/agent-skills --skill extract-theme
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-theme
Source: https://github.com/Firzus/agent-skills/tree/main/skills/web/extract-theme
Command: npx skills add https://github.com/Firzus/agent-skills --skill extract-theme

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill turns a public website’s visual style into reusable design tokens, so you can recreate its look in a shadcn/ui and Tailwind CSS v4 project without manually inspecting every color, font, and radius value.

Core Features & Use Cases

  • Theme extraction from live sites: Captures computed colors, typography, spacing, radius, and shadows from a real browser session.
  • shadcn/ui token mapping: Converts site styles into the standard shadcn token vocabulary, including light and dark mode values when available.
  • Tailwind v4-ready output: Produces a paste-ready @theme inline token block for globals.css or app.css.
  • Use case: A designer sends a marketing site URL, and you generate a starter theme that matches its surface, text, and button styling for a new app.

Quick Start

Ask the AI to extract the theme from a public website URL and return the shadcn/ui Tailwind v4 token block for your project’s global CSS file.

Frequently Asked Questions about extract-theme

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

FAQPage Schema
Why does the extracted theme output use OKLCH conversion for Tailwind CSS v4?

The extracted theme output uses OKLCH conversion because Tailwind CSS v4 utilizes the OKLCH color space for its `@theme inline` tokens, ensuring accurate perceptual color mapping and native compatibility with the framework's design system.

How do I extract a website's color scheme into Tailwind CSS v4 design tokens?

You can extract a website's color scheme into Tailwind CSS v4 design tokens by sampling computed styles from a live Chromium browser session, converting colors to OKLCH, and generating a paste-ready `@theme inline` block for your global CSS file.

Can I generate shadcn/ui theme variables from an existing public website?

Yes, you can generate shadcn/ui theme variables from a public website by capturing its computed colors, typography, spacing, radius, and shadows, then mapping those values directly into the standard shadcn token vocabulary.

Does extracting dark mode tokens from a live website require a real Chromium browser?

Yes, extracting dark mode tokens requires a real Chromium browser to sample computed CSS styles accurately from the rendered page, ensuring the captured colors and shadows reflect the actual visual output for light and dark mapping.

What is the best way to replicate a website's visual style for a shadcn/ui project?

The best way to replicate a website's visual style for a shadcn/ui project is to reverse-engineer its computed styles into a Tailwind v4-ready `@theme inline` token block, capturing surface, text, and button styling for immediate application.

Why does the extracted theme output use OKLCH conversion for Tailwind CSS v4?

The extracted theme output uses OKLCH conversion because Tailwind CSS v4 utilizes the OKLCH color space for its `@theme inline` tokens, ensuring accurate perceptual color mapping and native compatibility with the framework's design system.