Create DESIGN.md
Create or update DESIGN.md in English only. The document must translate brand strategy into usable design direction for product UI, landing pages, visual systems, and implementation.
The result should be specific enough that designers, frontend developers, and AI coding agents can build consistent screens from it.
Workflow
Step 1: Inspect Existing Context
Before writing, inspect the project for available context.
Prioritize these sources:
BRANDING.md as the primary source of truth when it exists.
README.md and product docs for product purpose, audience, positioning, and feature scope.
- Existing UI files, routes, components, and screen names.
- Theme files, design tokens, CSS variables, global CSS, Tailwind config, UI library config, or React Native theme files.
- App screenshots, marketing images, logos, icons, or visual assets when available.
Use BRANDING.md to derive practical design rules. Do not duplicate the full brand guide into DESIGN.md.
Common files and patterns to inspect:
BRANDING.md
README.md
DESIGN.md
tailwind.config.*
postcss.config.*
src/**/*.{css,scss,tsx,jsx,ts,js}
app/**/*.{css,scss,tsx,jsx,ts,js}
components/**/*.{css,scss,tsx,jsx,ts,js}
styles/**/*
theme/**/*
tokens/**/*
assets/**/*
public/**/*
*.png, *.jpg, *.jpeg, *.webp, *.svg
Step 2: Ask Only Important Missing Questions
If enough context exists, do not ask questions. Create or update DESIGN.md directly.
If important context is missing, ask 3-6 focused questions. Prefer the most consequential questions from this list:
- What will this design guide support: landing page, product app UI, marketing assets, or all of the above?
- What platforms should the design account for: web, mobile app, desktop, tablet, or responsive landing page?
- Should the product feel more minimal and serious, warm and friendly, playful but refined, premium and polished, or technical and precise?
- Are there existing brand colors, typography choices, logo directions, or references to preserve?
- Are there visual styles to avoid, such as corporate SaaS, luxury, crypto, childish mascot, overly colorful, or generic AI design?
- Should the guide include implementation tokens: CSS variables, Tailwind tokens, React Native theme tokens, or design-only guidance?
Do not run a long interview. Ask only what is needed to produce a useful first version.
Step 3: Resolve Inputs Into Direction
Turn gathered context into design decisions.
Decision rules:
- Preserve user-provided brand guidance over generic design best practices.
- Keep existing brand colors, typography, logo direction, and visual references unless the user asks to change them.
- Resolve conflicts by prioritizing
BRANDING.md, then explicit user instructions, then existing implementation, then inferred best practice.
- Avoid vague words like "modern", "clean", or "beautiful" unless immediately explained with concrete design choices.
- Do not create a generic SaaS design guide.
- Make the visual direction distinctive to the product, audience, and product name.
Step 4: Write DESIGN.md
Create or update DESIGN.md at the project root unless the user asks for another location.
Use Markdown. Use code blocks for implementation tokens. Keep sections scannable and concise.
Use this structure unless the project clearly needs a smaller or adjusted version:
# [Product Name] Design Guide
## Purpose
Explain what this document is for and how it relates to the brand guide.
## Design North Star
Define the main visual and emotional direction in one clear paragraph.
## Visual Concept
Explain the core visual metaphor and the design ingredients.
## Design Principles
List 4-6 practical principles that guide design decisions.
## Core Color Tokens
Define primary brand colors with hex values and usage.
## Functional Color Tokens
Define colors for states such as success, warning, error, info, savings, income, expense, and neutral.
## Light Mode Palette
Give concrete background, surface, text, border, and action colors.
## Dark Mode Palette
Give dark mode equivalents if relevant.
## Recommended Color Usage
Explain how colors should be used in product UI and marketing/landing pages.
## CSS Variables
Include CSS custom properties if the project uses web.
## App Theme Tokens
Include a TypeScript or JavaScript theme object if the project uses React Native, Expo, or similar.
## Typography
Recommend font families, type scale, line heights, weights, and number styling.
## Spacing System
Define spacing tokens, usually based on 4px or 8px.
## Radius System
Define border radius tokens for controls, cards, panels, pills, and icons.
## Shadows And Borders
Define subtle elevation rules for light and dark mode.
## Shape Language
Explain recurring forms: cards, circles, pills, containers, rings, etc.
## Layout Direction
Explain landing page layout rules and product screen layout rules.
## Landing Page Art Direction
Define hero treatment, section rhythm, mockups, illustrations, backgrounds, and visual details.
## Product Screen Direction
Explain design rules for core screens such as dashboard, lists, detail pages, forms, settings, empty states, and alerts.
## Component Rules
Include practical rules for buttons, cards, inputs, tabs, badges/chips, navigation, modals/sheets, and empty states.
## Data Visualization
Explain chart types, chart colors, labeling, accessibility, and what to avoid.
## Iconography
Define icon style, stroke width, shape, good icon concepts, and forbidden icon directions.
## Illustration System
Define where illustrations are allowed, visual style, mascot usage, and what to avoid.
## Logo And App Icon Direction
Describe how the brand mark should appear in product and marketing contexts.
## Motion And Interaction
Define animation duration, easing, feedback, transitions, loading states, and reduced-motion expectations.
## Accessibility
Include contrast, touch target, font size, color meaning, reduced motion, and cognitive load rules.
## Responsive Rules
Define mobile, tablet, and desktop behavior.
## Landing Page Section Guide
Give recommended section order and purpose for each section.
## Product Component Examples
Provide practical examples of important cards or UI blocks.
## Design Do And Do Not
Summarize the strongest rules.
## Implementation Checklist
End with a checklist for reviewing whether a design is ready.
Step 5: Make Tokens Implementation-Friendly
When token guidance is requested or project files indicate a token system, include concrete values.
For web projects, prefer CSS variables:
:root {
--color-background: #ffffff;
--color-surface: #f8fafc;
--color-text: #111827;
--space-4: 1rem;
--radius-card: 1rem;
}
For Tailwind projects, include Tailwind-compatible names and usage notes instead of replacing the entire config unless requested.
For React Native, Expo, or mobile app projects, include a compact theme object:
export const theme = {
colors: {
background: "#ffffff",
surface: "#f8fafc",
text: "#111827",
},
spacing: {
4: 16,
},
radius: {
card: 16,
},
};
Use existing project values when present. If values are inferred, make them coherent and label them as recommended values, not established brand facts.
Step 6: Include Practical UI Rules
Make each section useful for implementation.
Examples of practical specificity:
- Say which color is used for primary actions, focus rings, destructive actions, muted borders, and page backgrounds.
- Say whether cards are flat, outlined, tinted, glassy, elevated, dense, spacious, sharp, soft, geometric, or organic.
- Say how buttons differ by hierarchy and state.
- Say how empty states, loading states, and errors should look and feel.
- Say which chart colors map to positive, negative, neutral, warning, and comparison states.
- Say what visual moves are forbidden.
Step 7: Final Quality Check
Before finishing, verify DESIGN.md:
- Is written in English.
- Reflects existing
BRANDING.md or explicitly provided brand guidance.
- Does not duplicate the entire brand guide.
- Contains concrete implementation guidance, not only strategy.
- Includes colors with hex values when colors are discussed.
- Includes typography, spacing, radius, components, motion, accessibility, and responsive rules.
- Avoids generic SaaS phrasing and unexplained visual adjectives.
- Ends with an implementation checklist.
Output Behavior
After creating or updating DESIGN.md, summarize:
- Which project context sources were used.
- Whether any design decisions were inferred due to missing information.
- Where the file was written.
1---2name: create-design-md3description: Create an English-only DESIGN.md that translates brand strategy and project context into practical, implementation-ready design direction for product UI, landing pages, visual systems, and AI coding agents. Use when users ask to create, update, or improve DESIGN.md; define visual direction for an app, website, SaaS, product, landing page, or design system; convert BRANDING.md into usable UI rules; or produce design tokens, palettes, component rules, responsive guidance, motion, and accessibility standards.4---56# Create DESIGN.md78Create or update `DESIGN.md` in English only. The document must translate brand strategy into usable design direction for product UI, landing pages, visual systems, and implementation.910The result should be specific enough that designers, frontend developers, and AI coding agents can build consistent screens from it.1112## Workflow1314### Step 1: Inspect Existing Context1516Before writing, inspect the project for available context.1718Prioritize these sources:19201. `BRANDING.md` as the primary source of truth when it exists.212. `README.md` and product docs for product purpose, audience, positioning, and feature scope.223. Existing UI files, routes, components, and screen names.234. Theme files, design tokens, CSS variables, global CSS, Tailwind config, UI library config, or React Native theme files.245. App screenshots, marketing images, logos, icons, or visual assets when available.2526Use `BRANDING.md` to derive practical design rules. Do not duplicate the full brand guide into `DESIGN.md`.2728Common files and patterns to inspect:2930```text31BRANDING.md32README.md33DESIGN.md34tailwind.config.*35postcss.config.*36src/**/*.{css,scss,tsx,jsx,ts,js}37app/**/*.{css,scss,tsx,jsx,ts,js}38components/**/*.{css,scss,tsx,jsx,ts,js}39styles/**/*40theme/**/*41tokens/**/*42assets/**/*43public/**/*44*.png, *.jpg, *.jpeg, *.webp, *.svg45```4647### Step 2: Ask Only Important Missing Questions4849If enough context exists, do not ask questions. Create or update `DESIGN.md` directly.5051If important context is missing, ask 3-6 focused questions. Prefer the most consequential questions from this list:52531. What will this design guide support: landing page, product app UI, marketing assets, or all of the above?542. What platforms should the design account for: web, mobile app, desktop, tablet, or responsive landing page?553. Should the product feel more minimal and serious, warm and friendly, playful but refined, premium and polished, or technical and precise?564. Are there existing brand colors, typography choices, logo directions, or references to preserve?575. Are there visual styles to avoid, such as corporate SaaS, luxury, crypto, childish mascot, overly colorful, or generic AI design?586. Should the guide include implementation tokens: CSS variables, Tailwind tokens, React Native theme tokens, or design-only guidance?5960Do not run a long interview. Ask only what is needed to produce a useful first version.6162### Step 3: Resolve Inputs Into Direction6364Turn gathered context into design decisions.6566Decision rules:6768- Preserve user-provided brand guidance over generic design best practices.69- Keep existing brand colors, typography, logo direction, and visual references unless the user asks to change them.70- Resolve conflicts by prioritizing `BRANDING.md`, then explicit user instructions, then existing implementation, then inferred best practice.71- Avoid vague words like "modern", "clean", or "beautiful" unless immediately explained with concrete design choices.72- Do not create a generic SaaS design guide.73- Make the visual direction distinctive to the product, audience, and product name.7475### Step 4: Write DESIGN.md7677Create or update `DESIGN.md` at the project root unless the user asks for another location.7879Use Markdown. Use code blocks for implementation tokens. Keep sections scannable and concise.8081Use this structure unless the project clearly needs a smaller or adjusted version:8283```markdown84# [Product Name] Design Guide8586## Purpose8788Explain what this document is for and how it relates to the brand guide.8990## Design North Star9192Define the main visual and emotional direction in one clear paragraph.9394## Visual Concept9596Explain the core visual metaphor and the design ingredients.9798## Design Principles99100List 4-6 practical principles that guide design decisions.101102## Core Color Tokens103104Define primary brand colors with hex values and usage.105106## Functional Color Tokens107108Define colors for states such as success, warning, error, info, savings, income, expense, and neutral.109110## Light Mode Palette111112Give concrete background, surface, text, border, and action colors.113114## Dark Mode Palette115116Give dark mode equivalents if relevant.117118## Recommended Color Usage119120Explain how colors should be used in product UI and marketing/landing pages.121122## CSS Variables123124Include CSS custom properties if the project uses web.125126## App Theme Tokens127128Include a TypeScript or JavaScript theme object if the project uses React Native, Expo, or similar.129130## Typography131132Recommend font families, type scale, line heights, weights, and number styling.133134## Spacing System135136Define spacing tokens, usually based on 4px or 8px.137138## Radius System139140Define border radius tokens for controls, cards, panels, pills, and icons.141142## Shadows And Borders143144Define subtle elevation rules for light and dark mode.145146## Shape Language147148Explain recurring forms: cards, circles, pills, containers, rings, etc.149150## Layout Direction151152Explain landing page layout rules and product screen layout rules.153154## Landing Page Art Direction155156Define hero treatment, section rhythm, mockups, illustrations, backgrounds, and visual details.157158## Product Screen Direction159160Explain design rules for core screens such as dashboard, lists, detail pages, forms, settings, empty states, and alerts.161162## Component Rules163164Include practical rules for buttons, cards, inputs, tabs, badges/chips, navigation, modals/sheets, and empty states.165166## Data Visualization167168Explain chart types, chart colors, labeling, accessibility, and what to avoid.169170## Iconography171172Define icon style, stroke width, shape, good icon concepts, and forbidden icon directions.173174## Illustration System175176Define where illustrations are allowed, visual style, mascot usage, and what to avoid.177178## Logo And App Icon Direction179180Describe how the brand mark should appear in product and marketing contexts.181182## Motion And Interaction183184Define animation duration, easing, feedback, transitions, loading states, and reduced-motion expectations.185186## Accessibility187188Include contrast, touch target, font size, color meaning, reduced motion, and cognitive load rules.189190## Responsive Rules191192Define mobile, tablet, and desktop behavior.193194## Landing Page Section Guide195196Give recommended section order and purpose for each section.197198## Product Component Examples199200Provide practical examples of important cards or UI blocks.201202## Design Do And Do Not203204Summarize the strongest rules.205206## Implementation Checklist207208End with a checklist for reviewing whether a design is ready.209```210211### Step 5: Make Tokens Implementation-Friendly212213When token guidance is requested or project files indicate a token system, include concrete values.214215For web projects, prefer CSS variables:216217```css218:root {219 --color-background: #ffffff;220 --color-surface: #f8fafc;221 --color-text: #111827;222 --space-4: 1rem;223 --radius-card: 1rem;224}225```226227For Tailwind projects, include Tailwind-compatible names and usage notes instead of replacing the entire config unless requested.228229For React Native, Expo, or mobile app projects, include a compact theme object:230231```ts232export const theme = {233 colors: {234 background: "#ffffff",235 surface: "#f8fafc",236 text: "#111827",237 },238 spacing: {239 4: 16,240 },241 radius: {242 card: 16,243 },244};245```246247Use existing project values when present. If values are inferred, make them coherent and label them as recommended values, not established brand facts.248249### Step 6: Include Practical UI Rules250251Make each section useful for implementation.252253Examples of practical specificity:254255- Say which color is used for primary actions, focus rings, destructive actions, muted borders, and page backgrounds.256- Say whether cards are flat, outlined, tinted, glassy, elevated, dense, spacious, sharp, soft, geometric, or organic.257- Say how buttons differ by hierarchy and state.258- Say how empty states, loading states, and errors should look and feel.259- Say which chart colors map to positive, negative, neutral, warning, and comparison states.260- Say what visual moves are forbidden.261262### Step 7: Final Quality Check263264Before finishing, verify `DESIGN.md`:265266- Is written in English.267- Reflects existing `BRANDING.md` or explicitly provided brand guidance.268- Does not duplicate the entire brand guide.269- Contains concrete implementation guidance, not only strategy.270- Includes colors with hex values when colors are discussed.271- Includes typography, spacing, radius, components, motion, accessibility, and responsive rules.272- Avoids generic SaaS phrasing and unexplained visual adjectives.273- Ends with an implementation checklist.274275## Output Behavior276277After creating or updating `DESIGN.md`, summarize:278279- Which project context sources were used.280- Whether any design decisions were inferred due to missing information.281- Where the file was written.