An open source design system that's fully customizable and agent ready
An open source design system that's fully customizable and built for how we build now:
by people and the agents working alongside them.
Currently in Beta · Built on React 19+ and StyleX
Docs · Storybook · Sandbox · Contributing · Discord
Astryx is an open source design system that grew inside Meta over the last eight years, where it became the most-used and largest design system in the company — powering 13,000+ apps and shaped by the engineers, designers, and product teams who depend on it every day.
It ships 150+ accessible components, brand-level theming, dark mode, ready-to-ship templates, and a CLI as one cohesive system. You import pre-built CSS and use typed React components — no build plugin, no styling library to adopt — and both people and AI assistants build with the same tooling.
What makes Astryx different:
className using Tailwind, CSS modules, or plain CSS — whatever your project already uses.Astryx requires React 19 or later (react and react-dom are peer dependencies of @astryxdesign/core).
Install Astryx, a theme, and its peer dependencies:
# npm
npm install @astryxdesign/core @astryxdesign/theme-neutral @stylexjs/stylex
npm install -D @astryxdesign/cli
# pnpm
pnpm add @astryxdesign/core @astryxdesign/theme-neutral @stylexjs/stylex
pnpm add -D @astryxdesign/cli
# yarn
yarn add @astryxdesign/core @astryxdesign/theme-neutral @stylexjs/stylex
yarn add -D @astryxdesign/cli
Then finish setup with init, once, before you write UI. It asks no questions, prints the getting-started steps (styles, theme), and saves the Astryx guide to AGENTS.md/CLAUDE.md so you and your agents build with Astryx instead of guessing:
npx @astryxdesign/cli init # or: pnpm exec astryx init / yarn astryx init
You can also install the CLI once for your computer, so astryx works in any folder and every coding agent knows Astryx; in a project, it still runs that project's own version:
npm i -g @astryxdesign/cli
Project install, global install, or both? astryx docs global/project-global-or-both compares them (both is recommended), and astryx docs global explains how global mode works.
The simplest setup is a few CSS imports plus a theme provider — no build plugin, no PostCSS or Babel config. See the @astryxdesign/core README for the full guide (Next.js, Tailwind, Vite, and CDN).
For reliable CLI access, add a script to your package.json:
"scripts": {
"astryx": "node node_modules/@astryxdesign/cli/clients/cli/bin/astryx.mjs"
}
Then use it as npm run astryx -- component --list. This avoids path errors when AI assistants or new developers invoke the CLI directly.
| Package | Description | README |
|---|---|---|
@astryxdesign/core | Components, theme system, and utilities | README |
@astryxdesign/cli | CLI tooling: component docs, templates, scaffolding, themes, and codemods | README |
@astryxdesign/build | Build plugins for StyleX source builds | README |
@astryxdesign/theme-* | Seven ready-made, fully customizable themes (neutral, butter, chocolate, matcha, stone, gothic, y2k) | README |
@astryxdesign/lab(experimental components) is used internally for Storybook and the sandbox and is not published to npm. `@astryxdesign/
good first issue 또는 help wanted 이슈가 없습니다.
For the full contribution process — what we accept, how to propose new components, and how API decisions are made — read the Contributing wiki.
Key pages:
This file covers local development setup.
The Node version lives in .nvmrc (currently the 24.x line). CI reads the same
file via node-version-file, so local and CI never drift apart. Don't declare
the version anywhere else.
Via nvm (recommended):
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
source ~/.zshrc
nvm install # no argument — reads .nvmrc
fnm and mise read .nvmrc too. asdf does not; its .tool-versions is
git-ignored precisely so it cannot become a competing source of truth.
Via nodejs.org: Download and install from https://nodejs.org
Astryx uses pnpm as its package manager (declared in
the packageManager field of
package.json). You can install pnpm directly:
# Via npm
npm install -g pnpm@11
# Via Homebrew (macOS)
brew install pnpm
# Via standalone installer (no npm or Node.js required)
curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=11.10.0 sh -
# Via GitHub releases (single binary, no dependencies)
# https://github.com/pnpm/pnpm/releases/latest
Or use Corepack to install the exact pnpm version Astryx pins:
corepack enable
Corepack ships with Node.js 22 and 24, but current Node.js 25+ releases no
longer bundle it. If corepack is missing and you want the auto-pinning path,
install Corepack manually first:
npm install -g corepack
corepack enable
Verify installation:
node --version # v24.x.x
pnpm --version # 11.x.x
# Clone without downloading historical file contents up front
git clone --filter=blob:none https://github.com/meta/astryx.git
cd astryx
# Install dependencies
pnpm install
# Start Storybook for component development
cd apps/storybook
pnpm dev
Storybook resolves every workspace package to its src/ directory and compiles
it itself, so a fresh clone needs no build step first — pnpm install then
pnpm dev is enough.
cd apps/storybook
pnpm dev
Storybook will open at http://localhost:6006 with:
If you make changes to @astryxdesign/core: source changes update without a
rebuild or restart. Storybook and the docsite also watch
packages/core/locales/*.json, regenerate the compact runtime catalogs, and
reload imported messages after a locale edit.
The doc site (apps/docsite/) is a Next.js app that renders the component
documentation at https://astryx.atmeta.com. To run it locally:
# First time only — build the workspace packages it depends on
pnpm build
# Start the doc site (Next dev server, defaults to localhost:3000)
pnpm docsite
pnpm docsite is a thin alias for pnpm -F @astryxdesign/docsite dev,
which runs the doc site's generate step (theme CSS, registries,
playground scope) before booting Next.
Note:
pnpm docscollides with thenpm docsbuiltin, which tries to open the package's npm page in a browser. Usepnpm docsiteinstead.
astryx/
├── apps/
│ ├── storybook/ # Component playground (localhost:6006)
│ ├── docsite/ # Doc site (localhost:3000)
│ └── sandbox/ # Development testing
│
├── packages/
│ ├── core/ # Core components (Button, Input, etc.)
│ ├── cli/ # CLI tooling (astryx)
│ ├── lab/ # Experimental components (not yet stable)
│ └── themes/ # Theme presets (neutral, stone, y2k, and more)
│
└── internal/ # Internal tooling (not published)
└── test-utils/ # Shared test helpers
| Command | Description |
|---|---|
pnpm install | Install all dependencies |
pnpm dev | Start Storybook (alias for pnpm storybook) |
pnpm build | Build all packages |
| `pnpm t |