facebook/astryx
Summary
Meta open-sources Astryx, a customizable design system built on React and StyleX, featuring 150+ accessible components, CLI tooling, and AI-friendly APIs.
View Cached Full Text
Cached at: 06/30/26, 11:26 AM
facebook/astryx
Source: https://github.com/facebook/astryx
Astryx
An open source design system that’s fully customizable and built for how we build now — by people and the agents working alongside them.
Overview
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:
- Open internals. Components are built to be composed at any level, not locked behind a closed top-level API. The building blocks you’d reach for are exported directly, and when you need to go deeper, swizzle ejects a component’s full source into your project to own.
- No styling lock-in. Astryx authors its styles with StyleX, but that’s invisible to consumers. Override with
classNameusing Tailwind, CSS modules, or plain CSS — whatever your project already uses. - Customize without wrapping. A theme is a set of CSS custom property overrides, so a designer can make Astryx unmistakably theirs without forking or wrapping component source.
- Built for people and agents. The API, docs, and CLI are designed together so a person and an AI assistant build the same way, from the same reference.
Getting Started
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/cli
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/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.
Packages
| 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.
Principles
These are the promises Astryx makes to the people building on it.
- Guidance over enforcement. Components give you capability rather than guardrails that fight you. Design opinions live in docs and examples — if you pass a value, the component renders it.
- Strong, documented conventions. Every component follows the same naming, prop, and composition rules, and every one is thoroughly documented — so once you’ve learned a few, the rest feel familiar, and both people and AI can predict how an unfamiliar component behaves.
- One system for humans and AI. The API, conventions, docs, and CLI are designed together so people and AI assistants build the same way. Every change that made Astryx easier for AI made it easier for people too.
- Earned by measurement. We test conventions rather than assert them, hold the results loosely, and revisit them when a new situation proves them wrong.
Architecture
Foundations
The building blocks for visually cohesive and accessible interfaces: typography, color, layout, and accessibility.
Components
A library of 150+ reusable UI building blocks with full TypeScript support.
Patterns
Battle-tested design solutions for common interactions and workflows: table pages, detail page layouts, form wizards, navigation patterns, data entry flows.
Project Structure
| 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 |
Contributing
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 install
License
MIT
Similar Articles
@nolansym: Free & Open Source Shadcn Components
cult-ui releases 92+ open-source AI agent UI patterns and full-stack Next.js templates for building copy-paste component libraries with shadcn.
@TheTechDiggest: [OpenSource - Web UI Elements & Design] Designing custom buttons, loaders, and cards from scratch eats up valuable deve…
UIverse is an open-source collection of community-made web UI elements, helping developers speed up frontend workflows with thousands of custom components.
Skybridge
Skybridge is an open-source React framework for building full-stack MCP apps.
VoltAgent/awesome-design-md
A curated collection of DESIGN.md files from real websites, enabling AI agents to generate consistent UI by reading plain-text design system documents.
@LinxFocus: Front-end jobs are truly at risk — this project has reached 96,000 stars on GitHub. It compiles design systems from globally renowned companies like Apple, Figma, Linear, and Stripe into DESIGH.md files, enabling AI to learn the UI styles of top brands without any parsing or configuration.
An open-source project that collects design systems from well-known companies such as Apple, Figma, Linear, and Stripe, and organizes them into DESIGH.md files. It has gained 96,000 stars and allows AI to learn the UI styles of top brands, directly generating interfaces that follow the given rules.