/Guides
Reverse-engineer a design system Extract design tokens Generate a style guide Copy CSS from any site Extract a color palette
Compare with other tools Home We're on Product Hunt Upgrade to Pro · $19.99
Guide · Updated September 2026

How to generate a style guide from a website

To generate a style guide from a website, you pull its four core systems (colors, typography, buttons, and spacing) out of the live page and write down what each value is for. You can do this by hand with Chrome DevTools in an hour or two, or with a browser extension like Sitegeist in one click. This guide walks through both, manual method first, so you know exactly what the one-click version is doing for you.

What goes in a website style guide How to build a style guide manually with DevTools The faster way: a style guide generator extension Exporting to CSS variables, Tailwind, or JSON tokens FAQ

What goes in a website style guide

Before you extract anything, know what you are hunting for. A good style guide answers one question over and over: "which value do I use here?" These are the sections that earn their place:

How to build a style guide manually with DevTools

Everything above lives in the page, and DevTools can show you all of it. Open the site, press Cmd+Option+I (or F12), and work through the systems one at a time.

1. Colors

Start where the site names its own colors. In the Sources panel, search the CSS for :root. Many sites define their palette as CSS variables with names like --color-brand, and those names tell you what each color is for, which is the half of the job a color picker cannot do. Then click through a few real elements (a heading, a paragraph, a card border) in the Elements panel and read their colors from the Styles pane to confirm which variables actually get used where. It is a sampling exercise, not a census, and that is fine: you want the eight colors that matter, not all forty that technically appear.

2. Typography

First find out which fonts really load. Open the Network panel, filter by Font, and reload the page. Each file listed is a font the site genuinely uses, including the individual weight files. Then select an h1, some body text, and a caption in Elements and read font-size, line-height, and font-weight from the Computed tab. Write down the scale you find, something like 48 / 32 / 24 / 16 / 13.

3. Buttons and states

Select a button in Elements. In the Styles pane, click the little :hov toggle and force :hover, then :focus, then :active, one at a time. Watch what changes (usually background, border, shadow, or a slight move) and copy those properties. Repeat for every button variant. This is the tedious part, and it is the step people skip. Do not skip it. The states are the whole reason the original button feels alive.

4. Spacing

Inspect a dozen representative elements (cards, sections, list items) and note their computed padding, margin, and gap values. Then deduplicate your list. If the numbers cluster around multiples of 4 or 8, you have found the site's grid. Write the scale down as, say, 4 / 8 / 12 / 16 / 24 / 32 / 64.

5. Assets and assembly

Logos and icons are in the Network panel under the Img filter: right-click a request, open it in a new tab, save it. Then pull everything into one document. A practical format is a single CSS file of variables plus a short note explaining what each one is for. Budget one to two hours for a typical marketing site, more for an app with lots of component variants.

The faster way: a style guide generator extension

Sitegeist is a free Chrome extension that does all of the above in one click. It analyzes the page locally in your browser (activeTab permission, nothing leaves the browser), and its tabs map straight onto the sections you just read about:

It also shows the tech stack, SEO checks, discovered sitemaps, and a content outline, and an inspect overlay gives you a tidy style summary for any single element you point at. If you are comparing tools in this space, see how Sitegeist stacks up against CSS Scan, CSS Peeper, and Hoverify.

Exporting to CSS variables, Tailwind, or JSON tokens

A style guide you cannot paste into a project is just a nicer screenshot. The useful end state is tokens in whatever format your project speaks.

CSS custom properties (free). Sitegeist's free tier exports the extracted palette, type scale, and spacing as CSS variables. The output is ready to drop into your stylesheet and looks like this:

:root {
  --color-brand: #4f46e5;
  --color-ink: #111827;
  --font-size-lg: 24px;
  --space-4: 16px;
}

Tailwind config (Pro). If your project uses Tailwind, the Pro export maps the extracted values into a config, so bg-brand and text-lg resolve to the source site's real values instead of Tailwind's defaults.

JSON design tokens (Pro). For teams running a token pipeline, the JSON export is a machine-readable file you can feed into whatever transforms your build already runs.

Pro is $19.99 one time and also adds batch asset download, full-page screenshots, full authored CSS and HTML copy in inspect mode, and a copyable voice style prompt. Treat the free tier as the trial: run a teardown, spot-check a few values against DevTools, and upgrade only if the exports actually save you time.

FAQ

Can I generate a style guide from a website for free?

Yes. The manual DevTools method costs nothing, and Sitegeist's free tier pulls the color palette, type scale, button states, spacing scale, and assets in one click, then exports them as CSS variables. Tailwind config and JSON token exports come with the $19.99 one-time Pro upgrade.

What should a website style guide include?

Start with four things: the color palette with each color's job, the type scale with font families and weights, button styles including hover and focus states, and the spacing scale. If you have time, add brand assets, icons, and a short tone-of-voice section for the writing.

Does generating a style guide from a website send my data anywhere?

No. With the manual DevTools method, everything happens on your machine. Sitegeist works the same way: it analyzes the page locally in your browser using the activeTab permission, and nothing leaves the browser.

Can I export the extracted styles as Tailwind config or design tokens?

Yes. Sitegeist exports the palette, type scale, and spacing as CSS custom properties for free. Pro ($19.99 one time) adds a Tailwind config export and a JSON design-token export for teams that run a token pipeline.