Skip to main content
AI & LLM Essential

DESIGN.md Generator & AI Design System Studio

Interactive DESIGN.md and AI Design System generator. Define color tokens, typography scales, spacing rules, and component conventions for AI coding agents with live component preview and Tailwind @theme export.

Interactive brand color token builder (Primary, Secondary, Accent, Background, Surface, Border, Text)
Typography scale customizer with font families, headings (h1-h4), and body font sizing
Layout & spacing scale generator (Containers, Gaps, Radius, Shadows)
Live UI component sandbox displaying rendered buttons, inputs, and cards in real time
Multi-format export: Standard DESIGN.md, Tailwind CSS v4 @theme CSS block, and JSON tokens
Instant presets: Obsidian Cyber, Slate Minimalist, Modern SaaS Indigo, and Tokyo Night
01 // DESIGN.MD STUDIOAI Design Tokens & Contract Studio
INDEX.01 // PROJECT DIRECTIVE & PHILOSOPHY
SINGLE PALETTE
INDEX.02 // SEMANTIC COLOR TOKENS
Primary Main CTAs
Secondary Badges & Tags
Accent Alerts & Highlights
Canvas Root Body Background
Surface Panels & Cards
Border Dividers & Seams
Text Primary Headings & Body
Text Muted Labels & Captions
INDEX.03 // TYPOGRAPHY & LAYOUT SCALES
INDEX.04 // LIVE SANDBOXDark-First
PREVIEW (DARK)

My Next-Gen App

AI agents construct components strictly adhering to this Dark-First with High-Precision Contrast specification.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# DESIGN SYSTEM & UI GUIDELINES (DESIGN.md)
<!-- Machine-Readable Design System Contract for AI Coding Agents (Cursor, Claude Code, Copilot, Windsurf) -->
 
Project: My Next-Gen App
Specification Version: 1.0.0
Accessibility Target: WCAG 2.2 Level AA (Strict Compliance)
 
---
 
## 1. Aesthetic Directive & Core Philosophy
High-craft dark cyber theme with 85% glassmorphic surfaces, subtle neon highlights, and sub-1px border sheens.
 
- **Theme Mode:** Dark-First with High-Precision Contrast
- **Visual Depth:** Translucent glass surfaces with backdrop-filter: blur(16px)
- **Corner Radii:** Cards = `1rem`, Inputs/Buttons = `calc(1rem * 0.75)`
- **Max Content Container:** `80rem (1280px)`
 
---
 
## 2. Semantic Color Token Matrix
 
| Token Name | Hex / CSS Value | Role & Usage Rules |
| :--- | :--- | :--- |
| **Primary Accent** | `#38bdf8` | Main Call-to-Actions (CTAs), primary active buttons, key highlights |
| **Secondary Accent** | `#818cf8` | Secondary interactive elements, badges, supporting focus rings |
| **Accent / State** | `#f43f5e` | High-priority warnings, alerts, special badges, tertiary state |
| **Canvas Background** | `#090a0f` | Root application background (`body`, `html`) |
| **Surface Card** | `#0e111a` | Elevated cards, modals, sidebars, floating dropdowns |
| **Border / Divider** | `rgba(255, 255, 255, 0.08)` | Subtle 1px structural borders, dividers, subtle card seams |
| **Text Primary** | `#f8fafc` | High-contrast headings (h1-h4), active text, primary body copy |
| **Text Muted** | `#94a3b8` | Secondary labels, captions, helper hints, timestamps |
 
---
 
## 3. Typography Hierarchy
 
- **UI & Display Font:** `'Plus Jakarta Sans', system-ui, sans-serif`
- **Code & Monospace Font:** `'JetBrains Mono', monospace`
 
### Font Scale & Line Heights:
- **Heading 1 (Page Title):** `text-3xl sm:text-5xl font-semibold tracking-tight leading-tight`
- **Heading 2 (Section Title):** `text-xl sm:text-2xl font-bold tracking-tight`
- **Heading 3 (Card Subheading):** `text-base font-semibold`
- **Body Copy:** `text-sm sm:text-base leading-relaxed font-normal`
- **Code & Token Labels:** `text-xs font-mono font-medium tracking-wide`
 
---
 
## 4. Component Construction Rules for AI Agents
 
### A. Buttons & CTAs
- **Primary Button:** Solid `bg-[#38bdf8]`, high-contrast text, `px-4 py-2.5 rounded-xl font-medium text-xs shadow-lg hover:brightness-110 active:scale-[0.98] transition-colors`
- **Secondary / Ghost Button:** `bg-white/5 hover:bg-white/10 border border-white/10 px-4 py-2.5 rounded-xl text-xs`
- **Focus Rings:** Always include `focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#38bdf8]`
 
### B. Cards & Panels
- Structure: `p-6 rounded-2xl bg-[#0e111a] border border-[rgba(255, 255, 255, 0.08)] shadow-xl backdrop-blur-md`
- Interactive Cards: Add `hover:border-[#38bdf8]/40 transition-colors group`
 
### C. Form Inputs & Textareas
- Base Style: `w-full bg-[#090a0f] border border-[rgba(255, 255, 255, 0.08)] px-3.5 py-2.5 rounded-xl text-xs font-mono focus:outline-none focus:border-[#38bdf8] focus:ring-1 focus:ring-[#38bdf8]`
 
