Sandbox
@marvkr/better-design

Design MCP server and shadcn registry for agents

Better Design adds design context to MCP-compatible coding agents: themes, semantic tokens, component overrides, icon choices, and review rules. It can also match a design system to a prompt, then load the right docs and assets so the agent builds with a specific visual language.

233 stars10 forksTypeScriptUpdated 28d ago
Who it's for

Builders who want Claude Code, Cursor, Codex, or Copilot to follow a real design system while they build UI.

What it delivers

You can ask your agent to build and review interfaces in a specific design style instead of guessing colors, spacing, and hierarchy.

What it does

Design system matching

`resolve-design-system` picks a design system from a prompt like Linear, Stripe, Vercel, or Notion.

Design docs and tokens

`get-design-system-docs` loads CSS tokens, component notes, and install context for the chosen system.

UI principle lookup

`get-ui-principle` returns focused guidance for spacing, hierarchy, typography, depth, motion, and forms.

Accessibility and visual review

`get-review-rules` gives WCAG and visual-design checklists so the agent can fix issues before handoff.

Icon library matching

`resolve-icon-library` and `search-icons` help the agent choose and find icons that fit the design system.

31 themed component sets

The registry includes themed shadcn/ui component overrides for systems like Linear, Stripe, Apple, Supabase, and Figma.

How to get it

  1. 1Once connected to your MCP client, ask your agent for design help directly
    "Use better-design. Build a Linear-style project settings page with billing, team members, and API keys."
    
    "Find a design system for a developer tools startup, then build the dashboard with matching components."
    
    "Review this form with Better Design's accessibility and visual-design rules, then fix the issues."
  2. 2Install the Better Design agent skill, then connect its MCP tools
    npx skills add marvkr/better-design --skill better-design
    npx better-design

README

Better Design: Open source Claude Design

Turn your AI coding IDE into a design engineer. Better Design works with MCP-compatible agents and editors like Claude Code, Cursor, VS Code/GitHub Copilot, Claude Desktop, and claude.ai. It is a design MCP server, AI design-system registry, and UI review layer for generating polished product interfaces from prompts.

Website · Design systems · Setup · Contributing

MCP server Claude Code Cursor GitHub Copilot AI design systems WCAG

What is Better Design?

Better Design gives AI coding agents the design context they usually miss: design tokens, component code, UI principles, icon direction, accessibility checks, and visual-design review rules.

Think of it as a Claude Design-style workflow for your own codebase:

  1. Pick the product direction: Linear, Supabase, Vercel, Airbnb, Stripe, Apple, Notion, Figma, or another curated design system.
  2. Feed your AI agent the right globals.css, semantic tokens, component overrides, icon set, spacing, typography, shadows, radius, and motion language.
  3. Ask Claude Code, Cursor, VS Code/GitHub Copilot, Claude Desktop, claude.ai, or another MCP-compatible coding agent to build the interface.
  4. Have the MCP review the output against accessibility and design principles before you ship it.

Instead of "AI-looking UI," you get interfaces that look like they were built from a real product design system.

Why Better Design?

  • Claude Design-style workflow, open MCP. Bring the artifact-first design loop people expect from Claude Design into Claude Code, Cursor, VS Code/GitHub Copilot, Claude Desktop, claude.ai, and any MCP-compatible client.
  • Design systems, not vague vibes. Each system includes semantic CSS tokens plus production component code, so generated UI uses real implementation details instead of guessed colors.
  • AI UI generation with guardrails. The MCP can load principles for hierarchy, spacing, typography, depth, motion, forms, and accessibility exactly when the agent needs them.
  • Self-review before handoff. get-review-rules gives your agent a WCAG and visual-design checklist so it can catch missing focus states, weak hierarchy, bad contrast, and inconsistent spacing.

How it works

Better Design has two layers: an always-on Design Intelligence layer and an on-demand Scaffold layer.

Design Intelligence — always active for UI work

When your agent builds UI, Better Design loads the relevant product-design principles and review rules automatically:

You: "Add a settings page with a form"

AI: calls get-ui-principle("spacing") + get-ui-principle("hierarchy")
 → writes the page
 → calls get-review-rules("accessibility") + get-review-rules("visual-design")
 → fixes contrast, labels, focus states, spacing, and hierarchy

Scaffold — design-system matching for new UI

When starting a product, page, or component set, say "use better-design" and the MCP finds a matching design system:

You: "Build a fintech dashboard in the style of Stripe. use better-design"

AI: calls resolve-design-system("fintech dashboard, Stripe")
 → loads design-system docs, CSS tokens, and component code
 → resolves a matching icon library
 → builds with semantic tokens instead of raw colors

What the MCP gives your agent

ToolWhat it doesWhy it matters
resolve-design-systemSemantically matches the right design system for a promptStops agents from guessing a visual direction
get-design-system-docsLoads tokens, components, usage notes, and install contextGives the agent implementation-ready design context
get-ui-principleFetches focused guidance for hierarchy, spacing, typography, depth, motion, forms, and moreMakes UI decisions principled instead of random
get-review-rulesReturns accessibility and visual-design review checklistsHelps the agent critique and fix its own output
resolve-icon-libraryPicks an icon family that matches the design personalityKeeps icon style consistent with the UI
search-iconsFinds specific icons through IconifySpeeds up implementation without mixing icon styles

Available Design Systems

31 open-source design systems for shadcn/ui. Browse and preview them all at better-design.com.

