Configs2026年7月27日·1 分钟阅读

Astryx — Open-Source Agent-Ready Design System by Meta

An open-source design system from Meta that provides fully customizable, accessible UI components built for both human developers and AI coding agents to use seamlessly.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Astryx Guide
直接安装命令
npx -y tokrepo@latest install 9afb2ce9-8999-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Astryx is an open-source design system created by Meta that takes a fresh approach to component libraries. Every component is designed to be fully customizable and equally usable by human developers writing JSX and AI coding agents generating UI code. It ships with a token-based theming system and accessibility built into every component.

What Astryx Does

  • Provides a library of accessible React components with consistent design language
  • Ships with a token-based theming system for deep visual customization
  • Includes structured component descriptions that AI coding agents can interpret
  • Supports responsive layouts with built-in breakpoint utilities
  • Offers dark mode, RTL, and high-contrast variants out of the box

Architecture Overview

Astryx is built as a set of composable React components that consume design tokens for colors, spacing, typography, and motion. Each component exposes a declarative API surface that maps naturally to both human authoring and LLM code generation. The token system cascades through CSS custom properties, making theme switching instant without re-rendering. Accessibility attributes are injected automatically based on component semantics.

Self-Hosting & Configuration

  • Install via npm or yarn into any React project (Next.js, Vite, CRA)
  • Wrap your app with the AstryxProvider and optionally pass a custom theme
  • Override individual design tokens in your theme file for brand alignment
  • Tree-shaking is supported so only imported components land in your bundle
  • Works with server-side rendering frameworks without additional configuration

Key Features

  • Agent-friendly component APIs with structured metadata for AI code generation
  • Token-based theming that separates design decisions from component logic
  • WCAG 2.1 AA compliance built into every component by default
  • Motion primitives for consistent animation behavior across the system
  • Figma design kit included for designer-developer handoff

Comparison with Similar Tools

  • shadcn/ui — Copy-paste components with Tailwind, while Astryx provides a cohesive token-based design system
  • Chakra UI — Similar composable philosophy, but Astryx adds explicit agent-readiness and Meta's design language
  • Ant Design — Enterprise-focused with opinionated defaults, while Astryx is more customizable and lightweight
  • Radix UI — Unstyled primitive components, while Astryx ships with a complete visual design out of the box

FAQ

Q: What does agent-ready mean? A: Each component includes structured metadata describing its purpose, props, and usage patterns, enabling AI coding agents to generate correct component code reliably.

Q: Can I use it outside of React? A: The current release targets React. Web component and Vue ports are on the roadmap.

Q: How does theming work? A: Pass a theme object to AstryxProvider that overrides default design tokens. Changes propagate through CSS custom properties instantly.

Q: Is it production-ready? A: Yes, Astryx is used internally at Meta and follows semantic versioning with stable API guarantees.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产