facebook / astryx
- среда, 1 июля 2026 г. в 00:00:08
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.
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.Install Astryx and a theme:
# npm
npm install @astryxdesign/core @astryxdesign/theme-neutral
npm install -D @astryxdesign/cli
# pnpm
pnpm add @astryxdesign/core @astryxdesign/theme-neutral
pnpm add -D @astryxdesign/cli
# yarn
yarn add @astryxdesign/core @astryxdesign/theme-neutral
yarn add -D @astryxdesign/cliThe 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/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) and@astryxdesign/vega(Vega/Vega-Lite chart wrapper) are used internally for Storybook and the sandbox; they are not yet published to npm.
These are the promises Astryx makes to the people building on it.
The building blocks for visually cohesive and accessible interfaces: typography, color, layout, and accessibility.
A library of 150+ reusable UI building blocks with full TypeScript support.
Battle-tested design solutions for common interactions and workflows: table pages, detail page layouts, form wizards, navigation patterns, data entry flows.
| Directory | Purpose |
|---|---|
apps/ |
Example apps, the docsite, and Storybook |
packages/ |
Published packages: core, cli, build, themes |
internal/ |
Internal tooling: test utilities, eslint plugin, vibe tests |
We welcome contributions! See CONTRIBUTING.md for the full guide.
Quick start for contributors: this repo uses pnpm 10 via Corepack. Enable it once and the right pnpm version installs automatically:
corepack enable
pnpm installMIT