Skip to main content
Glama

Dembrandt.

npm version npm downloads license GitHub Marketplace dembrandt/dembrandt MCP server GitHub Sponsors

Extract any website's design system in one command. Enforce it in CI.

Logo, colors, typography, spacing, borders, shadows, motion, components. W3C design tokens in seconds.

Dembrandt: Any website to design tokens

Install

npm install -g dembrandt
dembrandt dembrandt.com

The first run downloads the matching Chromium once, into a shared Playwright cache. The MCP server does not: run npx dembrandt install-browser before its first extraction.

Or use npx without installing: npx dembrandt dembrandt.com.

Requires Node.js 20+

Or install the MCP server straight into your editor and let the agent run it:

Add to Cursor Install in VS Code

Related MCP server: PicassoWeb

What you get

  • Colors (semantic roles with the evidence behind each pick, curated palette, every detected colour, CSS variables, gradients)

  • Typography (fonts, sizes, weights, sources, font file URLs)

  • Spacing (margin/padding scales)

  • Borders (radius, widths, styles, colors)

  • Shadows

  • Motion (duration scale, easing curves, hover patterns per component type)

  • Components (buttons, badges, inputs, links)

  • Breakpoints

  • Icons & frameworks

Playwright renders the page, dembrandt reads computed styles from the DOM, analyzes color usage and confidence, groups similar typography, detects spacing patterns, and returns design tokens.

Flags

dembrandt dembrandt.com --shadcn        # shadcn/ui theme, observed slots only
dembrandt dembrandt.com --dtcg          # W3C design tokens, for Style Dictionary or Tokens Studio
dembrandt dembrandt.com --wcag          # WCAG 2.1 contrast on real DOM pairs

Default is formatted terminal output only. Every flag below; the detailed reference is docs/usage.md.

Export

Flag

What you get

--dtcg

W3C design tokens (DTCG)

--design-md

DESIGN.md for AI agents

--tailwind [path]

Tailwind v4 @theme CSS

--shadcn [path]

shadcn/ui theme, observed slots only

--html [path]

Self-contained HTML report

--brand-guide

Brand guide PDF

--json-only

Raw JSON to stdout

--save-output

JSON to output/<domain>/

--screenshot <path>

Viewport screenshot

--color-format <f>

Colour notation: hex, rgb, oklch, lch, source

--raw-colors

Pre-filter colours too

Analysis

Flag

What you get

--wcag

Contrast grades on real DOM pairs

--compare <baseline>

Drift gate; exits 1 when tokens moved

--tokens <file>

Check rendered colours, radii and font sizes against a W3C Design Tokens file; repeat for several

--max-off-token <n>

With --tokens: exit 1 when more than N rendered values match no token

--tokens-report <path>

With --tokens: Markdown summary with the nearest token per off-token value, wiki-ready

--annotations <github|azure>

CI annotations for drift and off-token values; detected from the runner by default

--approve

Accept the current run as the new baseline

--ai

ML brand-primary prediction (experimental)

Coverage

Flag

What you get

--crawl [n]

Merge N pages, cross-page confidence

--sitemap

Discover pages from sitemap.xml

--dark-mode

The dark theme's tokens

--mobile

Mobile viewport

--slow

3x timeouts for heavy sites

--browser <type>

chromium or firefox; CDP via env

--no-sandbox

For Docker and CI

Access

Flag

What you get

--cookie <string>

Reach pages behind a session

--cookie-file <path>

JSON cookies, Playwright storageState (incl. localStorage and the sessionStorage block --save-storage-state adds), or Netscape cookies.txt

--basic-auth <user:pass>

HTTP Basic for the requested site, with or without www, and its https upgrade

--login

Open a visible browser to sign in; press Enter when ready, then extract (interactive terminal only)

--save-storage-state <path>

With --login, save the signed-in session (cookies, localStorage, sessionStorage) to a file; reuse it later with --cookie-file, also in CI

--header <string>

Extra request header for the requested site only, repeat for several. Not sent by service workers, popups or WebSockets, nor in Firefox by streams, media or redirects other than the requested URL's own; Firefox also holds each response in memory

--no-headed-fallback

Never open a visible browser on a failed navigation; for batch runs

--user-agent <string>

Custom user agent

--locale <string>

Locale for the fingerprint

--timezone <string>

Timezone for the fingerprint

--accept-language <s>

Accept-Language header

--screen-size <WxH>

