Design system and anti-patterns for professional UI. Ensures apps don't look "AI generated". Defines color palettes, typography, spacing, animations, and common anti-patterns to avoid. Used by Design Reviewer sub-agent to polish UI. Triggers: design review, polish UI, improve aesthetics, looks like AI made it, design system, style guide, make it beautiful.
Make AI-built apps look human-crafted. No generic templates. No obvious patterns.
<core_principle>
If someone can tell it was AI-generated, we failed.
Good design is invisible. Users should feel the app is professional, not notice it follows a template. </core_principle>
<color_system>
AI tends to pick:
Base Palette (Default)
/* Use Tailwind's slate scale for neutrals */
--background: slate-50 /* Page background */
--surface: white /* Cards, modals */
--border: slate-200 /* Dividers, borders */
--text-primary: slate-900 /* Headlines */
--text-secondary: slate-600 /* Body text */
--text-muted: slate-400 /* Placeholders, hints */
Accent Colors (Pick ONE per app)
/* Default: Blue (professional, trustworthy) */
--accent: blue-600
--accent-hover: blue-700
--accent-light: blue-50
/* Alternative by app type: */
/* Finance/Banking → Green (money) */
/* Health/Wellness → Teal (calm) */
/* Food/Restaurant → Orange (appetite) */
/* Creative/Design → Purple (creativity) */
/* Urgent/Alert → Red (attention) */
Rules
<typography_system>
/* Don't specify Inter everywhere - use system fonts */
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
/* This looks native on every platform */
Page Title: text-2xl font-semibold (24px)
Section Title: text-lg font-medium (18px)
Card Title: text-base font-medium (16px)
Body: text-sm (14px)
Small/Caption: text-xs text-slate-500 (12px)
❌ Don't use font-bold on everything
❌ Don't mix too many font sizes in one card
❌ Don't use ALL CAPS for long text
❌ Don't center-align body paragraphs
❌ Don't use pure black (#000) - use slate-900
✅ Headlines: semibold or medium, never regular ✅ Body: regular weight, good line-height (1.5-1.6) ✅ Keep hierarchy: max 3 sizes per component ✅ Left-align most text (except headings in centered layouts) </typography_system>
<spacing_system>
Use Tailwind's default scale consistently:
4 (1rem/16px) - Small gaps, inline elements
6 (1.5rem/24px) - Medium gaps, between components
8 (2rem/32px) - Large gaps, between sections
12 (3rem/48px) - XL gaps, page sections
// Standard page container
<div className="p-4 md:p-6 lg:p-8">
{/* Page title */}
<h1 className="text-2xl font-semibold mb-6">Dashboard</h1>
{/* Content sections with consistent spacing */}
<section className="mb-8">
{/* Section content */}
</section>
</div>
<Card>
<CardHeader className="pb-4"> {/* Reduce default padding */}
<CardTitle>Title</CardTitle>
</CardHeader>
<CardContent className="space-y-4">
{/* Content with vertical gaps */}
</CardContent>
</Card>
❌ Inconsistent padding (p-3 here, p-5 there) ❌ Too little whitespace (cramped feel) ❌ Too much whitespace (disconnected feel) ❌ Different gap sizes for same-level elements </spacing_system>
<animation_system>
Animation should:
// Hover states - use transition-colors or transition-all
<div className="transition-colors hover:bg-slate-50">
// Card hover - subtle lift
<Card className="transition-shadow hover:shadow-md">
// Button hover - built into shadcn, don't override
<Button>Already animated</Button>
// Page transitions
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.3 }}
>
// List stagger
<motion.div
variants={{
hidden: { opacity: 0 },
show: {
opacity: 1,
transition: { staggerChildren: 0.1 }
}
}}
initial="hidden"
animate="show"
>
{items.map(item => (
<motion.div
key={item.id}
variants={{
hidden: { opacity: 0, y: 20 },
show: { opacity: 1, y: 0 }
}}
>
{item.content}
</motion.div>
))}
</motion.div>
// Micro-interaction - button tap
<motion.button whileTap={{ scale: 0.98 }}>
Click me
</motion.button>
❌ Bounce effects (feels cheap) ❌ Slow animations (>500ms feels sluggish) ❌ Animation on every element (overwhelming) ❌ Spinning loaders everywhere (use skeleton instead) ❌ Dramatic entrance animations </animation_system>
<component_patterns>
// Clean card - no excessive decoration
<Card className="bg-white border shadow-sm">
<CardContent className="p-4">
{/* Content */}
</CardContent>
</Card>
// DO NOT: rounded-3xl, heavy shadows, gradient borders
// Primary action
<Button>Save</Button>
// Secondary action
<Button variant="outline">Cancel</Button>
// Destructive action
<Button variant="destructive">Delete</Button>
// Icon button
<Button variant="ghost" size="icon">
<Settings className="h-4 w-4" />
</Button>
// DO NOT: gradient buttons, 3D effects, icons in primary buttons (usually)
// Clean form layout
<div className="space-y-4">
<div className="space-y-2">
<Label>Name</Label>
<Input placeholder="Enter name" />
</div>
<div className="space-y-2">
<Label>Email</Label>
<Input type="email" placeholder="[email protected]" />
</div>
</div>
// DO NOT: inline labels, floating labels (unless requested), icons inside inputs
// Clean table
<Table>
<TableHeader>
<TableRow className="bg-slate-50">
<TableHead>Name</TableHead>
<TableHead>Status</TableHead>
<TableHead className="text-right">Actions</TableHead>
</TableRow>
</TableHeader>
<TableBody>
<TableRow className="hover:bg-slate-50">
<TableCell>John Smith</TableCell>
<TableCell><Badge>Active</Badge></TableCell>
<TableCell className="text-right">
<Button variant="ghost" size="sm">Edit</Button>
</TableCell>
</TableRow>
</TableBody>
</Table>
// DO NOT: zebra stripes (outdated), heavy borders, centered content
</component_patterns>
<anti_patterns_detail>
<review_checklist>