What is DESIGN.md for Claude Code?
DESIGN.md is a persistent visual brief for Claude Code — a Markdown file that defines color roles, typography, spacing, component behavior, and page patterns. Claude Code reads it alongside CLAUDE.md, giving it engineering and design context before implementing UI across multiple files.
What is the difference between CLAUDE.md and DESIGN.md?
CLAUDE.md handles engineering rules: commands, architecture, coding standards, and technical constraints. DESIGN.md handles visual rules: colors, type scale, spacing, component behavior, and anti-patterns. Keeping them separate makes each file shorter, clearer, and easier to maintain independently.
How do I use DESIGN.md for repository-scale Claude Code work?
Include DESIGN.md in your repo root and reference it at the start of every UI session. For large sessions, ask Claude Code to list the five most relevant DESIGN.md rules before implementing, then check each modified file against those rules after the session. This turns review into a checklist rather than open-ended visual evaluation.
Does DESIGN.md help Claude Code produce consistent UI across multiple files?
Yes. That is its primary value for Claude Code. When sessions touch five or more files across a feature surface, DESIGN.md acts as the shared reference that keeps spacing, component reuse, and visual hierarchy consistent across all generated files — preventing the drift that happens when each file is generated independently.