Prompt & Done · ASTRYX
Astryx: Meta's design system, set up so Claude Code builds with real components
Astryx (pronounced "asterisks") is Meta's open-source design system: typed React components, seven ready-made themes and a CLI. Its init writes a guide into your CLAUDE.md / AGENTS.md, so your coding agent looks components up instead of inventing its own CSS. MIT license, currently in Beta, React 19 or later.
Tested 12 Nov 2026 on macOS: Claude Code 2.1.322, Opus 5.5, @astryxdesign 0.7.15, a fresh Vite + React 19 project.
1 Set up (in your project folder)
npm install @astryxdesign/core @astryxdesign/theme-neutral @stylexjs/stylex
npm install -D @astryxdesign/cli
npx @astryxdesign/cli init
npx astryx init --agent claudeThe last line puts the same guide in .claude/CLAUDE.md for Claude Code (the plain init writes AGENTS.md). Use the scoped name @astryxdesign/cli: the unscoped astryx package on npm is unrelated until the CLI is installed in your project.
2 The one prompt we gave Claude Code
Using the Astryx design system (already installed here; follow the Astryx guide in .claude/CLAUDE.md), build a usage dashboard for my AI coding agents as the app's only screen: today's tokens, cost and runs as stat tiles, a per-agent usage breakdown, a searchable and filterable table of recent agent runs with status, and a settings panel with a model picker, a daily budget field and an auto-pause switch, plus a theme picker in the header that switches the whole UI between all seven Astryx themes. Use realistic sample data, make it polished and accessible, don't start a dev server, and make sure `npm run build` passes.3 What happened (same prompt, with and without Astryx)
With Astryx: 6 min 12 s, built first try, 67 look-ups in the Astryx CLI (templates, component docs, themes, a final astryx doctor), 0 lines of CSS written (one inline colour on a legend swatch), all seven themes (Neutral, Butter, Chocolate, Gothic, Matcha, Stone, Y2K). About $2.66 of API-equivalent usage on a Claude subscription.
Without: 8 min 24 s, also first try and also good-looking, but Claude hand-wrote 1,384 lines of CSS and invented its own seven colour themes. About $2.12 API-equivalent.
Accessibility (axe-core, WCAG A/AA, our check): the Astryx build had 0 issues in 6 of 7 themes (the Chocolate theme had low-contrast text); the plain build had 3-4 small issues in every theme. Charts (@astryxdesign/charts) are only on the @canary tag for now; Claude used Recharts instead.