Genesis

Design System

Every Genesis component displayed atomically. Use this as a living style guide.

1. Colors & Tokens

Primary

--primary

Secondary

--secondary

Muted

--muted

Accent

--accent

Destructive

--destructive

Background

--background

Card

--card

Border

--border

Success

--success

Warning

--warning

Error

--destructive

Info

--info

CSS variables: var(--primary), var(--secondary), var(--muted), var(--accent), var(--destructive)

2. Typography

Font: Inter (body), Space Grotesk (headings via font-display)

text-3xl

The quick brown fox jumps over the lazy dog

text-2xl

The quick brown fox jumps over the lazy dog

text-xl

The quick brown fox jumps over the lazy dog

text-lg

The quick brown fox jumps over the lazy dog

text-base

The quick brown fox jumps over the lazy dog

text-sm

The quick brown fox jumps over the lazy dog

text-xs

The quick brown fox jumps over the lazy dog

className="text-xs" | "text-sm" | "text-base" | "text-lg" | "text-xl" | "text-2xl" | "text-3xl"

3. Buttons

Variants

Sizes

With icons

<Button variant="default|secondary|outline|ghost|destructive|link" size="sm|default|lg|icon" />

4. Badges

DefaultSecondaryDestructiveOutlineSuccessWarningInfoMuted
<Badge variant="default|secondary|destructive|outline|success|warning|info|muted" />

5. Cards

Card Title
Card description goes here with supporting text.

This is the card content area. It can contain any elements.

Compact Card

Cards support any background and custom styling via className.

<Card> <CardHeader> <CardTitle /> <CardDescription /> </CardHeader> <CardContent /> <CardFooter /> </Card>

6. StatCard

Total Users

2,834

+12.5% from last month

Revenue

$12,450

+8.1% from last month

Orders

1,284

-2.4% from last month

Growth

18.2%

<StatCard label="..." value="..." icon={Icon} color="text-..." trend={{ value: 12, label: "..." }} href="/..." />

7. Inputs & Forms

<Input /> <Select> <SelectTrigger /> <SelectContent> <SelectItem /> </SelectContent> </Select> <Checkbox />

8. Dialog

<Dialog> <DialogTrigger /> <DialogContent mobileLayout="center" | "sheet" | "fullscreen"> <DialogHeader /> <DialogFooter /> </DialogContent> </Dialog>

9. Alert Dialog

<AlertDialog> <AlertDialogTrigger /> <AlertDialogContent> ... <AlertDialogAction /> <AlertDialogCancel /> </AlertDialogContent> </AlertDialog>

10. DataTable

Wireless HeadphonesActiveElectronics
Leather NotebookDraftStationery
Running ShoesActiveApparel
Ceramic MugArchivedKitchen
Desk LampActiveOffice
Showing 1–5 of 5
Rows:
1 / 1
<DataTable items={[...]} columns={[...]} getKey={(i) => i.id} pagination pageSize={25} selectable />

11. DataGrid

Wireless Headphones
ActiveElectronics
Leather Notebook
DraftStationery
Running Shoes
ActiveApparel
Ceramic Mug
ArchivedKitchen
Desk Lamp
ActiveOffice
Yoga Mat
ActiveFitness
<DataGrid items={[...]} viewMode="grid" renderCard={(item) => ...} renderTable={(items) => ...} renderListItem={(item) => ...} />

12. DataList

Wireless Headphones

Electronics · 2026-04-01

Active

Leather Notebook

Stationery · 2026-03-28

Draft

Running Shoes

Apparel · 2026-03-20

Active

Ceramic Mug

Kitchen · 2026-03-15

Archived

Desk Lamp

Office · 2026-03-10

Active
<DataList items={[...]} renderItem={(item, index) => ...} emptyMessage="..." />

13. KanbanBoard

To Do2

Research competitors

Alice

Write docs

Bob

In Progress1

Build dashboard

Carol

Done2

Setup CI/CD

David

Design tokens

Eve

<KanbanBoard columns={[{ key, label, color, bgColor, items }]} renderCard={(item) => ...} />

14. DataPageShell

Products

Manage your product catalog

12 products

Content area goes here

<DataPageShell title="..." subtitle="..." icon={Icon} count={5} totalCount={12} viewMode={mode} onViewModeChange={setMode}> ... </DataPageShell>

15. DataFilters

<DataFilters search={...} onSearchChange={...} sort={...} onSortChange={...} sortOptions={[...]} filters={[...]} />

16. ViewToggle

Current: grid
<ViewToggle viewMode="grid|table|list" onViewModeChange={(mode) => ...} />

17. EmptyState

No items yet. Create your first one.

<EmptyState icon={Icon} message="..." action={<Button>...</Button>} hasFilters onClearFilters={...} />

18. Progress

0%
25%
50%
75%
100%
<Progress value={50} className="..." />

19. Skeleton

<Skeleton className="h-4 w-full" /> -- animate-pulse rounded-md bg-muted

20. Tabs

Overview content goes here. This tab is currently selected.

<Tabs defaultValue="..."> <TabsList> <TabsTrigger value="..." /> </TabsList> <TabsContent value="..."> ... </TabsContent> </Tabs>

21. Separator

Horizontal

Vertical (inside a flex container)

Left
Center
Right
<Separator orientation="horizontal|vertical" />

22. Tooltip

<Tooltip content="..." side="top|bottom|left|right"> <children /> </Tooltip>