Design Patterns
Reusable product compositions built from real `@blastx/ui` primitives rather than static mockups.
Background Patterns
Surface treatments, gradient framing, and hero cards built on top of `Card`.
<Card className="bg-card/85 backdrop-blur-sm shadow-xl shadow-primary/10">
<CardHeader>
<CardTitle>Frosted Glass Card</CardTitle>
<CardDescription>Use layered gradients with a translucent card surface.</CardDescription>
</CardHeader>
</Card>Card Header Gradient
A header treatment for dashboards and review panels.
Card Compositions
Standard cards, highlighted metrics, and CTA containers made from the same primitive.
Status And State Patterns
Semantic badges, progress indicators, and empty states using existing UI primitives.
Drafting introduction, statistics, and CTA sections.
Form Patterns
Inputs, labels, textareas, and selectable cards composed from the shared form primitives.
<div className="relative">
<Mail className="absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground" />
<Input className="pl-10" placeholder="you@example.com" type="email" />
</div>
<Tabs defaultValue="credentials">
<TabsList>
<TabsTrigger value="credentials">Credentials</TabsTrigger>
<TabsTrigger value="brief">Brief</TabsTrigger>
</TabsList>
</Tabs>Button Compositions
CTA buttons, lightweight actions, and chip-style prompts should all use the shared `Button` component.
<Button className="w-full" size="lg">Sign in</Button>
<Button size="sm">
<Plus className="size-3.5" />
New Article
</Button>
<Button className="rounded-full" size="sm" variant="outline">
Write introduction
</Button>Shadow And Elevation
Use elevation intentionally: lighter for default cards, stronger only for emphasis and overlays.
shadow-xs
Inputs and compact surfaces
shadow-sm
Default cards
shadow-md
Hover states
shadow-lg
Menus and dialogs
shadow-xl shadow-primary/10
Hero surfaces
shadow-lg shadow-primary/20
Decorative accents