Reported screen resolution

--stealth

Anti-detection; authorized use only

--key <string>

Sync runs to your account

Catch design drift in CI

Extract a preview deployment, compare against a committed baseline, fail the job when tokens moved:

- uses: dembrandt/dembrandt@v0.42.0
  with:
    url: https://preview.example.com
    baseline: .dembrandt/baseline.json

The action is on the GitHub Marketplace and annotates the PR with the drifted tokens. On any other runner the gate is just an exit code plus JSON: dembrandt URL --compare baseline.json --json-only exits 1 on drift and prints per-token changes[]. See docs/ci.md for the Action inputs, the platform-neutral gate, and the exit code table.

Recipes

Copy a command, paste a prompt, get a result. Competitor benchmarking, WCAG audits, Figma token push, agentic design system builds. Filterable by role at dembrandt.com/recipes, with the basics in docs/recipes.md.

AI Agent Integration (MCP)

Use Dembrandt as a tool in Claude Code, Cursor, Windsurf, or any MCP-compatible client. Ask your agent to "extract the color palette from dembrandt.com" and it calls Dembrandt automatically.

Add to Cursor Install in VS Code

Per-client setup, environment variables and the full tool list: docs/mcp.md and dembrandt.com/mcp.

claude mcp add --transport stdio dembrandt -- npx -y dembrandt mcp

The server is listed in the MCP Registry as io.github.dembrandt/dembrandt, so a client that reads the registry can install it by name.

Or add to your project's .mcp.json:

{
  "mcpServers": {
    "dembrandt": {
      "command": "npx",
      "args": ["-y", "dembrandt", "mcp"]
    }
  }
}

Available tools include get_design_tokens, get_color_palette, get_typography, get_component_styles, get_surfaces, get_spacing, and get_brand_identity, plus pure analysis tools (compute_drift, get_findings, export_dtcg, generate_design_md, render_report) and job-control tools.

Extraction tools accept slow, mobile, darkMode, wcag, cookie, cookieFile, basicAuth and header (for authenticated pages), userAgent, and noSandbox (Docker and most CI containers). Interactive --login stays CLI-only. Set pages above 1 to crawl and merge several pages, which produces a markedly stronger token set than one page; paths names them explicitly and sitemap discovers them from sitemap.xml.

Extraction returns a job_id. Wait on it with get_job_status and wait_seconds, then hand that same id to the pure tools instead of passing the extraction back as an argument. The status leaves the extraction out, since it runs to hundreds of kilobytes; include_result: true returns it:

get_design_tokens(url: "example.com", pages: 5)  ->  job_id
get_job_status(job_id, wait_seconds: 50)         ->  completed
get_findings(job_id)                             ->  contrast and consistency issues
export_dtcg(job_id)                              ->  W3C design tokens

Pair with dembrandt-skills to give your agent UX intelligence on top of extracted tokens: hierarchy, accessibility, interaction states, and a full 6-stage design pipeline orchestrator.

npx skills add dembrandt/dembrandt-skills

Dembrandt App (Beta)

Load extractions, track token drift, and compare snapshots. dembrandt.com/app

  • Automatic drift tracking from CI. Generate an API key at dembrandt.com/app/api-keys, then pass --key to the CLI. Every run uploads a snapshot to your account and scores it against the previous one for that domain. Wire into GitHub Actions or any CI runner and every deploy records itself.

  • Pin a baseline. Mark any snapshot as your reference. Every subsequent extraction is automatically scored against it.

  • Visual diff. Color swatches, before/after values, delta scores per category: colors, typography, spacing, radius, shadows.

  • Snapshot timeline. Proportional timeline per domain, scrub across any date range from days to years.

  • Compare side by side. Load multiple extractions into one view: two releases, two sites, or two surfaces.

  • Copy tokens. Paste values straight into Copilot, Claude, or Cursor.

  • No login required for local use. Data stays in the browser. Sign in with GitHub to enable cloud sync.

Limitations

  • Dark mode requires --dark-mode flag (not automatically detected)

  • Hover and focus states come from real interaction on a sample of elements; states that need a pointer path or a timer are missed

  • Canvas/WebGL-rendered sites cannot be analyzed (no DOM to read)

  • JavaScript-heavy sites require hydration time (8s initial + 4s stabilization)

  • Some dynamically-loaded content may be missed

  • Default viewport is 1920x1080 (use --mobile for 390x844 mobile viewport)

