Meta 开源了内部运行八年、覆盖 13,000+ 应用的 React 与 StyleX 设计系统 Astryx。
它提供 150+ 无障碍组件、七种主题、暗色模式、模板及一个 Agent 就绪的 CLI,采用 MIT 许可,要求 React 19+。
中文正文 · AI 翻译
Meta 发布了 Astryx:https://github.com/facebook/astryx,这是一个完全可定制的开源设计系统,旨在由人类和与其协作的 AI 代理共同操作。它现在已提供测试版。Astryx 并不是一个新的实验。它在 Meta 内部发展的八年中成长,公司表示它已成为最常用和规模最大的设计系统,由每天依赖它的工程师、设计师和产品团队塑造。
Meta 将 Astryx 定位为对当前软件编写方式的回应。随着越来越多的代码由智能代理生成,观点认为,设计系统必须重新构思,而不是修补。API、规范、文档和 CLI 是一起设计的,因此人类和 AI 助手会从相同参考中以相同方式构建。团队注意到,每一次让 Astryx 对 AI 更容易的改动,也让它对人类更容易。
Michal Sutter 是一位数据科学专业人士,拥有帕多瓦大学(University of Padova)数据科学硕士学位。凭借扎实的统计分析、机器学习和数据工程基础,Michal 擅长将复杂的数据集转化为可操作的洞见。
构建一个能动事件场地运营商 [完整代码]:https://pxllnk.co/twdn5
谢谢!我们的团队会尽快联系您 🙌
Meta has released Astryx:https://github.com/facebook/astryx, an open source design system that is fully customizable and built to be operated by both people and the AI agents working alongside them. It is available now in Beta. Astryx is not a new experiment. It grew inside Meta over the last eight years, where the company says it became its most-used and largest design system, shaped by the engineers, designers, and product teams who depend on it daily.
The system ships 150+ accessible components (the docs site now lists 160+), brand-level theming, dark mode, ready-to-ship templates, and a CLI as one cohesive package. It is built on React:https://react.dev/ and StyleX:https://stylexjs.com/. You import pre-built CSS and use typed React components. There is no build plugin to wire up and no styling library to adopt.
Most design systems force a choice. Adopt a large company’s system and your app tends to look like someone else’s product. Reach for copy-paste components instead and every project forks its own snippets, with no shared coherence, no upstream fixes, and accessibility quietly becoming your problem.
Astryx separates the two concerns. The system controls behavior, accessibility, and quality. Themes control how it looks. You customize at the token level (color, type, radius, motion) so the app becomes unmistakably yours without rewrites. A theme is simply a set of CSS custom property overrides, so a designer can retheme Astryx without forking or wrapping component source.
Its stated design principles are guidance over enforcement , strong documented conventions , one system for humans and AI , and earned by measurement — conventions are tested, not asserted.
Astryx is organized in three layers. Foundations are the primitives for cohesive, accessible interfaces: typography, color, layout, and accessibility. Components are the 150+ reusable building blocks, all with full TypeScript support. Patterns are battle-tested solutions for common workflows: table pages, detail layouts, form wizards, navigation, and data-entry flows.
Two design decisions make it unusually open. Components are composed at any level rather than locked behind a closed top-level API, and swizzle can eject a component’s full source into your project when you need to own it. Styling is created with StyleX but stays invisible to consumers, so you can override with className using Tailwind, CSS modules, or plain CSS:https://astryx.atmeta.com/docs/getting-started — whatever the project already uses. The explainer below shows how one set of components restyles across Astryx’s seven shipped themes when only the tokens change.
The components below never change. Only the tokens do. Pick a theme, drag the sliders, and watch the same accessible React UI restyle with no rewrites.
Meta frames Astryx as a response to how software is now written. As more code is produced by agents, the argument goes, design systems have to be rethought rather than patched. The API, conventions, docs, and CLI were designed together, so a person and an AI assistant build the same way from the same reference. Every change that made Astryx easier for AI, the team notes, made it easier for people too.
That shows up in the tooling. The CLI:https://astryx.atmeta.com/docs/cli ( @astryxdesign/cli ) can list and scaffold templates:https://astryx.atmeta.com/templates, print full component docs, generate and build themes, run codemods to migrate versions, and surface machine-readable docs from the command line or over MCP . Components ship with consistent naming, prop, and composition rules, so once you learn a few, both people and models can predict how an unfamiliar one behaves.
Because Astryx is a front-end library, ‘deploying’ it means adding it to a React app. The package ( @astryxdesign/core :https://www.npmjs.com/package/@astryxdesign/core, referred to internally as XDS) lists React and react-dom ≥ 19.0.0 as peer dependencies, alongside StyleX. It ships pre-built CSS, so there is no PostCSS or Babel configuration to add. Supported setups include Next.js with Tailwind, Next.js with StyleX, Vite, and a no-build CDN path via the UMD bundle on unpkg or jsDelivr. The interactive checker below generates the exact install and setup steps for your stack and flags anything that needs to change first.
Astryx is a front-end design system, so “deploy” means dropping it into a React app. Answer three questions and get the exact install path, a requirements check, and whether you are clear to ship.
Sources: astryx.atmeta.com:https://astryx.atmeta.com/ and github.com/facebook/astryx:https://github.com/facebook/astryx
Michal Sutter is a data science professional with a Master of Science in Data Science from the University of Padova. With a solid foundation in statistical analysis, machine learning, and data engineering, Michal excels at transforming complex datasets into actionable insights.
Build an Agentic Event Venue Operator [Full Codes]:https://pxllnk.co/twdn5