About
All four button variants side by side: primary, secondary, ghost, and destructive. A quick visual reference for choosing the right variant. Button example from Meta's Astryx design system (@astryxdesign/core Button), shown with the neutral theme. Astryx ships pre-built StyleX CSS, so no build plugin is needed. MIT.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Astryx Button Variants to your project and fits it to your theme.
Code
How Astryx Button Variants is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import "@astryxdesign/theme-neutral/fonts.css"
import "@astryxdesign/core/reset.css"
import "@astryxdesign/core/astryx.css"
import "@astryxdesign/theme-neutral/theme.css"
import { Theme } from "@astryxdesign/core/theme"
import { neutralTheme } from "@astryxdesign/theme-neutral/built"
import ButtonShowcase from "@/components/ui/astryx-button-variants"
export default function Default() {
return (
<Theme theme={neutralTheme}>
<div className="flex min-h-[420px] w-full items-center justify-center p-10">
<ButtonShowcase />
</div>
</Theme>
)
}