Intended Use

Dembrandt reads publicly available CSS and computed styles from website DOMs for documentation, learning, and analysis of design systems you own or have permission to analyze.

Only run Dembrandt against sites whose Terms of Service permit automated access, or against your own properties. Do not use extracted material to reproduce third-party brand identities, logos, or trademarks. Respect robots.txt, rate limits, and copyright.

Dembrandt does not host, redistribute, or claim rights to any third-party brand assets.

Sponsors

The CLI is MIT-licensed and free. Sponsorship funds the enforcement layer: a committed project-level token baseline, --compare and the ingest API for CI/CD drift gates, and the App platform (snapshot history, team drift dashboard, alerts to Slack, Linear, and GitHub).

GitHub Sponsors

Documentation

  • docs/usage.md: every flag, multi-page extraction, browser selection, CDP, DTCG, DESIGN.md, Tailwind theme, WCAG, motion, brand guide PDF

  • docs/ci.md: GitHub Action, drift gate, exit codes

  • docs/mcp.md: MCP server install per client, environment, tools

  • docs/recipes.md: copy-paste workflows

  • docs/FLAGS.md: flag interactions, ignored combinations, multi-page propagation

Contributing

Bugs, weird sites, pull requests. All welcome.

Open an Issue or PR.

@thevangelist

MIT. Do whatever you want with it.

Available Tools

21 tools
cancel_jobA

Cancel a queued extraction job. Has no effect on jobs that are already running.

Inputs: job_id (required).

check_contrastA

Grade colour pairs against WCAG 2.1 contrast, at the threshold the text size earns: 18pt, or 14pt bold, is large scale and needs 3:1 where body text needs 4.5:1. Takes pairs you name, so it grades colours you are about to ship rather than only colours already on a page. Returns the ratio, the required ratio, and the AA and AAA verdicts per pair. Pure and synchronous, no browser. For pairs already rendered on a site, extract with wcag instead.

Inputs: pairs (required).

check_robotsA

Ask whether robots.txt allows extracting a URL, before spending a browser run on it. Returns the verdict, the rule that decided it, and the robots.txt status. A 404 or 410 means no robots.txt and everything is allowed; any other unreadable response is treated as a refusal. Cheap and synchronous: one HTTP request, no browser.

Inputs: url (required).

compute_driftA

Compare two dembrandt extractions and return a design-drift report: a 0-100 score (0 = identical), a stable/drift verdict, per-category scores, and the list of changed/added/removed tokens (colors, typography, spacing, radius, shadows). Pure and synchronous, no browser. Takes either an inline extraction or the job_id of a completed one. Use it to check whether generated or updated UI has drifted from a brand baseline.

Inputs: baseline, candidate, baselineJobId, failThreshold, +1 more.

export_dtcgA

Convert a dembrandt extraction to W3C Design Tokens (DTCG) format: color, typography, spacing, radius, border, and shadow tokens with $type/$value structure and dembrandt provenance under $extensions. Pure and synchronous, no browser. Takes either an inline extraction or the job_id of a completed one. Use it to hand tokens to Style Dictionary, Figma token plugins, or any DTCG-compatible pipeline.

Inputs: job_id, result.

export_shadcnA

Render a shadcn/ui theme from a dembrandt extraction: the :root block and the @theme inline mapping Tailwind v4 needs. A slot is written only where the page supplied a value, and the rest are named in the file header and left at shadcn's own defaults, so no slot is filled with an invented value that reads as measured. Pure and synchronous, no browser. Takes either an inline extraction or the job_id of a completed one.

Inputs: job_id, result.

export_tailwindA

Render a Tailwind v4 @theme CSS block from a dembrandt extraction: colors, typography, spacing, radii and shadows as custom properties, observed values only, with nothing invented. Pure and synchronous, no browser. Takes either an inline extraction or the job_id of a completed one. Write the output to a project's CSS entry point so Tailwind utilities resolve to the measured brand.

Inputs: job_id, result.

generate_design_mdA

Render a DESIGN.md brand guide (markdown) from a dembrandt extraction: colors, typography, spacing, surfaces, and components as a human-readable design reference. Pure and synchronous, no browser. Takes either an inline extraction or the job_id of a completed one. Write the output to DESIGN.md in a project so agents and developers build UI against the extracted brand.

Inputs: job_id, result.

get_brand_identityA

