designlang-design-extract
Extract complete design systems from any website — colors, typography, spacing, shadows, and more — using the designlang CLI.
What this skill does
# DESIGNLANG — Design System Extraction
> Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection.
**designlang** crawls any website with a headless browser (Playwright), extracts every computed style from the live DOM, and generates 8 output files: AI-optimized markdown, visual HTML preview, Tailwind config, React theme, shadcn/ui theme, Figma variables, W3C design tokens, and CSS custom properties.
## Installation
```bash
# No install needed — run directly
npx designlang https://stripe.com
# Install globally
npm install -g designlang
# Install as an agent skill
npx skills add Manavarya09/design-extract
```
## Core Commands
### Basic Extraction
```bash
# Extract everything from a site
npx designlang https://stripe.com
# Extract everything with all captures enabled
npx designlang https://stripe.com --full
# Custom output directory and file prefix
npx designlang https://stripe.com --out ./tokens --name stripe
# Wait for SPA to load before extracting
npx designlang https://app.example.com --wait 2000
# Crawl multiple internal pages for site-wide tokens
npx designlang https://stripe.com --depth 3
```
### Specialized Extraction
```bash
# Extract dark mode styles
npx designlang https://vercel.com --dark
# Capture at 4 responsive breakpoints
npx designlang https://stripe.com --responsive
# Capture hover/focus/active interaction states
npx designlang https://stripe.com --interactions
# Take component screenshots (buttons, cards, nav, hero)
npx designlang https://stripe.com --screenshots
# Everything at once
npx designlang https://stripe.com --full
```
### Authentication
```bash
# With cookies for protected pages
npx designlang https://internal-app.com --cookie "session=abc123" --cookie "user_id=42"
# With custom headers
npx designlang https://internal-app.com --header "Authorization:Bearer $TOKEN"
# Combined
npx designlang https://app.example.com \
--cookie "session=$SESSION_COOKIE" \
--header "X-API-Key:$API_KEY"
```
### Utility Commands
```bash
# Score a site's design quality (A-F rating, 7 categories)
npx designlang score https://vercel.com
# Compare two sites side-by-side
npx designlang diff https://stripe.com https://paddle.com
# Compare N brands in a matrix
npx designlang brands stripe.com vercel.com github.com linear.app
# Apply extracted design directly to your project (auto-detects framework)
npx designlang apply https://stripe.com --dir ./my-app
# Generate a working Next.js starter with extracted design
npx designlang clone https://stripe.com
# Monitor a site for design changes hourly
npx designlang watch https://stripe.com --interval 60
# Sync local tokens with live site
npx designlang sync https://stripe.com --out ./src/tokens
# View design change history
npx designlang history https://stripe.com
```
## Output Files
Running `npx designlang https://stripe.com` produces:
| File | Purpose |
|------|---------|
| `stripe-com-design-language.md` | AI-optimized markdown with all 19 design sections |
| `stripe-com-preview.html` | Visual report with swatches, type scale, a11y score |
| `stripe-com-design-tokens.json` | W3C Design Tokens format |
| `stripe-com-tailwind.config.js` | Drop-in Tailwind CSS theme |
| `stripe-com-variables.css` | CSS custom properties |
| `stripe-com-figma-variables.json` | Figma Variables import (light + dark) |
| `stripe-com-theme.js` | React/CSS-in-JS theme (Chakra, Stitches, etc.) |
| `stripe-com-shadcn-theme.css` | shadcn/ui `globals.css` variables |
## Full CLI Reference
```bash
designlang <url> [options]
Options:
-o, --out <dir> Output directory (default: ./design-extract-output)
-n, --name <name> Output file prefix (default: derived from URL)
-w, --width <px> Viewport width (default: 1280)
--height <px> Viewport height (default: 800)
--wait <ms> Wait after page load for SPAs (default: 0)
--dark Also extract dark mode styles
--depth <n> Internal pages to crawl (default: 0)
--screenshots Capture component screenshots
--responsive Capture at multiple breakpoints
--interactions Capture hover/focus/active states
--full Enable all captures
--cookie <val> Cookie for auth pages (name=value, repeatable)
--header <val> Custom header (name:value, repeatable)
--framework <type> Only generate specific theme (react, shadcn)
--no-history Skip saving to history
--verbose Detailed progress output
```
## Common Patterns
### Pattern 1: Extract and apply to a Tailwind project
```bash
# Extract design tokens from a reference site
npx designlang https://linear.app --out ./design-tokens --name linear
# The generated tailwind.config.js can be merged into your project:
# ./design-tokens/linear-tailwind.config.js
```
Generated `tailwind.config.js` looks like:
```js
/** @type {import('tailwindcss').Config} */
module.exports = {
theme: {
extend: {
colors: {
primary: '#5E6AD2',
background: '#FFFFFF',
surface: '#F7F8F9',
// ... all extracted colors
},
fontFamily: {
sans: ['Inter', 'system-ui', 'sans-serif'],
},
fontSize: {
xs: ['11px', { lineHeight: '16px' }],
sm: ['13px', { lineHeight: '20px' }],
base: ['15px', { lineHeight: '24px' }],
// ... full type scale
},
borderRadius: {
sm: '4px',
md: '6px',
lg: '8px',
// ... extracted radii
},
boxShadow: {
card: '0 1px 3px rgba(0,0,0,0.12)',
// ... extracted shadows
},
},
},
}
```
### Pattern 2: Feed the markdown to an LLM
```bash
# Extract the AI-optimized markdown
npx designlang https://stripe.com --out ./tokens
# Then use in a prompt:
cat ./tokens/stripe-com-design-language.md | \
pbcopy # macOS: copies to clipboard
# Or reference it directly in Claude/Cursor:
# "Use the design language in ./tokens/stripe-com-design-language.md
# to style this component..."
```
### Pattern 3: Compare competitors
```bash
npx designlang brands stripe.com braintree.com paddle.com adyen.com
# Generates:
# brands.md — markdown comparison matrix
# brands.html — visual side-by-side with color overlap analysis
```
### Pattern 4: Apply to a shadcn/ui project
```bash
# Auto-detect project structure and write to the right files
npx designlang apply https://stripe.com --dir ./my-nextjs-app
# Or manually use the generated shadcn theme:
# Copy stripe-com-shadcn-theme.css content into app/globals.css
```
Generated `shadcn-theme.css`:
```css
@layer base {
:root {
--background: 0 0% 100%;
--foreground: 222.2 84% 4.9%;
--primary: 238 72% 57%;
--primary-foreground: 210 40% 98%;
--muted: 210 40% 96.1%;
--muted-foreground: 215.4 16.3% 46.9%;
--border: 214.3 31.8% 91.4%;
--radius: 0.5rem;
/* ... all extracted variables */
}
}
```
### Pattern 5: W3C Design Tokens for tooling
```bash
npx designlang https://github.com --out ./tokens
```
Generated `design-tokens.json`:
```json
{
"$schema": "https://design-tokens.github.io/community-group/format/",
"color": {
"primary": {
"$value": "#0969da",
"$type": "color"
},
"background": {
"default": {
"$value": "#ffffff",
"$type": "color"
}
}
},
"typography": {
"fontFamily": {
"sans": {
"$value": "-apple-system, BlinkMacSystemFont, 'Segoe UI'",
"$type": "fontFamily"
}
}
}
}
```
### Pattern 6: React theme object
```bash
npx designlang https://chakra-ui.com --out ./tokens
```
Generated `theme.js`:
```js
export const theme = {
colors: {
primary: '#319795',
secondary: '#553C9A',
// ...
},
fonts: {
body: 'Inter, system-ui, sans-serif',
heading: 'Inter, system-ui, sans-serif',
},
space: {
1: '4px',
2: '8px',
4: '16px',
8: '32px',
// ...
},
radii: {
smRelated in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.