SystemThemeVibeBest For
LinearDarkMinimal, professional, purple accentsDeveloper tools, productivity apps
Linear QualityDarkPrecision-crafted, multi-layer shadowsHigh-polish developer tools
SupabaseDarkTechnical, modern, green accentsBackend dashboards, dev portals
VercelDarkPure black, Geist font, minimalDeployment, developer platforms
AirbnbLightWarm, friendly, coral primaryMarketplaces, consumer apps
NotionLightMinimal, flat blue, rgba shadowProductivity, note-taking apps
StripeLightFintech, indigo accents, premium shadowsPayments, financial products
AppleLightPremium, SF Pro, pill buttonsConsumer apps, marketing sites
FigmaLightDesign tool, electric violet, purple glowDesign/creative tooling
Light MarketplaceLightCharcoal buttons, flat cards, no shadowsE-commerce, listings
Precision LightLightCharcoal primary, precision layered shadowsB2B SaaS, enterprise
Minimal LightLightBlack primary, no shadows, border-only cardsClean utilities, productivity
Dark OrangeDarkBrand orange, 10px radius, layered shadowsModern SaaS, dashboards
Vibrant DarkDarkVibrant blue, color-bloom shadowsConsumer apps, social
Neutral MonochromeDarkWhite on near-black, no colorUnderstated, data-heavy tools
Cinematic DarkDarkUltra-dark, content-first mediaStreaming, media platforms
Editorial DarkDarkSerif display, flat, content-firstPublishing, editorial
Corporate FintechLightBlue accents, data-dense layoutsBanking, enterprise, fintech
Beam CustomDarkCustom beam aestheticCustom applications
Beam LibDarkLibrary-style beam themeComponent libraries
Glassmorphic DarkDarkGlass layers, blur, frosted UIModern dashboards, SaaS
Inset DarkDarkInset shadows, recessed elementsData-dense, analytical tools
Lumen DarkDarkGlow accents, luminous depthCreative tools, media apps
Metal FX GoldDarkGold metallic surfacesPremium, luxury products
Metal FX SilverDarkSilver metallic surfacesTech, hardware products
Metal FX ChromaticDarkChromatic shift, iridescentCutting-edge, bold brands
Midnight GlassDarkDeep midnight, glass panelsDashboards, analytics
Monochrome IndustrialDarkIndustrial grays, utilitarianDeveloper tools, CLIs
Pillow LightLightSoft shadows, rounded comfortConsumer, lifestyle apps
Tactile MinimalLightTactile depth, minimal colorProductivity, focus tools
TV StyleDarkCinematic, large-format TV UIMedia, streaming, TV apps

Each design system includes a full globals.css token layer plus component overrides. Install any component into your shadcn/ui project:

npx shadcn@latest add https://www.better-design.com/registry/<design-system>/<component>.json

Example — install Linear's button:

npx shadcn@latest add https://www.better-design.com/registry/linear/button.json

Usage examples

Once connected to your MCP client, ask your agent for design help directly:

"Use better-design. Build a Linear-style project settings page with billing, team members, and API keys."

"Find a design system for a developer tools startup, then build the dashboard with matching components."

"Review this form with Better Design's accessibility and visual-design rules, then fix the issues."

Setup

Install the Better Design agent skill, then connect its MCP tools:

npx skills add marvkr/better-design --skill better-design
npx better-design

Run each command once, then restart your coding agent. The skill tells supported agents when to use Better Design. The installer detects your coding tools and connects the MCP without replacing their existing configuration. No account is required.

Connect via Remote MCP manually

Connect any MCP-compatible client to the hosted endpoint — no local setup needed.

  1. Go to better-design.com/settings to get an API key.
  2. Add the remote MCP to your client config:
{
  "mcpServers": {
    "better-design": {
      "url": "https://better-design.com/api/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}

Connect via Claude Desktop (remote MCP)

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "better-design": {
      "url": "https://better-design.com/api/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}

Restart Claude Desktop. You can now ask Claude to use Better Design while building UI.

Project Structure

better-design/
├── components/          # Per-theme shadcn/ui component overrides
│   ├── linear/
│   ├── apple/
│   ├── stripe/
│   └── ...              # 31 systems total
├── registry/            # shadcn registry JSON for each design system
│   ├── linear/
│   ├── apple/
│   └── ...
├── scripts/             # Build and seed scripts
├── skills/              # Installable Better Design agent skill
├── .agents/             # Other installed agent skills
└── README.md

Contributing

To add a new design system:

  1. Create a folder in components/<your-system>/ with component TSX overrides.
  2. Create the corresponding registry entries in registry/<your-system>/.
  3. Run the seed script to index the new system.

Design nuances live in the components, not just CSS variables — shadow layers, focus states, border thickness, hover transitions, and radius variations by context all need to be captured in component code.

License

MIT

Files in the repo

Repository payload9 top-level entries
  • .agents
  • components
  • registry
  • scripts
  • skills
  • .gitignore
  • LICENSE
  • README.md
  • skills-lock.json

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More connectors

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

43k

Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK, and Claude Code

14k
okf-memory/
okf-agent-memory

Git-native persistent memory for AI coding agents. Implements Google OKF v0.2 with sub-300µs in-memory BM25 search, embedded MCP server, and progressive disclosure. Slashes token bloat by 80% with zero external databases or dependencies. Built in pure Go.

547
tirth8205/
code-review-graph

Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.

31k
2akouwu/
reverify

Stop your AI from making things up — it proposes, deterministic tools decide, every claim checked against ground truth with evidence. Grounded facts and context survive resets. Reverse engineering is the proving ground. MCP server + CLI.

1.1k
t8y2/dbxConnectors

20 MB lightweight cross-platform database client for 90+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 90+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP Server。

19k