Skip to content

Use Cases

Pull a site's brand colors, fonts, button styles and design tokens in one scrape call, each value labelled with where it came from, plus a DTCG export.
Estimated cost: 2 credits per page

01Quick Answer

Call scrape (2 credits) with the branding format from Claude Code, Cursor, or any MCP client. It renders the page and returns color roles, button styles, typography, logo, fonts, and grouped design tokens, each labelled computed, css-variable, or inferred with the element it came from. Turn on dtcg in brandingOptions for W3C DTCG JSON.

02The brief

The Problem

Rebuilding a brand in a mockup, a pitch deck, or a generated UI means guessing hex values from screenshots or reading stylesheets that define hundreds of CSS variables. A frequency list of colors, where white usually ranks first, does not say which one is the call-to-action, and a value guessed from a variable name looks the same as one measured on the page.

The Solution

CrawlForge scrape with the branding format renders the page and reads its computed styles: the background, text, heading, link, and primary colors, the primary and secondary button styles, body and heading typography, the header logo, fonts, and the site's CSS custom properties, resolved and grouped into design tokens. Every value carries a source (computed, css-variable, or inferred) and the element or variable it came from. Turn on dtcg in brandingOptions to add the tokens as JSON in the W3C Design Tokens (DTCG) 2025.10 format, the spec's first stable version, which token tools are adopting; support for 2025.10 varies by tool and version.

03In code

Code Example

brand-style-extraction.js
// Or ask Claude Code: "Extract the brand style of stripe.com and save tokens.json"const page = await mcp.scrape({  url: "https://stripe.com",  formats: ["branding", "screenshot"], // the screenshot shares the same render  brandingOptions: { dtcg: true },     // add W3C Design Tokens (DTCG) JSON}); const { colorScheme, roles, tokens, dtcg } = page.content.branding; // Every role says where its value came fromconsole.log(colorScheme);   // "light"console.log(roles.primary);// { value: "#533afd", source: "computed", evidence: 'button "Get started"' } console.log(tokens.colors.ramps); // color ramps from the site's CSS variables // dtcg is JSON in the W3C Design Tokens (DTCG) 2025.10 format; save it as tokens.json.// Support for 2025.10 varies by tool and version (Style Dictionary's is still in progress).console.log(JSON.stringify(dtcg, null, 2));

04The pipeline

Tools Used

2◆ credits
Estimated cost: 2 credits per page
  1. https://…
  2. 01scrape 2 credits
  3. JSON · markdown

05Questions

Frequently Asked Questions

01How do I extract brand colors from a website?

With CrawlForge connected to Claude Code, Cursor, or another MCP client, ask for the brand style of a URL, or call scrape with the branding format yourself. The roles block names the background, text, heading, link, primary, and onPrimary colors. On stripe.com it returns primary #533afd, read from the Get started button, white text on that button, a #061b31 heading color, and a white background.

02Can it export design tokens as DTCG JSON?

Yes. Turn on dtcg in brandingOptions and the result adds the tokens and color roles as JSON in the W3C Design Tokens (DTCG) 2025.10 format, the spec's first stable version, which token tools are adopting. Support for 2025.10 varies by tool and version: Style Dictionary's is still in progress, so check the tool you plan to use. The tokens come from the site's CSS custom properties with var() chains resolved, grouped into color ramps, semantic colors, typography, spacing, radius, and shadows. On stripe.com, 960 variables become 397 tokens.

03How accurate is it, and what can it not tell me?

A value marked computed was read from the rendered page with getComputedStyle; inferred is a guess from CSS variable names, used only when no element on the page showed that role. Roles are picked by heuristics (the filled button with the most visual weight is primary), and the evidence field names the element so you can check it. A page that needed the stealth browser is not re-rendered for computed styles, so its roles come back inferred. CSS holds no usage rules such as logo clear space or minimum sizes, brand fonts are often licensed (Stripe's Söhne is), and a guide built from someone else's site is unofficial: the company's own brand resources win.

04What does it cost, and can it write the style guide for me?

2 credits per page. A screenshot in the same call costs nothing extra because it shares the same browser render, and a failed call charges 0. The crawlforge-brand-style-guide skill, installed with crawlforge install-skills, tells Claude Code how to turn the result into a written style guide or a tokens.json file.

Start forging

Ready to Get Started?

Every new account gets 1,000 free credits once its email is verified. No credit card required.