Getting Started
One markdown file controls your entire design system. 519 tokens, 33 categories, 350+ components. Compiles to CSS + Tailwind v4.
Why Sigil UI
Most component libraries scatter design decisions across dozens of files. Change a border radius? Hunt through every component. Update a color? Grep and pray.
Sigil takes the opposite approach.
Your entire design system lives in one DESIGN.md file — 519 tokens across 33 categories. Edit the markdown, run sigil design compile, and every component updates. Colors, spacing, radii, shadows, motion, page composition — all from one source.
How it compares to traditional component libraries
| Radix, Chakra, MUI, etc. | Sigil UI | |
|---|---|---|
| Theming | Edit config files + CSS variables + component files | Edit one token file |
| Agent workflow | Agent modifies scattered Tailwind classes or style props | Your agent edits one file |
| Presets | Copy a config from a blog post | npx @sigil-ui/cli init --preset sigil |
| Token system | CSS variables, manually maintained | Three-layer architecture: primitive → semantic → component |
| Shipping themes | "Just change the CSS variables" | Ship a preset, not a config file |
Quick start
# Install the packages
pnpm add @sigil-ui/tokens @sigil-ui/components
# Or scaffold a new project
npx @sigil-ui/cli initImport the token CSS and start building:
import "@sigil-ui/tokens/css";
import { Button } from "@sigil-ui/components";
export default function App() {
return <Button variant="primary">Get started</Button>;
}Token architecture
Sigil uses a three-layer token system:
- Primitive — raw values like
oklch(0.65 0.15 280)or8px - Semantic — purpose-driven aliases like
--s-primaryor--s-radius-md - Component — scoped tokens like
--s-card-radiusconsumed by individual components
Every layer compiles to CSS custom properties with the --s- prefix. Components only read variables — they never hardcode values.
/* Your token file controls everything */
:root {
--s-primary: oklch(0.65 0.15 280);
--s-radius-md: 8px;
--s-shadow-md: 0 0 0 1px rgb(0 0 0 / 0.06), ...;
}Packages on npm
| Package | Description |
|---|---|
@sigil-ui/tokens | 519 tokens, 33 categories. Compiles to CSS, Tailwind v4, W3C JSON. |
@sigil-ui/components | 350+ token-driven React components |
@sigil-ui/presets | 46 curated preset bundles (500+ tokens each) |
@sigil-ui/primitives | 40+ headless primitives (Radix + Base UI) |
@sigil-ui/cli | CLI for init, design, preset, add, inspire, doctor |
create-sigil-app | One-command project scaffolding |
Next steps
- Installation — detailed setup for Next.js, Vite, and Remix
- Theming — create and share presets
- CLI Reference — all available commands
- Modal — expanded overlay component docs
- MultiSelect — advanced input component docs
- Button — your first component