| name | design-principles |
| description | Enforce a precise, minimal design system inspired by Linear, Notion, and Stripe. Use when building dashboards, admin interfaces, or any UI that needs Jony Ive-level precision - clean, modern, minimalist with taste. Every pixel matters. |
| triggers | dashboard, admin, ui design, design system, spacing, typography, elevation, shadow, card, layout |
Ask these questions:
- What does this product do? A finance tool needs different energy than a creative tool.
- Who uses it? Power users want density. Occasional users want guidance.
- What's the emotional job? Trust? Efficiency? Delight? Focus?
- What would make this memorable? Every product has a chance to feel distinctive.
Precision & Density — Tight spacing, monochrome, information-forward. For power users who live in the tool. Think Linear, Raycast, terminal aesthetics.
Warmth & Approachability — Generous spacing, soft shadows, friendly colors. For products that want to feel human. Think Notion, Coda, collaborative tools.
Sophistication & Trust — Cool tones, layered depth, financial gravitas. For products handling money or sensitive data. Think Stripe, Mercury, enterprise B2B.
Boldness & Clarity — High contrast, dramatic negative space, confident typography. For products that want to feel modern and decisive. Think Vercel, minimal dashboards.
Utility & Function — Muted palette, functional density, clear hierarchy. For products where the work matters more than the chrome. Think GitHub, developer tools.
Data & Analysis — Chart-optimized, technical but accessible, numbers as first-class citizens. For analytics, metrics, business intelligence.
Pick one. Or blend two. But commit to a direction that fits the product.
- Warm foundations (creams, warm grays) — approachable, comfortable, human
- Cool foundations (slate, blue-gray) — professional, trustworthy, serious
- Pure neutrals (true grays, black/white) — minimal, bold, technical
- Tinted foundations (slight color cast) — distinctive, memorable, branded
Light or dark? Dark modes aren't just light modes inverted. Dark feels technical, focused, premium. Light feels open, approachable, clean. Choose based on context.
Accent color — Pick ONE that means something. Blue for trust. Green for growth. Orange for energy. Violet for creativity. Don't just reach for the same accent every time.
- Dense grids for information-heavy interfaces where users scan and compare
- Generous spacing for focused tasks where users need to concentrate
- Sidebar navigation for multi-section apps with many destinations
- Top navigation for simpler tools with fewer sections
- Split panels for list-detail patterns where context matters
- System fonts — fast, native, invisible (good for utility-focused products)
- Geometric sans (Geist, Inter) — modern, clean, technical
- Humanist sans (SF Pro, Satoshi) — warmer, more approachable
- Monospace influence — technical, developer-focused, data-heavy
4px- micro spacing (icon gaps)8px- tight spacing (within components)12px- standard spacing (between related elements)16px- comfortable spacing (section padding)24px- generous spacing (between sections)32px- major separation
/* Good */
padding: 16px;
padding: 12px 16px; /* Only when horizontal needs more room */
/* Bad */
padding: 24px 16px 12px 16px;
- Sharp: 4px, 6px, 8px
- Soft: 8px, 12px
- Minimal: 2px, 4px, 6px
Don't mix systems. Consistency creates coherence.
Borders-only (flat) — Clean, technical, dense. Works for utility-focused tools where information density matters more than visual lift. Linear, Raycast, and many developer tools use almost no shadows — just subtle borders to define regions. This isn't lazy; it's intentional restraint.
Subtle single shadows — Soft lift without complexity. A simple 0 1px 3px rgba(0,0,0,0.08) can be enough. Works for approachable products that want gentle depth without the weight of layered shadows.
Layered shadows — Rich, premium, dimensional. Multiple shadow layers create realistic depth for products that want to feel substantial. Stripe and Mercury use this approach. Best for cards that need to feel like physical objects.
Surface color shifts — Background tints establish hierarchy without any shadows. A card at #fff on a #f8fafc background already feels elevated. Shadows can reinforce this, but color does the heavy lifting.
Choose ONE approach and commit. Mixing flat borders on some cards with heavy shadows on others creates visual inconsistency.
/* Borders-only approach */
--border: rgba(0, 0, 0, 0.08);
--border-subtle: rgba(0, 0, 0, 0.05);
border: 0.5px solid var(--border);
/* Single shadow approach */
--shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
/* Layered shadow approach (when appropriate) */
--shadow-layered:
0 0 0 0.5px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04),
0 2px 4px rgba(0, 0, 0, 0.03), 0 4px 8px rgba(0, 0, 0, 0.02);
The craft is in the choice, not the complexity. A flat interface with perfect spacing and typography is more polished than a shadow-heavy interface with sloppy details.
Design each card's internal structure for its specific content — but keep the surface treatment consistent: same border weight, shadow depth, corner radius, padding scale, typography. Cohesion comes from the container chrome, not from forcing every card into the same layout template.
Never use native form elements for styled UI. Native <select>, <input type="date">, and similar elements render OS-native dropdowns and pickers that cannot be styled. Build custom components instead:
- Custom select: trigger button + positioned dropdown menu
- Custom date picker: input + calendar popover
- Custom checkbox/radio: styled div with state management
Custom select triggers must use display: inline-flex with white-space: nowrap to keep text and chevron icons on the same row. Without this, flex children can wrap to new lines.
- Headlines: 600 weight, tight letter-spacing (-0.02em)
- Body: 400-500 weight, standard tracking
- Labels: 500 weight, slight positive tracking for uppercase
- Scale: 11px, 12px, 13px, 14px (base), 16px, 18px, 24px, 32px
Give standalone icons presence with subtle background containers.
When building data-heavy interfaces, ask whether each use of color is earning its place. Score bars don't need to be color-coded by performance — a single muted color works. Grade badges don't need traffic-light colors — typography can do the hierarchy work. Look at how GitHub renders tables and lists: almost entirely monochrome, with color reserved for status indicators and actionable elements.
- Navigation — sidebar or top nav showing where you are in the app
- Location indicator — breadcrumbs, page title, or active nav state
- User context — who's logged in, what workspace/org
When building sidebars, consider using the same background as the main content area. Tools like Supabase, Linear, and Vercel rely on a subtle border for separation rather than different background colors. This reduces visual weight and feels more unified.
Borders over shadows — Shadows are less visible on dark backgrounds. Lean more on borders for definition. A border at 10-15% white opacity might look nearly invisible but it's doing its job — resist the urge to make it more prominent.
Adjust semantic colors — Status colors (success, warning, error) often need to be slightly desaturated or adjusted for dark backgrounds to avoid feeling harsh.
Same structure, different values — The hierarchy system (foreground → secondary → muted → faint) still applies, just with inverted values.
- Dramatic drop shadows (
box-shadow: 0 25px 50px...) - Large border radius (16px+) on small elements
- Asymmetric padding without clear reason
- Pure white cards on colored backgrounds
- Thick borders (2px+) for decoration
- Excessive spacing (margins > 48px between sections)
- Spring/bouncy animations
- Gradients for decoration
- Multiple accent colors in one interface
- "Did I think about what this product needs, or did I default?"
- "Does this direction fit the context and users?"
- "Does this element feel crafted?"
- "Is my depth strategy consistent and intentional?"
- "Are all elements on the grid?"
Design principles can be verified through code inspection without visual tools:
Spacing validation (4px grid):
# Find non-grid spacing values in CSS/Tailwind
grep -rE "(padding|margin|gap):\s*[0-9]+(px|rem)" --include="*.css" --include="*.tsx" | \
grep -vE "(4|8|12|16|20|24|28|32|36|40|48|64)px"
# Tailwind: Check for arbitrary values not on grid
grep -rE "\[(padding|margin|gap|space)-\[" --include="*.tsx" | grep -vE "\[[0-9]+(px)?\]"
Symmetrical padding check:
# Find asymmetric padding patterns
grep -rE "padding:\s*[0-9]+px\s+[0-9]+px\s+[0-9]+px\s+[0-9]+px" --include="*.css" --include="*.tsx"
Border radius consistency:
# List all border-radius values to check for consistency
grep -rhoE "border-radius:\s*[0-9]+px" --include="*.css" | sort | uniq -c | sort -rn
# Tailwind: Check rounded-* usage
grep -rhoE "rounded-[a-z0-9]+" --include="*.tsx" | sort | uniq -c | sort -rn
Shadow/depth strategy validation:
# List all shadow values to verify single strategy
grep -rhoE "box-shadow:[^;]+" --include="*.css" | sort | uniq -c
# Tailwind: Check shadow-* usage
grep -rhoE "shadow-[a-z0-9]+" --include="*.tsx" | sort | uniq -c | sort -rn
Typography hierarchy check:
# List font sizes to verify scale adherence
grep -rhoE "font-size:\s*[0-9]+px" --include="*.css" | sort | uniq -c | sort -rn
# Tailwind: Check text-* usage
grep -rhoE "text-(xs|sm|base|lg|xl|[0-9]xl)" --include="*.tsx" | sort | uniq -c | sort -rn
Anti-pattern detection:
# Large shadows (anti-pattern)
grep -rE "box-shadow:.*25px" --include="*.css" --include="*.tsx"
# Large border-radius on small elements
grep -rE "border-radius:\s*(16|20|24|32)px" --include="*.css"
# Multiple accent colors
grep -rhoE "(bg|text|border)-(blue|green|red|orange|purple|pink)-[0-9]+" --include="*.tsx" | \
sed 's/-[0-9]*//' | sort -u | wc -l # Should be 1-2
Design tokens validation:
# Verify CSS variables are defined and used consistently
grep -rhE "--[a-z-]+:" --include="*.css" | sort | uniq # List all tokens
grep -rhE "var\(--" --include="*.tsx" --include="*.css" | sort | uniq -c # Usage counts
Automated checklist:
# Run all checks and report violations
echo "=== Design Validation ==="
echo "Non-grid spacing:" && grep -rE "(padding|margin|gap):\s*[0-9]+(px)" --include="*.css" -c 2>/dev/null || echo "0"
echo "Shadow variations:" && grep -rhoE "box-shadow:[^;]+" --include="*.css" | sort -u | wc -l
echo "Border-radius variations:" && grep -rhoE "border-radius:\s*[0-9]+px" --include="*.css" | sort -u | wc -l
Note: These checks validate implementation consistency. The initial design direction choice (warm vs cool, dense vs generous) requires understanding product context - agents should use AskUserQuestion to clarify with the user before implementing.
<successcriteria> Every interface should look designed by a team that obsesses over 1-pixel differences. Not stripped — _crafted. And designed for its specific context.
- Design direction explicitly chosen (not defaulted)
- Color foundation matches product context
- All spacing on 4px grid (verify with grep)
- Symmetrical padding applied (verify with grep)
- Single depth strategy used consistently (verify shadow count)
- Typography hierarchy established (verify scale adherence)
- No anti-patterns present (run detection scripts)
- Color used for meaning only