brandmetis
  • Pricing
Log inSign up
All guides

Design systems·Oct 27, 2026·3 min read

Set up Cursor so generated UI matches your design system

Connect Cursor to brandmetis, bring your tokens into the project, and give the agent rules, so new UI uses your values instead of guesses.

A laptop showing code on a desk beside a small plant

Ask an editor agent for a pricing card and it will make one. It will also pick its own blue, its own corner radius and its own spacing, because nothing told it otherwise. Over a few weeks those guesses add up to a product that no longer looks like the brand.

This guide connects Cursor to brandmetis and sets up a project so generated UI uses your design system. The same steps work in VS Code with Copilot Chat in Agent mode.

What you need

  • A published brand in brandmetis with a confirmed design system. See Design system.
  • Cursor, signed in.
  • A project that uses CSS, or a framework that reads CSS custom properties.

Step 1: connect Cursor

In brandmetis, open Connect AI Agent and choose One-Click Connect next to Cursor. Cursor opens and asks to add the server. Or add it by hand to ~/.cursor/mcp.json, keeping any servers already listed:

JSON
{
  "mcpServers": {
    "brandmetis": {
      "url": "https://brandmetis.com/api/mcp"
    }
  }
}

Then open Cursor Settings, find brandmetis under MCP and sign in. Allow the connection in brandmetis. The full steps are in Cursor and VS Code.

Step 2: bring the tokens into the project

Ask the agent to write your tokens into one file. Use the CSS format:

Plain text
Use brandmetis. Get the North design system as CSS and save it to styles/brand-tokens.css. Import it once at the root of the app. Do not change any values.

The agent calls get_design_system with the CSS format. The file holds custom properties under :root, and the dark values under a data-theme selector. Each name comes from the token name, so color/semantic/primary becomes --color-semantic-primary.

Treat this file as generated and never edit it by hand. When the design system changes in brandmetis, ask the agent to fetch it again and replace the file.

If your project runs a token pipeline, ask for the dtcg format instead. It returns W3C design tokens, with extra modes under $extensions, so tools that only read the default value still work.

Step 3: write the project rules

The tokens file gives the agent the values. Rules tell it to use them. Add a short project rule in Cursor, in the .cursor/rules folder:

Plain text
UI rules for this project

Brand: North, from brandmetis.

- Use only the CSS variables in styles/brand-tokens.css for color, spacing, radius, shadows and type.
- Use semantic colors (--color-semantic-*) in components. Use scale colors (--color-primary-500) only when no semantic color fits.
- Never write a hex, rgb or pixel value that is not already a variable.
- If you need a value that does not exist, stop and ask. Do not invent one.
- For text in the UI, read the North voice from brandmetis and follow its words to use and avoid.
- To find one value, use search_design_system, for example "radius small".

Keep rules short and testable. "Make it look on brand" is a wish. "Never write a hex value that is not a variable" is a rule the agent can follow and you can check.

Step 4: ask for UI the right way

Name the component, the tokens and the limits:

Plain text
Build a pricing card: plan name, price, three features, one button. Use --color-semantic-primary for the button, --radius-md for the card, and the spacing scale for padding. It must work in light and dark.

When the agent is unsure of a value, it can look it up by meaning with search_design_system. A query like "card border" or "brand blue" works, words can be out of order, and a small typo still matches. That is why token descriptions matter: a token described as Card and input borders is found on the first try.

Step 5: check the output

Review generated UI the way you would review a pull request from a new teammate:

  1. Search the diff for # and px. Every match outside the tokens file needs a reason.
  2. Switch to the dark theme. Semantic colors should change. Hard-coded colors will not.
  3. Compare corners and shadows with an existing component.
  4. Read the UI text against the voice: words to use, words to avoid, claims.

When you find a miss, fix the rule, not only the component. If the agent keeps choosing the wrong gray for borders, the rule may need to name the semantic color for borders.

Keep design and code in step

  • Change values in brandmetis, then fetch the tokens file again. Do not edit values in the project.
  • When the design team adds a token, ask the agent to fetch the file and use the new token.
  • If the agent reports that there is no confirmed design system, someone needs to confirm it on the brand. Drafts never reach agents.
  • If a teammate works in VS Code, connect it the same way and share the rule text. Both editors then work from the same values.

A checklist

  • Cursor connected and signed in to brandmetis.
  • Tokens file made with get_design_system and imported once.
  • A short project rule that bans raw values.
  • Semantic colors used in components.
  • Generated UI checked in light and dark.
  • UI text read against the voice.

For how tokens are named, read Turn your style guide into design tokens agents use by name.

More guides

  • A hand holding an orange material sample over a design desk

    Design systems·Oct 20, 2026

    Turn your style guide into design tokens agents use by name

    Hex codes copied from a PDF drift. Named tokens do not. Here is how to set up a design system that agents use by name.

brandmetis

The brand layer for AI agents. Generate on-brand outputs consistently with your agents.

Toggle theme

Product

  • Features
  • Brand voice
  • Design system
  • Assets
  • Skills
  • Brandcheck
  • Pricing

Who it's for

  • Founders
  • Designers
  • Developers
  • Marketers
  • Agencies

Resources

  • Documentation
  • Guides
  • About us
  • Contact
  • Changelog

Legal

  • Data Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Imprint
© 2026 brandmetis.com
brandmetis.com