Extract brand identity from a live website: site name, logo (source, dimensions, safe zone), all favicon variants (icon, apple-touch-icon, og:image, twitter:image with sizes and URLs), what builds the UI with versions where recoverable (JS and meta frameworks, CSS frameworks, component libraries, site builders), icon systems, and responsive breakpoints. Set pages > 1 to crawl and merge several pages, which yields a markedly stronger token set than a single page. Returns a job_id by default: poll it with get_job_status, and pass the same job_id to compute_drift, get_findings, export_dtcg, generate_design_md or render_report instead of resending the extraction.

Inputs: url (required), slow, sync, pages, +10 more.

get_color_paletteA

Extract brand colors from a live website. Returns semantic colors (primary, secondary, accent, plus background and text promoted from the page surface and body text), full palette ranked by usage frequency and confidence (high/medium/low), CSS custom properties with their design-system names, and hover/focus state colors discovered by simulating real user interactions. Each color in hex, RGB, LCH, and OKLCH. Set pages > 1 to crawl and merge several pages, which yields a markedly stronger token set than a single page. Returns a job_id by default: poll it with get_job_status, and pass the same job_id to compute_drift, get_findings, export_dtcg, generate_design_md or render_report instead of resending the extraction.

Inputs: url (required), slow, sync, wcag, +11 more.

get_component_stylesA

Extract UI component styles from a live website. Returns button variants with default, hover, active, and focus states (background, text color, padding, border radius, border, shadow, outline, opacity), input field styles (border, focus ring, padding, placeholder), link styles (color, text decoration, hover changes), and badge/tag styles. Set pages > 1 to crawl and merge several pages, which yields a markedly stronger token set than a single page. Returns a job_id by default: poll it with get_job_status, and pass the same job_id to compute_drift, get_findings, export_dtcg, generate_design_md or render_report instead of resending the extraction.

Inputs: url (required), slow, sync, pages, +10 more.

get_design_tokensA

Extract the full design system from a live website. Launches a real browser, navigates to the site, and returns production-ready design tokens: color palette (hex, RGB, LCH, OKLCH) with semantic roles and CSS custom properties, typography scale (families, fallbacks, sizes, weights, line heights, letter spacing by context), spacing system with grid detection, border radii, border patterns, box shadows for elevation, component styles (buttons with hover/focus states, inputs, links, badges), responsive breakpoints, logo and favicons, site name, the frameworks and libraries that build the UI, and icon systems. Set pages > 1 to crawl and merge several pages, which yields a markedly stronger token set than a single page. Returns a job_id by default: poll it with get_job_status, and pass the same job_id to compute_drift, get_findings, export_dtcg, generate_design_md or render_report instead of resending the extraction.

Inputs: url (required), slow, sync, wcag, +11 more.

get_findingsA

Lint a dembrandt extraction for design-system quality issues: WCAG contrast failures, inconsistency (near-duplicate colors, off-scale spacing values, radius sprawl), and duplication. Returns findings with severity (error/warn), category, and a human-readable message, plus summary counts. Pure and synchronous, no browser. Takes either an inline extraction or the job_id of a completed one. Complements compute_drift: drift asks 'did it change', findings asks 'is it good'.

Inputs: job_id, result.

get_job_statusA

Poll for the result of an async extraction job. Returns status (queued/running/completed/failed/cancelled) and the full result once completed. Call this after any extraction tool that returned a job_id.

Inputs: job_id (required).

get_motionA

Extract the motion system from a live website: transition and animation durations with their usage counts, easing curves, the durations and easings used per component context (button, link, nav, card, modal), named keyframe animations, and the hover patterns discovered by simulating real interaction. Also returns gradients, which travel with motion as the decorative layer. Set pages > 1 to crawl and merge several pages, which yields a markedly stronger token set than a single page. Returns a job_id by default: poll it with get_job_status.

Inputs: url (required), slow, sync, pages, +10 more.

get_spacingA

Extract the spacing system from a live website: common margin and padding values sorted by frequency, pixel and rem values, and grid system detection (4px, 8px, or custom scale). Set pages > 1 to crawl and merge several pages, which yields a markedly stronger token set than a single page. Returns a job_id by default: poll it with get_job_status, and pass the same job_id to compute_drift, get_findings, export_dtcg, generate_design_md or render_report instead of resending the extraction.

Inputs: url (required), slow, sync, pages, +10 more.

get_surfacesA

