最近推送 2026-11-07 22:37(23 天前),属于活跃维护
meta/astryx
GITHUB中文整理主语言 TypeScript · 34,057 星 · MIT · 创建于 2026-01-10
Astryx 是一个开源设计系统,提供预构建 CSS 与类型化 React 组件、品牌主题定制、深色模式和 CLI,供人和 AI 助手用同一套工具构建界面。
仓库健康度
5 个维度开放 Issue 714 个 · Fork 1,171 个
24 小时 +68 · 7 日 +1,275 · 30 日 积累中
许可证 MIT · 开了 Wiki
这一项暂无数据,不代表项目没有发布
「证据不足」表示这项数据暂时没有取到,不能读成「项目有问题」;「部分数据」表示只拿到一部分信号。版本发布要额外调 Releases 接口,下一版补。
Star 趋势
25 天记录横轴 2026-11-07 → 2026-12-01,纵轴按这段时间的最小/最大值拉伸。趋势来自站内每天记录一次的星数,页面打开时不会实时请求 GitHub。
它解决什么问题
据 README 归纳团队自建组件库往往要处理样式引入、主题定制和文档同步,缺少统一规范时,人和 AI 助手各写各的,界面难以一致。Astryx 把组件、主题和文档工具整合成一套系统,让项目无需额外样式库或构建插件就能获得一致的界面基础。
核心能力
7 条- 1提供预构建 CSS 与类型化 React 组件,导入即可使用
- 2内置品牌级主题定制,通过 CSS 自定义属性覆盖实现换肤
- 3支持深色模式,并附带可直接使用的模板
- 4提供 CLI,用于查看组件文档、脚手架、主题和代码迁移
- 5组件可组合,内部构建块直接导出,不锁死在顶层 API
- 6不锁定样式方案,可用 className 覆盖为 Tailwind、CSS 模块或普通 CSS
- 7API、文档和 CLI 统一设计,方便人和 AI 助手按同一参考构建
项目画像
6 个角度项目定位
Astryx 是一个开源设计系统,提供预构建 CSS 与类型化 React 组件、品牌主题定制、深色模式和 CLI,供人和 AI 助手用同一套工具构建界面。
适合谁
适合使用 React 19 的前端团队、设计系统维护者,以及需要在项目里让开发者与 AI 编程助手共用一套组件规范的产品团队。
典型场景
在新 React 项目中引入统一组件和主题,快速搭建界面,无需配置 PostCSS 或 Babel。;设计师通过覆盖 CSS 自定义属性定制品牌主题,无需复制或包裹组件源码。;开发者用 CLI 查询组件文档、生成脚手架和主题,并让 AI 助手按相同参考编写代码。;在已有项目里用 Tailwind、CSS 模块或普通 CSS 覆盖组件样式,同时保持组件行为一致。
部署难度
需要 Node 包管理器和 React 19 环境;按包管理器安装核心包、主题包、StyleX 及 CLI,再引入 CSS 并配置主题提供器,无需构建插件或额外样式配置,步骤较少。
风险限制
要求 React 19 或更高版本,react 和 react-dom 为对等依赖;样式底层依赖 StyleX,但使用方无需接管其配置。
最近维护
最近一次推送是 2026-11-07 22:37。 实现方式:安装核心包和主题包后,引入预构建 CSS 并包一层主题提供器即可使用;样式用 StyleX 编写但对使用方透明,主题本质是一组 CSS 自定义属性覆盖,CLI 可全局或按项目安装,用于查询文档和生成代码。
README 原文细节
3 个板块怎么安装从零跑起来的步骤
Getting Started
Astryx requires React 19 or later (react and react-dom are peer dependencies of @astryxdesign/core).
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:
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:
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.
# 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
实现原理它内部是怎么做的
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
- 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 p
- Earned by measurement. We test conventions rather than assert them, hold the results loosely, and revisit them when a new situation proves them wrong.
其它说明README 里剩下的内容
Packages
- @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
Project Structure
- apps/ — Example apps, the docsite, and Storybook
- packages/ — Published packages: core, cli, build, themes
- internal/ — Internal tooling: test utilities, eslint plugin, vibe tests
Foundations
The building blocks for visually cohesive and accessible interfaces: typography, color, layout, and accessibility.
关于 astryx 的常见问题
7 个问题astryx 是做什么的?
Astryx 是一个开源设计系统,提供预构建 CSS 与类型化 React 组件、品牌主题定制、深色模式和 CLI,供人和 AI 助手用同一套工具构建界面。 团队自建组件库往往要处理样式引入、主题定制和文档同步,缺少统一规范时,人和 AI 助手各写各的,界面难以一致。Astryx 把组件、主题和文档工具整合成一套系统,让项目无需额外样式库或构建插件就能获得一致的界面基础。
astryx 有哪些功能?
核心能力:提供预构建 CSS 与类型化 React 组件,导入即可使用;内置品牌级主题定制,通过 CSS 自定义属性覆盖实现换肤;支持深色模式,并附带可直接使用的模板;提供 CLI,用于查看组件文档、脚手架、主题和代码迁移;组件可组合,内部构建块直接导出,不锁死在顶层 API;不锁定样式方案,可用 className 覆盖为 Tailwind、CSS 模块或普通 CSS;API、文档和 CLI 统一设计,方便人和 AI 助手按同一参考构建。
astryx 适合谁用?
适合使用 React 19 的前端团队、设计系统维护者,以及需要在项目里让开发者与 AI 编程助手共用一套组件规范的产品团队。
astryx 是怎么工作的?
安装核心包和主题包后,引入预构建 CSS 并包一层主题提供器即可使用;样式用 StyleX 编写但对使用方透明,主题本质是一组 CSS 自定义属性覆盖,CLI 可全局或按项目安装,用于查询文档和生成代码。
怎么安装 astryx?
按项目 README 的说明:Astryx requires React 19 or later (react and react-dom are peer dependencies of @astryxdesign/core).;Then finish setup with init, once, before you write UI. It asks no questions, prints the getting-started steps (styles, theme), and saves th。完整命令见下方「怎么安装」一节或 GitHub 仓库的 README。
用 astryx 有什么门槛或限制?
要求 React 19 或更高版本,react 和 react-dom 为对等依赖;样式底层依赖 StyleX,但使用方无需接管其配置。
astryx 现在还在维护吗?数据怎么样?
目前 34,057 星,1,171 个 Fork,主语言 TypeScript,创建于 2026-01-10,最近一次推送 2026-11-07 22:37,许可证 MIT。星数、Fork、推送时间都是 GitHub 返回的实时数据,「最近推送」离现在越近说明越活跃;长期不动要留意是否已停止维护。
这些内容来自哪
读法说明项目数据取自 GitHub 官方接口与项目 README;星数、Fork、语言与时间以 GitHub 页面为准,档案更新于 2026-11-29 11:42。
