@astryxdesign/core
The component library. Accessible, themeable React components with built-in spacing, dark mode, and StyleX styling.1. Install the package
bashnpm install @astryxdesign/core
2. Import a component
typescriptimport {...} from '@astryxdesign/core/ComponentName';
Component Docs
Look up any component's full API (props, variants, examples, best practices, and theming) via the Astryx CLI:
bashnpx @astryxdesign/cli init # one-time: writes the component guide into AGENTS.md / CLAUDE.mdnpx @astryxdesign/cli component Button # full docs for a componentnpx @astryxdesign/cli component --list # list all components
Use the scoped@astryxdesign/clito run without installing; barenpx astryxonly resolves once the CLI is a dependency.
Page Layouts
Building a full page? Start with a template rather than composing from scratch.
Templates are content-only; they compose
Layout with header, content, and
panel slots into common page patterns (dashboards, settings, forms, detail pages).
Wrap them in your own app chrome (AppShell, TopNav, SideNav) to add
global navigation.Requires
@astryxdesign/cli (npm install -D @astryxdesign/cli):bashastryx template --list # browse all page and block templatesastryx template dashboard # emit full page sourceastryx template settings --skeleton # layout skeleton with spatial annotations
Related Packages
| Package | Description |
|---|---|
@astryxdesign/cli | CLI tooling: component docs, templates, scaffolding, codemods |
@astryxdesign/theme-neutral | Muted, minimal theme (Lucide icons) |