Documentation Index
Fetch the complete documentation index at: https://mintlify.com/davidbuenov/dbv-specs-ops/llms.txt
Use this file to discover all available pages before exploring further.
DESIGN.md is the visual design system file for projects with a user interface. It exists as a single, version-controlled document that both humans and AI agents can read: the first half is machine-readable YAML design tokens; the second half is human-readable prose that explains the intent behind those tokens. When the AI needs to create a new UI component, it reads this file first and extrapolates coherently from the established system rather than inventing a new visual direction.
DESIGN.md applies to any project with a user interface β web, mobile, or desktop. For projects without a UI (CLI tools, libraries, background services), this file can be omitted entirely. If the project has a UI and this file does not yet exist, the AI creates and fills it during the /spec phase.π Inspired by the design.md open standard from Google Labs β an open format for describing visual identities to AI coding agents.
Document Header
Part 1: YAML Design Tokens
The first half ofDESIGN.md is a YAML block that contains all design tokens. These are the atomic values β colors, sizes, spacing β from which all components are built. The AI reads these tokens when generating or reviewing UI code, ensuring visual consistency without re-interpreting design intent on every task.
Below is the complete token structure with all categories:
Token Categories Explained
| Category | Purpose |
|---|---|
colors | Full color palette with semantic naming. The on-X convention ensures accessible text contrast is always explicit. |
dark | Dark mode overrides only. Tokens not listed here inherit their light-mode values, avoiding duplication. |
typography | Five text styles covering all standard UI text roles. Headings use negative tracking (-0.02em) for a premium feel; body uses lineHeight: 1.6 for readability. |
rounded | Six border-radius steps from 0px to 9999px (full pill shape). |
spacing | Six-step scale based on a 4px grid, covering everything from tight inline spacing to full-section margins. |
components | Pre-assembled token combinations for the most common UI elements. References use {path} notation to stay in sync with token changes automatically. |
Part 2: Prose Sections
The prose half ofDESIGN.md explains the reasoning behind the tokens. This is where the designerβs intent lives β the βwhyβ that the YAML cannot express.
Visual Overview
A 2β3 sentence description of the interfaceβs emotional register and design philosophy. Example:βThe interface combines editorial minimalism with touches of warmth. Every element communicates clarity and confidence, evoking the best professional SaaS tools. The user should feel they are using something built to last.β
Colors
Explain the role of each color and how it should (and should not) be used:- Primary β Main brand color. Use in headers and key navigation elements. Never as a full-page background.
- Secondary β Supporting color for borders, secondary states, and supporting elements.
- Accent β The single engine of interaction. All CTAs, links, and active elements use this color. Reserve it for actions, not decoration.
- Neutral β Base for all pages. Warmer than pure white to reduce visual fatigue.
- Surface β For cards, modals, and panels that lift content above the neutral background.
- Error / Success / Warning β Semantic feedback colors only. Never use these as decoration.
Typography
Justify the font choices and explain the scale:- Primary font β e.g.,
Inter, chosen for screen readability at all sizes and a wide weight family. - Fallback β e.g.,
System UIfor instant loading without layout shift. - Scale β The typographic scale follows a 1.25 modular progression. Headings use negative tracking for a premium appearance. Body uses
lineHeight: 1.6for maximum readability. - Prohibitions β e.g., Never mix more than 2 font families. Never use
font-weight: 300for text under 16px on a dark background.
Key Components
Describe design decisions for the most important components: Buttons- Primary β Accent background, white text,
rounded.md. One per screen. It is the shout β only one element should shout. - Secondary β Transparent with accent border. For important but non-primary actions.
- Ghost / Text β No border, no background. For tertiary actions or in information-dense contexts.
- Surface background,
rounded.lg, soft shadow (box-shadow: 0 2px 8px rgba(0,0,0,0.08)). No border. Minimum internal padding:spacing.lg(24px).
- Inputs with a 1px neutral border. On focus, the border increases to 2px and changes to the accent color. Never use colored backgrounds in form fields.
Motion & Interaction
The framework defines a consistent motion system:| Parameter | Value | Use case |
|---|---|---|
| Micro-interactions | 200ms | Hover states, focus rings, toggles |
| Page transitions / modals | 350ms | Modal open/close, page entrance |
| Standard easing | cubic-bezier(0.4, 0, 0.2, 1) | Most animations (Material Design Standard) |
| Element entrance | ease-out | Elements that βfallβ into view |
| Element exit | ease-in | Elements that βleaveβ the screen |
prefers-reduced-motion. Replace transitions with instantaneous changes or very short fades (50ms).