# Blocks Design System

Composable React components and design tokens for building interfaces.

## Get started

Install the package in a React 19.3 app. Import the stylesheet once, then compose your first interface.

```sh
bun add @blocks/design-system
```

With npm: `npm install @blocks/design-system`.

`actions.tsx`:

```tsx
import { Button, Stack } from '@blocks/design-system'
import '@blocks/design-system/styles.css'

export function Actions() {
  return (
    <Stack direction="row" gap="md">
      <Button variant="primary">Save</Button>
      <Button>Cancel</Button>
    </Stack>
  )
}
```

Read the [installation guide](https://design-system.blocks-ui.com/getting-started/installation.md). Agents: read [Using the docs from an agent](https://design-system.blocks-ui.com/agents.md).

## Elements of the System

- [Color tokens](https://design-system.blocks-ui.com/foundations/tokens.md): Semantic colors for surfaces, text, and interactive states.
- [Typography](https://design-system.blocks-ui.com/foundations/typography-and-fonts.md): Type scales, font families, and the rhythm of a page.
- [Components](https://design-system.blocks-ui.com/components/box.md): React primitives for controls, layouts, and navigation.

## Docs

- Getting started: [Installation](https://design-system.blocks-ui.com/getting-started/installation.md), [Writing docs pages](https://design-system.blocks-ui.com/getting-started/writing-docs.md), [Contributing and releases](https://design-system.blocks-ui.com/getting-started/releases.md)
- Agents: [Using the docs from an agent](https://design-system.blocks-ui.com/agents.md), [Markdown and llms.txt](https://design-system.blocks-ui.com/agents/markdown.md), [MCP server](https://design-system.blocks-ui.com/agents/mcp.md)
- Foundations: [Tokens](https://design-system.blocks-ui.com/foundations/tokens.md), [Themes](https://design-system.blocks-ui.com/foundations/themes.md), [Typography and fonts](https://design-system.blocks-ui.com/foundations/typography-and-fonts.md), [Responsive layout](https://design-system.blocks-ui.com/foundations/responsive-layout.md), [Reset](https://design-system.blocks-ui.com/foundations/reset.md), [Composition](https://design-system.blocks-ui.com/foundations/composition.md), [Style helpers](https://design-system.blocks-ui.com/foundations/style-helpers.md)
- Components: Layout: [Box](https://design-system.blocks-ui.com/components/box.md), [Stack](https://design-system.blocks-ui.com/components/stack.md), [Grid](https://design-system.blocks-ui.com/components/grid.md), [Measure](https://design-system.blocks-ui.com/components/measure.md), [Separator](https://design-system.blocks-ui.com/components/separator.md)
- Components: Content: [Typography](https://design-system.blocks-ui.com/components/typography.md), [Prose, Code and Pre](https://design-system.blocks-ui.com/components/prose.md), [Link](https://design-system.blocks-ui.com/components/link.md), [Card](https://design-system.blocks-ui.com/components/card.md), [Badge and Spinner](https://design-system.blocks-ui.com/components/status.md), [Table](https://design-system.blocks-ui.com/components/table.md)
- Components: Forms: [Button](https://design-system.blocks-ui.com/components/button.md), [Label, Input and Textarea](https://design-system.blocks-ui.com/components/inputs.md), [Field](https://design-system.blocks-ui.com/components/field.md), [Checkbox](https://design-system.blocks-ui.com/components/checkbox.md), [RadioGroup and Radio](https://design-system.blocks-ui.com/components/radio.md), [Switch](https://design-system.blocks-ui.com/components/switch.md), [Select](https://design-system.blocks-ui.com/components/select.md)
- Components: Overlays: [Modal](https://design-system.blocks-ui.com/components/modal.md), [Popover](https://design-system.blocks-ui.com/components/popover.md), [Tooltip](https://design-system.blocks-ui.com/components/tooltip.md), [Menu](https://design-system.blocks-ui.com/components/menu.md), [Toast and Toaster](https://design-system.blocks-ui.com/components/toast.md)
- Components: Navigation: [Tabs](https://design-system.blocks-ui.com/components/tabs.md), [Breadcrumb and Sidebar](https://design-system.blocks-ui.com/components/breadcrumb-and-sidebar.md), [NavList](https://design-system.blocks-ui.com/components/nav-list.md), [AppLayout and SidebarToggle](https://design-system.blocks-ui.com/components/app-layout.md)
- Recipes: Forms and settings: [Board item edit](https://design-system.blocks-ui.com/recipes/board-item-edit.md), [Property inspector](https://design-system.blocks-ui.com/recipes/property-inspector.md), [Sign in](https://design-system.blocks-ui.com/recipes/sign-in.md), [Sign up](https://design-system.blocks-ui.com/recipes/sign-up.md), [Profile settings](https://design-system.blocks-ui.com/recipes/profile-settings.md), [Notification preferences](https://design-system.blocks-ui.com/recipes/notification-preferences.md), [Contact form](https://design-system.blocks-ui.com/recipes/contact-form.md), [Setup wizard](https://design-system.blocks-ui.com/recipes/setup-wizard.md), [Cookie consent](https://design-system.blocks-ui.com/recipes/cookie-consent.md), [API keys](https://design-system.blocks-ui.com/recipes/api-keys.md), [Hotel booking](https://design-system.blocks-ui.com/recipes/hotel-booking.md), [File upload](https://design-system.blocks-ui.com/recipes/file-upload.md)
- Recipes: Data and dashboards: [Station summary](https://design-system.blocks-ui.com/recipes/station-summary.md), [Metrics dashboard](https://design-system.blocks-ui.com/recipes/metrics-dashboard.md), [Orders table](https://design-system.blocks-ui.com/recipes/orders-table.md), [Activity feed](https://design-system.blocks-ui.com/recipes/activity-feed.md), [Status page](https://design-system.blocks-ui.com/recipes/status-page.md), [Usage and billing](https://design-system.blocks-ui.com/recipes/usage-billing.md), [Team members](https://design-system.blocks-ui.com/recipes/team-members.md), [Month calendar](https://design-system.blocks-ui.com/recipes/month-calendar.md), [Kanban board](https://design-system.blocks-ui.com/recipes/kanban-board.md), [Search results](https://design-system.blocks-ui.com/recipes/search-results.md), [Deploy pipeline](https://design-system.blocks-ui.com/recipes/deploy-pipeline.md)
- Recipes: Commerce: [Pricing plans](https://design-system.blocks-ui.com/recipes/pricing-plans.md), [Product page](https://design-system.blocks-ui.com/recipes/product-page.md), [Shopping cart](https://design-system.blocks-ui.com/recipes/shopping-cart.md), [Checkout](https://design-system.blocks-ui.com/recipes/checkout.md), [Invoice](https://design-system.blocks-ui.com/recipes/invoice.md), [Order tracking](https://design-system.blocks-ui.com/recipes/order-tracking.md), [Plan comparison](https://design-system.blocks-ui.com/recipes/plan-comparison.md), [Product reviews](https://design-system.blocks-ui.com/recipes/product-reviews.md)
- Recipes: Communication: [Comment thread](https://design-system.blocks-ui.com/recipes/comment-thread.md), [Chat conversation](https://design-system.blocks-ui.com/recipes/chat-conversation.md), [Email inbox](https://design-system.blocks-ui.com/recipes/email-inbox.md), [Command palette](https://design-system.blocks-ui.com/recipes/command-palette.md), [Team poll](https://design-system.blocks-ui.com/recipes/team-poll.md), [Notification center](https://design-system.blocks-ui.com/recipes/notification-center.md)
- Recipes: Content and app shells: [Empty states](https://design-system.blocks-ui.com/recipes/empty-states.md), [Not found](https://design-system.blocks-ui.com/recipes/not-found.md), [FAQ](https://design-system.blocks-ui.com/recipes/faq.md), [Article index](https://design-system.blocks-ui.com/recipes/article-index.md), [Changelog](https://design-system.blocks-ui.com/recipes/changelog.md), [Site footer](https://design-system.blocks-ui.com/recipes/site-footer.md), [Onboarding checklist](https://design-system.blocks-ui.com/recipes/onboarding-checklist.md), [Settings shell](https://design-system.blocks-ui.com/recipes/settings-shell.md)
- Recipes: Playful: [Recipe card](https://design-system.blocks-ui.com/recipes/recipe-card.md), [Nutrition label](https://design-system.blocks-ui.com/recipes/nutrition-label.md), [Boarding pass](https://design-system.blocks-ui.com/recipes/boarding-pass.md), [Weather week](https://design-system.blocks-ui.com/recipes/weather-week.md), [Habit heatmap](https://design-system.blocks-ui.com/recipes/habit-heatmap.md), [Seat picker](https://design-system.blocks-ui.com/recipes/seat-picker.md), [Departures board](https://design-system.blocks-ui.com/recipes/departures-board.md), [Now playing](https://design-system.blocks-ui.com/recipes/now-playing.md)

## For agents

- [MCP server](https://design-system.blocks-ui.com/mcp): The docs as an MCP server over Streamable HTTP, public and without auth: `search_docs` and `get_doc` tools, and every page as a `blocks://docs/…` resource.
- [llms.txt](https://design-system.blocks-ui.com/llms.txt): The index of the design system's docs for agents: every page's Markdown URL with what it's for.
- [Markdown pages](https://design-system.blocks-ui.com/index.md): Every docs page as Markdown: add `.md` to its path, or request it with `Accept: text/markdown`.
- [Docs sitemap](https://design-system.blocks-ui.com/sitemap.md): The docs' sections and pages as a nested Markdown list, linking each page's Markdown.
- [llms-full.txt](https://design-system.blocks-ui.com/llms-full.txt): Every docs page in one file, in reading order. Large: prefer llms.txt and the pages you need.
