Design md

From TerminalSkills/skills · View interactive version

Design md is an AI agent skill from the GitHub repository TerminalSkills/skills. Use DESIGN.md files to give AI agents a complete design system in plain text. Drop a DESIGN.md into your project root and any AI coding agent generates consistent, pixel-perfect UI matching that design. Use when: building UI with AI agents, maintaining design consistency across AI-generated componen

How to use this skill

Skill file

DESIGN.md

Overview

DESIGN.md is a plain-text design system document that AI agents read to generate consistent UI. Introduced by Google Stitch, it captures colors, typography, components, spacing, and design philosophy in markdown — the format LLMs read best.

Think of it as AGENTS.md for design: AGENTS.md tells agents how to build, DESIGN.md tells agents how things should look.

Instructions

Using a DESIGN.md

  1. Copy a DESIGN.md into your project root
  2. Tell your AI agent: "Build a landing page following DESIGN.md"
  3. The agent reads colors, typography, components, and layout rules
  4. Generated UI matches the design system consistently

Structure of a DESIGN.md

Every DESIGN.md follows this structure:

# DESIGN.md

## Visual Theme & Atmosphere
Mood, density, design philosophy (e.g., "dark cinematic", "clean editorial")

## Color Palette & Roles
| Name | Hex | Role |
|------|-----|------|
| Primary | #6366f1 | Interactive elements, CTAs |
| Background | #0a0a0b | Page background |
| Surface | #18181b | Cards, elevated content |
| Text Primary | #fafafa | Main content |
| Accent | #f97316 | Highlights, alerts |

## Typography Rules
Font families, size hierarchy (h1-h6, body, caption), weights, line heights

## Component Stylings
Buttons (primary, secondary, ghost), cards, inputs, navigation — with hover/active states

## Layout Principles
Spacing scale (4px base), max-width, grid columns, whitespace philosophy

## Depth & Elevation
Shadow system, border treatments, surface hierarchy

## Do's and Don'ts
Design guardrails: what to do and what to avoid

## Responsive Behavior
Breakpoints, touch targets, mobile adaptations

Finding Pre-Made DESIGN.md Files

The awesome-design-md collection has 58+ ready-to-use files extracted from real websites:

Creating Your Own DESIGN.md

Inspect the target website and extract:

  1. Colors: Use browser DevTools → Computed styles → capture all colors used
  2. Typography: Font families from CSS, size scale from headings
  3. Spacing: Measure padding/margins, identify the base unit (usually 4px or 8px)
  4. Components: Screenshot buttons, cards, inputs in all states
  5. Layout: Note max-width, grid columns, responsive breakpoints

Write it all in markdown following the structure above.

Examples

Example 1: Build a SaaS landing page

Drop Linear's DESIGN.md into your project:

curl -O https://raw.githubusercontent.com/VoltAgent/awesome-design-md/main/design-md/linear/DESIGN.md

Then tell the agent:

Build a landing page for a project management tool following DESIGN.md.
Include: hero with gradient, feature grid, pricing table, CTA section.

Result: The agent generates UI with Linear's exact color palette, typography, spacing, and component styles.

Example 2: Consistent component library

With DESIGN.md in place, every component the agent generates follows the same system:

Create a notification dropdown component following DESIGN.md.

The agent uses the correct surface color, border radius, shadow level, and typography from the design system — no manual correction needed.

Guidelines

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.