Extract surface treatment tokens from a live website: border radii with element context (which radii are used on buttons vs cards vs inputs vs modals), border patterns (width + style + color combinations), and box shadow elevation levels. Set pages > 1 to crawl and merge several pages, which yields a markedly stronger token set than a single page. Returns a job_id by default: poll it with get_job_status, and pass the same job_id to compute_drift, get_findings, export_dtcg, generate_design_md or render_report instead of resending the extraction.

Inputs: url (required), slow, sync, pages, +10 more.

get_typographyA

Extract typography from a live website. Returns every font family with its fallback stack, the complete type scale grouped by context (heading, body, text, button, link, caption) with pixel and rem sizes, weights, line heights, letter spacing, and text transforms. The body context marks the dominant reading-text font; text marks other body-eligible copy. Also reports font sources: Google Fonts URLs, Adobe Fonts usage, and variable font detection. Set pages > 1 to crawl and merge several pages, which yields a markedly stronger token set than a single page. Returns a job_id by default: poll it with get_job_status, and pass the same job_id to compute_drift, get_findings, export_dtcg, generate_design_md or render_report instead of resending the extraction.

Inputs: url (required), slow, sync, pages, +10 more.

list_jobsA

List all extraction jobs from this session with their status (queued/running/completed/failed/cancelled), URL, and timestamps. Completed jobs are kept for one hour.

Inputs: no named parameters.

render_reportA

Render a self-contained HTML report (inline CSS, no external resources) from a dembrandt extraction, optionally including a drift diff. Takes either an inline extraction or the job_id of a completed one. Returns the HTML as text: write it to a .html file to open offline or attach as a CI artifact.

Inputs: drift, job_id, result.

validate_dtcgA

Validate a W3C Design Tokens (DTCG) document against the 2025.10 spec: token types, colour objects and their component ranges, dimensions, references, and property-level $ref pointers. Returns valid plus the list of errors with the path each one sits at. Pure and synchronous, no browser. Use it after writing or editing a token file, including one this server produced, so a hand edit cannot quietly break the document.

Inputs: tokens (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 21 tools

    Disambiguation4/5

    The extraction tools split cleanly by token category (color, typography, components, surfaces, spacing, motion, brand identity), and the post-processing tools (export_*, check_*, compute_drift, render_report) each produce a distinct artifact. The one real overlap is get_design_tokens, an umbrella that returns everything the granular extractors return, so an agent must decide between one broad call and several narrow ones. Descriptions flag this layering, keeping the confusion minor rather than crippling.

    Naming Consistency5/5

    Every tool is snake_case verb_noun with a small, predictable verb vocabulary (get_, export_, check_, compute_, generate_, render_, list_, cancel_, validate_). Prefixes map to intent: get_ for extraction, export_/render_/generate_ for output formats, check_/validate_ for verification. No camelCase or mixed styles anywhere.

    Tool Count4/5

    At 21 tools this is on the heavy side, but the server covers a genuinely broad surface: eight extractors, five export/render paths, four validators/checks, three job-management tools, and one drift comparator. Each tool corresponds to a different output format or check, so none reads as filler. It is slightly above the comfortable 3-15 band rather than bloated.

    Completeness5/5

    The lifecycle is closed end to end: preflight (check_robots), async extraction with polling/listing/cancellation, targeted re-extraction by category, quality linting (get_findings, check_contrast), drift comparison, DTCG validation, and four distinct output renderers (shadcn, Tailwind, DTCG, DESIGN.md, HTML report). No obvious dead ends for an agent building against an extracted brand.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Design system MCP server. 20 tools: extract design tokens from any URL, pull from Figma or Penpot, generate React + shadcn/ui components from specs, run WCAG audits, sync tokens bidirectionally.
      50
      204 npm
      51
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Analyzes and extracts design tokens, assets, and layout from live websites to enable AI clients to faithfully replicate them, with tools for screenshotting, component inspection, and pixel-diff verification.
      14
      29 npm
      5
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding agents to act like a senior UI/UX team by reading an existing site's design DNA and tokens, proposing distinct art directions and motion mechanics that fit the brief, and validating changes in a live headless Chromium browser. Provides per-element accessibility and performance auditing (WCAG 2.2 contrast, focus, clipping, phone-menu behavior, LCP/CLS) at multiple viewport widths, plus baseline capture, before/after comparison, and one-command rollback for safe redesigns.
      92 npm
      4
      MIT