---
 
## 5. Strict AI Rules (Do NOT Violate)
1. **Never invent arbitrary colors:** Use strictly the tokens defined in Section 2.
2. **Never drop border radius:** Always apply `1rem` to cards and dialogs.
3. **Accessibility:** Ensure all text passes WCAG AA (minimum 4.5:1 contrast ratio).
4. **Icons:** Use `lucide-react` standard icons with `w-4 h-4` or `w-5 h-5` dimensions.
 
WebCraftKit platform · 100% client-side engine

Air-Gapped Privacy & Zero-Latency Developer Utilities

Every cryptographic algorithm, schema transformer, color space converter, and binary extractor runs entirely in your browser RAM. Your tokens, API secrets, and source code are never sent to external servers.

0 B server telemetry
·
< 2ms execution
·
80 production tools
Read architecture story →
Comprehensive technical manual

How to Use DESIGN.md to Enforce Visual Consistency Across AI Coding Agents

In-depth specifications, architectural mechanics, real-world code implementations, and industry best practices.

01

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.

02

The Core Structure of a Machine-Readable DESIGN.md

A production-grade DESIGN.md file is organized into four standardized markdown sections: 1. Design Philosophy & Aesthetic Directive (e.g. "Precision Industrial Dark with glassmorphic accents") 2. Color Tokens & Semantic Roles (Primary, Accent, Background, Surface, Border, Text) 3. Typography & Spacing Scale (Font families, line-heights, fluid clamps) 4. Component Construction Rules (Buttons, Cards, Inputs, Modals, Focus rings)

Implementation example
# DESIGN SYSTEM CONTRACT (DESIGN.md)

## 1. Aesthetic Directive
- Style: Obsidian Cyber Dark with High-Precision Neon Accents
- Border Radius: Rounded-2xl (1rem / 16px) for cards, Rounded-xl for inputs
- Background: #090a0f (Canvas), #0e111a (Elevated Card)

## 2. Semantic Color Tokens
- Primary Accent: #38bdf8 (Sky 400 - Main CTAs, active highlights)
- Secondary Accent: #818cf8 (Indigo 400 - Sub-actions, tags)
- Surface Background: #0e111a (85% Glass opacity with backdrop-blur)
- Border Color: rgba(255, 255, 255, 0.08)
- Text Primary: #f8fafc | Text Muted: #94a3b8

## 3. Component Construction Rules
- Buttons: px-4 py-2.5 rounded-xl font-medium text-xs transition-all
- Cards: p-6 rounded-2xl bg-slate-900/80 border border-white/10 shadow-xl
- Inputs: bg-slate-950/80 border border-white/10 focus:border-sky-500
03

Exporting to Tailwind CSS v4 @theme and Figma Tokens

Our studio allows you to export your configured tokens directly as modern CSS variables and Tailwind v4 `@theme` definitions, ensuring 100% synchronization between your code and AI prompt context.

Implementation example
@theme {
  --color-canvas: #090a0f;
  --color-card: #0e111a;
  --color-primary: #38bdf8;
  --color-accent: #818cf8;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
04

Step-by-Step Workflow & Cross-Referencing in AGENTS.md

  1. 1. Customize your colors, typography, and component rules in the visual editor.
  2. 2. Preview the live rendered components in the interactive sandbox card.
  3. 3. Click "Download DESIGN.md" and place it in your repository root (`/DESIGN.md`).
  4. 4. Reference your design file in `AGENTS.md` or `.cursorrules` using `@DESIGN.md`.
  5. 5. When prompting your AI ("Build a pricing card"), the model will automatically bind your exact design tokens without manual prompting.
Knowledge base & clarifications

Frequently Asked Questions: DESIGN.md Generator

Got questions about how DESIGN.md Generator operates, client-side cryptographic safety, or performance limits? Explore common answers below.

Where should the DESIGN.md file be located in my repository?

Place the file directly at the root of your project: `/DESIGN.md`. All modern AI coding tools (Cursor, Claude Code, Copilot, Windsurf, RooCode) automatically scan the repository root for design guidelines before executing frontend prompts.

How is DESIGN.md different from AGENTS.md or .cursorrules?

AGENTS.md and .cursorrules contain technical operational instructions (build commands, testing rules, architectural guidelines). DESIGN.md focuses exclusively on visual presentation: color tokens, typography scales, component anatomy, and UI accessibility.

Can I import colors from WebCraftKit’s Color Palette Generator?

Yes! Use the "Pipe Output" button in our Palette Generator or Color Contrast Checker to instantly transfer your 5-slot color palette into the DESIGN.md Studio with zero manual hex copying.

Does DESIGN.md work with both Tailwind CSS and raw CSS variables?

Yes. The generator exports both descriptive markdown tables for AI reasoning and copy-pasteable Tailwind v4 `@theme` and CSS custom property (`:root { ... }`) code blocks.

Are my project design tokens sent to any external server?

No. All token calculations, live preview rendering, and markdown generation execute 100% locally in your browser with zero remote network calls.

Complementary utilities
View all in AI & LLM →