Skip to content
SOVEREIGN

Compiler

Brand guidelines in. Design tokens out.

The Compiler reads your brand-guidelines PDF and writes a design-token theme package.

Join the Compiler beta

Brand guidelines (PDF)

Compiler

Reads the PDF.

  • colour.brand.primary#4F46E5

  • colour.surface.page#0E1022

  • colour.text.body#F1F2FF

  • radius.card16px

  • colour.brand.accentNo value yet

    Held for review. Left empty until a person reviews it.

  • font.headingInter

    Font swapped. Surrogate font by default. Licensed fonts are an opt-in setting.

Example with an invented brand. A brand-guidelines PDF goes into the Compiler. Out comes a list of design tokens. Most are resolved. One is held for a person to review. A named font has been replaced by a surrogate font.

What it does

Your guidelines stop being a document someone has to interpret.

Goes in: the PDF you already have. Comes out: design tokens, which are named values, colours and fonts for instance, that code can read. From that moment your guidelines are data, and data can be checked.

Tokens come in three tiers. A primitive is a raw value: one particular blue. An alias gives it a name in the brand: the main blue. A semantic token says what the value is for: the main action colour. The Guard page has the rule about the tiers.

  1. Primitive

    --primitive-prime-700: #1D4ED8;

    A raw value: one particular blue.

  2. Alias

    --alias-brand-500: var(--primitive-prime-700);

    Its name in the brand: the main blue.

  3. Semantic

    --semantic-action-primary: var(--alias-brand-500);

    What it is for: the main action colour.

  4. The component

    .button {
      background: var(--semantic-action-primary);
    }

    It names what the colour is for, never the hex. Change the brand and this line stays the same.

An invented brand, Prime, with a demo value.

It says when it isn't sure

A run can end in a hold, and a hold isn't a failure.

This is the Compiler's own output, with the brand taken out.

A real Compiler run

  • Reading the brand guide: guidelines.pdf
  • Reading 8 of 19 pages of the brand guide (the ones most likely to hold colours, fonts and tone).
  • Asking the model to read the brand guide (this is the slow step and can take a few minutes)…
  • Setting the colour roles…
  • Checking text contrast (target 4.5:1)…
  • Checked 2 text and background colour pairs. None needed changing.
  • Building the shades…
  • Writing the files…
  • Wrote theme package → brand.theme-package.json
  • Wrote resolved tokens → brand.resolved.json
  • Wrote CSS variables → brand.vars.css
  • Wrote staging chunks → brand.staging.json
  • Updated theme manifest → theme-manifest.json
  • Review needed. The files were written. This is a hold, not a failure (exit code 2 means "review") → brand-audit-report.json
  • Nothing is wrong. This brand was picked for a routine spot check (a 10% sample). Skim the audit report, then approve it.
Excerpt from a real run. The brand, file names and paths have been replaced with generic ones. The wording is as printed.

The files are written, a person skims the audit report, and then approves it. A deterministic 10% sample gets flagged for human review anyway. If a guide prints no colour codes, the Compiler says so, marks the colours as placeholders and holds the result.

A prototype for agencies

The same caution, in one page an agency can open.

We're testing the next step: a single page an agency opens in a browser before it sends a guide to anyone. It reads the PDF in the tab, asks a vision model running on the agency's own computer, and checks every answer against the document. A colour the document doesn't print is dropped. A colour it prints but the model missed is listed. Anything it can't confirm is held for a person.

Most guides we've tried are held, and that's intended. It's a prototype we've run ourselves, and it isn't part of the beta yet. Roles, tonal ramps and contrast stay with the Compiler.

Part 1 · The containment log

  • [00.0] CHECK http://localhost:11434
  • [00.2] READ 58 pages, extracting text
  • [00.3] document prints 20 colour codes in its text
  • [00.3] RENDER pages 26, 29, 32, 38, 39, 40 to images
  • [03.3] FONTS reading the typefaces embedded in 16 pages
  • [13.7] document embeds 11 fonts
  • [13.7] EXTRACT with qwen2.5vl:7b
  • [13.7] the first request can take minutes while the model loads
  • [13.9] MODEL answering
  • [33.4] VERIFY answer against the document text
  • [33.4] DTCG format check passed
  • [33.4] DONE held for review: 4 reasons
From a run of the prototype on 26 November 2026, on a brand guide of 58 pages. The wording is as printed.

Part 2 · The verdict

Local model link: upNetwork: localhost only⚑ Held for review
"colour-03": {
  "$type": "color",
  "$value": "#······",
  "$extensions": {
    "com.tridium.preflight": {
      "verifiedInDocumentText": true
    }
  }
}

12 colours (12 verified in the document text) · 2 type roles · 0 spacing · 0 radius

Held for review because

  • The document prints 8 colour codes the model did not return: (taken out) (taken out) (taken out) (taken out) (taken out) (taken out) and 2 more. Add them or confirm they are not brand colours.
  • One typeface ((taken out)) was assigned to every role, but the document names 3: (taken out) (taken out) (taken out). Check which typeface belongs to which role.
  • No monospaced typeface was confirmed for the mono role.
  • 7 type values (fontSize, lineHeight, letterSpacing, fontWeight) could not be found in the document text. They are model estimates. Confirm or replace them.
Not checked here (4)
  • Spacing, radius and type sizes count as printed only when the same number and unit appear in the document text. That does not prove they belong to that role.
  • Which typeface belongs to which role is the model's reading of the guide. Check it.
  • Typeface names are checked against the document text and the fonts embedded on the pages that were read.
  • Colour roles, tonal ramps and contrast are not derived here. The Compiler does that.

Runs entirely in this tab. The only network address it may contact is localhost:11434 (enforced by the page's content security policy).

The same run. Colour codes, the colour's name and typeface names are taken out, because together they identify the brand. Everything else is as printed.

Where it runs

By default, it stays on your machine.

By default the Compiler talks only to a model running on your own computer. We've tested that on Linux and macOS, with limits. Windows isn't tested yet. The limits are on the Tested page.

Where it fits

The Compiler makes the tokens. The Guard checks against them.

A person moves the tokens into the Mesh, which holds them for each brand, and the Guard checks pull requests against them. More on the Guard and the Mesh, and on what we've tested, and what we haven't.