For agents
Your agent, now with taste.
Give Claude Code, Cursor and the rest a design system to follow: a DESIGN.md in your repo, or Thema itself as an MCP server they can call mid-task.
you › Restyle the app: colors from north.example, type from fieldnotes.example.agent › thema.extract("north.example") → sys_1agent › thema.extract("fieldnotes.example") → sys_2agent › thema.blend(sys_1: colors, sys_2: typography) → sys_3thema › 13/13 pairs pass WCAG AA, light and darkagent › thema.get_design_md(sys_3, out_path: "DESIGN.md")agent › Wrote DESIGN.md. Updating components to follow it.
Claude Code
Cursor
v0
Lovable
Windsurf
GitHub Copilot
Google Stitch
Google Antigravity
Two ways in.
Start with a file. Add the MCP server when you want your agent to build or update the system itself.
- No setup01
Drop DESIGN.md in your repo
Any agent that reads AGENTS.md or CLAUDE.md picks it up. The tokens sit at the top; plain-language rules (do's, don'ts, agent rules) sit below, so the agent knows how to use them.
See the file format → - MCP02
Let your agent call Thema
Connect the MCP server and your agent can extract a site, blend systems and write DESIGN.md without leaving the task. Systems are kept by a short id for the session.
Set it up →
MCP tools
Three tools. That's the whole API.
extract
A URL in, a system out.
- takes
- url, optional out_path
- returns
- a system id, a summary (palette, fonts, spacing, radius, AA passes) and warnings
blend
Up to five systems in, one fixed system out.
- takes
- references with what each lends, sliders, locks
- returns
- a new system id, contrast fixes made, and any pair that couldn't be fixed
get_design_md
A system in, DESIGN.md out.
- takes
- a system id or path, optional out_path
- returns
- the DESIGN.md text, also written to out_path when given
Setup
One command.
Pick your client. The MCP server runs on your machine over stdio and needs no account; extraction uses a local Chromium behind the same address guard as Thema's servers.
Claude Code
claude mcp add thema -- pnpm -s --dir /path/to/thema mcp
Until the npm package ships, run it from a clone of the repo: replace /path/to/thema with where you cloned it.
Open source · MIT
The engine is yours to read.
The CLI, the MCP server and everything they run on, from extraction to the fixer and the exporters, are MIT licensed.
github.com/ljamesrojas/Thema