Convex Design System
Use the live Storybook as the source of truth: https://storybook.previews.convex.dev/
The current Storybook is broader than the older website only library. It now includes:
- primitives such as
Button, Callout, Checkbox, Combobox, Menu, Modal, MultiSelectCombobox, ProgressBar, Spinner, and TextInput
- shared
elements/* building blocks such as Avatar, Card, CopyButton, PaginationControls, Sidebar, Snippet, and ToastContainer
- product level
components/*, features/*, and lib/* stories used across the Convex dashboard
How to use this skill
When asked to build Convex style UI:
- Start with the smallest reusable primitive that matches the job.
- Reach for
elements/* when the UI needs a shared layout or display pattern.
- Reuse
components/* or features/* only when the request matches an existing dashboard pattern closely.
- Prefer composition over custom styling. Build from existing pieces before inventing a new wrapper.
- Do not rely on old website Storybook URLs or old token lists unless you verify them again.
Current Storybook map
Primitives
Use these first for new UI:
Button
Callout
Checkbox
Combobox
KeyboardShortcut
Menu
Modal
MultiSelectCombobox
ProgressBar
Spinner
TextInput
Shared elements
These cover reusable display and layout patterns:
elements/Avatar
elements/AvatarGrid
elements/Card
elements/CopyButton
elements/DetailPanel
elements/PaginationControls
elements/ReadonlyCode
elements/ReadonlyCodeDiff
elements/Sidebar
elements/Snippet
elements/ToastContainer
elements/UsagePeriodSelector
Product and dashboard references
These are useful as implementation references when the user asks for admin or dashboard UI:
components/header/NavBar
components/header/Breadcrumbs
components/header/UsageBanner
components/billing/*
components/teamSettings/*
components/projectSettings/*
features/data/components/*
features/functions/components/*
features/health/components/*
features/logs/components/*
features/settings/components/*
lib/ConvexStatusBadge
lib/ConvexStatusWidget
Verified primitive patterns
These details were confirmed from the live Storybook controls.
Button
Use for primary actions, neutral actions, destructive actions, and unstyled inline actions.
- variants:
primary, danger, neutral, unstyled
- sizes:
xs, sm, md, lg
- supports:
icon, inline, focused, disabled, loading, tip
<Button variant="primary" size="md">
Save changes
</Button>
<Button variant="danger" size="sm" disabled>
Delete project
</Button>
Callout
Use for inline page feedback and guidance blocks.
- variants seen in controls:
instructions, error, hint, localDevUpsell, success
- accepts
children
<Callout variant="instructions">
Review the settings before continuing.
</Callout>
TextInput
Use for standard form fields and search style inputs.
- required in stories:
id
- supports:
label, labelHidden, description, error
- input types seen in controls:
text, search, email, time, password, number
- sizes:
sm, md
- supports addons and icons:
leftAddon, rightAddon, Icon, SearchIcon
- supports
isSearchLoading
<TextInput
id="project-name"
label="Project name"
type="text"
size="md"
/>
Checkbox
Use for boolean settings and bulk selection states.
- required in stories:
checked, onChange
- supports
disabled
- includes checked, unchecked, and indeterminate states
<Checkbox
id="email-notifications"
checked={enabled}
/>
Combobox
Use for searchable single selection inputs.
- required in stories:
label, options, setSelectedOption
- option shape:
{ label, value }
- supports
selectedOption, placeholder, searchPlaceholder
- supports
disableSearch, allowCustomValue, disabled
- sizes:
sm, md
<Combobox
label="Team"
options={teams}
selectedOption={teamId}
setSelectedOption={setTeamId}
/>
MultiSelectCombobox
Use for searchable multi select inputs with count based labels.
- required in stories:
options, unit, unitPlural, label, selectedOptions
- supports
labelHidden and disableSearch
<MultiSelectCombobox
label="Regions"
options={regions}
unit="region"
unitPlural="regions"
selectedOptions={selectedRegions}
setSelectedOptions={setSelectedRegions}
/>
Modal
Use for focused workflows, confirmations, and settings flows.
- required in stories:
title, onClose, children
- supports optional
description
- sizes:
sm, md, lg
<Modal
title="Invite team member"
description="Send access to a new teammate."
size="md"
>
<InviteMemberForm />
</Modal>
ProgressBar and Spinner
Use for loading and background work feedback.
ProgressBar stories include indeterminate, empty, half, full, animated value, and solid
Spinner has a default loading state story
Composition guidance
Forms
Build forms from:
TextInput
Checkbox
Combobox
MultiSelectCombobox
Button
Callout for validation or setup guidance
Feedback states
Use:
Callout for inline information, errors, and success states
ProgressBar for long running progress
Spinner for short blocking waits
elements/ToastContainer for transient feedback
App layout
Use these as references for admin style product UI:
components/header/NavBar
components/header/Breadcrumbs
elements/Sidebar
elements/Card
elements/DetailPanel
Decision rules
- If the request is a new button, input, modal, or filter control, use a primitive first.
- If the request is a dashboard panel, code display, snippet, toast, or navigation shell, inspect
elements/* next.
- If the request matches billing, team settings, logs, data browser, or deployment settings, inspect the related
components/* or features/* stories before building from scratch.
- If a prop or state is unclear, check the live Storybook controls instead of guessing.
Additional resources
- Live Storybook:
https://storybook.previews.convex.dev/
- Brand guide:
https://convex.dev/brand
- Storybook index:
https://storybook.previews.convex.dev/index.json
1---2name: convex-design-system3description: Convex UI component patterns from the live Storybook preview. Use when building React components, forms, modals, navigation, feedback states, or app layouts that should match the current Convex design system. Applies to both shared primitives and dashboard style product UI.4---56# Convex Design System78Use the live Storybook as the source of truth: `https://storybook.previews.convex.dev/`910The current Storybook is broader than the older website only library. It now includes:1112- primitives such as `Button`, `Callout`, `Checkbox`, `Combobox`, `Menu`, `Modal`, `MultiSelectCombobox`, `ProgressBar`, `Spinner`, and `TextInput`13- shared `elements/*` building blocks such as `Avatar`, `Card`, `CopyButton`, `PaginationControls`, `Sidebar`, `Snippet`, and `ToastContainer`14- product level `components/*`, `features/*`, and `lib/*` stories used across the Convex dashboard1516## How to use this skill1718When asked to build Convex style UI:19201. Start with the smallest reusable primitive that matches the job.212. Reach for `elements/*` when the UI needs a shared layout or display pattern.223. Reuse `components/*` or `features/*` only when the request matches an existing dashboard pattern closely.234. Prefer composition over custom styling. Build from existing pieces before inventing a new wrapper.245. Do not rely on old website Storybook URLs or old token lists unless you verify them again.2526## Current Storybook map2728### Primitives2930Use these first for new UI:3132- `Button`33- `Callout`34- `Checkbox`35- `Combobox`36- `KeyboardShortcut`37- `Menu`38- `Modal`39- `MultiSelectCombobox`40- `ProgressBar`41- `Spinner`42- `TextInput`4344### Shared elements4546These cover reusable display and layout patterns:4748- `elements/Avatar`49- `elements/AvatarGrid`50- `elements/Card`51- `elements/CopyButton`52- `elements/DetailPanel`53- `elements/PaginationControls`54- `elements/ReadonlyCode`55- `elements/ReadonlyCodeDiff`56- `elements/Sidebar`57- `elements/Snippet`58- `elements/ToastContainer`59- `elements/UsagePeriodSelector`6061### Product and dashboard references6263These are useful as implementation references when the user asks for admin or dashboard UI:6465- `components/header/NavBar`66- `components/header/Breadcrumbs`67- `components/header/UsageBanner`68- `components/billing/*`69- `components/teamSettings/*`70- `components/projectSettings/*`71- `features/data/components/*`72- `features/functions/components/*`73- `features/health/components/*`74- `features/logs/components/*`75- `features/settings/components/*`76- `lib/ConvexStatusBadge`77- `lib/ConvexStatusWidget`7879## Verified primitive patterns8081These details were confirmed from the live Storybook controls.8283### Button8485Use for primary actions, neutral actions, destructive actions, and unstyled inline actions.8687- variants: `primary`, `danger`, `neutral`, `unstyled`88- sizes: `xs`, `sm`, `md`, `lg`89- supports: `icon`, `inline`, `focused`, `disabled`, `loading`, `tip`9091```tsx92<Button variant="primary" size="md">93 Save changes94</Button>9596<Button variant="danger" size="sm" disabled>97 Delete project98</Button>99```100101### Callout102103Use for inline page feedback and guidance blocks.104105- variants seen in controls: `instructions`, `error`, `hint`, `localDevUpsell`, `success`106- accepts `children`107108```tsx109<Callout variant="instructions">110 Review the settings before continuing.111</Callout>112```113114### TextInput115116Use for standard form fields and search style inputs.117118- required in stories: `id`119- supports: `label`, `labelHidden`, `description`, `error`120- input types seen in controls: `text`, `search`, `email`, `time`, `password`, `number`121- sizes: `sm`, `md`122- supports addons and icons: `leftAddon`, `rightAddon`, `Icon`, `SearchIcon`123- supports `isSearchLoading`124125```tsx126<TextInput127 id="project-name"128 label="Project name"129 type="text"130 size="md"131/>132```133134### Checkbox135136Use for boolean settings and bulk selection states.137138- required in stories: `checked`, `onChange`139- supports `disabled`140- includes checked, unchecked, and indeterminate states141142```tsx143<Checkbox144 id="email-notifications"145 checked={enabled}146 onChange={setEnabled}147/>148```149150### Combobox151152Use for searchable single selection inputs.153154- required in stories: `label`, `options`, `setSelectedOption`155- option shape: `{ label, value }`156- supports `selectedOption`, `placeholder`, `searchPlaceholder`157- supports `disableSearch`, `allowCustomValue`, `disabled`158- sizes: `sm`, `md`159160```tsx161<Combobox162 label="Team"163 options={teams}164 selectedOption={teamId}165 setSelectedOption={setTeamId}166/>167```168169### MultiSelectCombobox170171Use for searchable multi select inputs with count based labels.172173- required in stories: `options`, `unit`, `unitPlural`, `label`, `selectedOptions`174- supports `labelHidden` and `disableSearch`175176```tsx177<MultiSelectCombobox178 label="Regions"179 options={regions}180 unit="region"181 unitPlural="regions"182 selectedOptions={selectedRegions}183 setSelectedOptions={setSelectedRegions}184/>185```186187### Modal188189Use for focused workflows, confirmations, and settings flows.190191- required in stories: `title`, `onClose`, `children`192- supports optional `description`193- sizes: `sm`, `md`, `lg`194195```tsx196<Modal197 title="Invite team member"198 description="Send access to a new teammate."199 onClose={closeModal}200 size="md"201>202 <InviteMemberForm />203</Modal>204```205206### ProgressBar and Spinner207208Use for loading and background work feedback.209210- `ProgressBar` stories include `indeterminate`, `empty`, `half`, `full`, `animated value`, and `solid`211- `Spinner` has a default loading state story212213## Composition guidance214215### Forms216217Build forms from:218219- `TextInput`220- `Checkbox`221- `Combobox`222- `MultiSelectCombobox`223- `Button`224- `Callout` for validation or setup guidance225226### Feedback states227228Use:229230- `Callout` for inline information, errors, and success states231- `ProgressBar` for long running progress232- `Spinner` for short blocking waits233- `elements/ToastContainer` for transient feedback234235### App layout236237Use these as references for admin style product UI:238239- `components/header/NavBar`240- `components/header/Breadcrumbs`241- `elements/Sidebar`242- `elements/Card`243- `elements/DetailPanel`244245## Decision rules246247- If the request is a new button, input, modal, or filter control, use a primitive first.248- If the request is a dashboard panel, code display, snippet, toast, or navigation shell, inspect `elements/*` next.249- If the request matches billing, team settings, logs, data browser, or deployment settings, inspect the related `components/*` or `features/*` stories before building from scratch.250- If a prop or state is unclear, check the live Storybook controls instead of guessing.251252## Additional resources253254- Live Storybook: `https://storybook.previews.convex.dev/`255- Brand guide: `https://convex.dev/brand`256- Storybook index: `https://storybook.previews.convex.dev/index.json`