All articles
Tool Guides4 min read

How to Use DESIGN.md with Claude Code

Step-by-step guide to wiring DESIGN.md into your Claude Code workflow. Add it to your project once, get consistent design output forever.

Claude Code is the best AI coding tool for projects that need consistent design. It reads your entire project context, which means it can apply design rules across every file it touches. You just have to give it the rules once.

Here are four ways to wire DESIGN.md into Claude Code, from quickest to most thorough.

Method 1: Paste it into the prompt (30 seconds)

The fastest way. Go to DesignMD, find a design you like, copy the DESIGN.md content, and paste it at the start of your message to Claude Code.

---

name: Linear

colors:

primary: "#5E6AD2"

background: "#0F0F0F"

...

---

Build me a dashboard with a sidebar nav and a data table.

That is it. Claude reads the tokens and applies them. No setup required.

Limitation: you have to paste it every conversation. Good for one-off tasks, not for ongoing projects.

Method 2: Add it to your project as DESIGN.md (5 minutes)

Drop the file into the root of your project. Claude Code reads project files when it starts a session. Your design system becomes automatic context.

your-project/

DESIGN.md ← paste it here

src/

package.json

README.md

Now every Claude Code session in that project starts with your design system loaded. You never have to paste it again.

Method 3: Reference it in CLAUDE.md (10 minutes)

Claude Code has a first-class project instructions file called CLAUDE.md. Whatever you put in there, Claude reads and follows for every session in that project.

You can either paste your DESIGN.md content directly into CLAUDE.md, or reference it:

# Project Instructions

## Design System

Follow the design tokens in DESIGN.md for all UI work.

- Use the color tokens exactly as specified

- Apply the type scale consistently

- Do not introduce new colors without a reason

With this in CLAUDE.md, Claude Code will check your DESIGN.md before touching any UI file. No prompting required.

Method 4: Use the MCP server (15 minutes, best long-term)

DesignMD has a remote MCP server. Add it once and Claude Code can search, retrieve, and apply any design from the catalog without you copying anything.

claude mcp add designmd --transport http https://designmd.co/api/mcp

After that, you can tell Claude: "Search DesignMD for a dark fintech design and apply it to the dashboard I am building." Claude will search the catalog, retrieve the DESIGN.md, and apply the tokens automatically.

Full MCP setup guide

Making Claude follow the design system

Even with context loaded, it helps to be explicit. A few prompts that work well:

Use the color tokens from DESIGN.md. Do not invent new hex values.
Follow the type scale in DESIGN.md. Apply display size to headings and body size to paragraph text.
Check DESIGN.md before writing any CSS. All spacing should use the defined scale.

The more specific you are about which part of the design system to apply, the more consistent the output.

Get the MCP server

Connect DesignMD to Claude Code and search the full catalog from inside your coding session.

Set up MCP