What is a DESIGN.md File and Why Does Your Repository Need One?
When AI coding assistants (such as Cursor, Anthropic Claude Code, GitHub Copilot, v0, or Windsurf) generate UI components, they often invent arbitrary hex colors, inconsistent border radiuses, and mismatched font sizes.
A `DESIGN.md` file is a machine-readable design system contract placed in your repository root. AI agents read this file before writing frontend code, guaranteeing that every generated component strictly uses your established CSS variables, Tailwind classes, typography hierarchy, and accessibility rules.