React design system · v0.1.9

The design system that ships as one dependency.

AstralUI is a self-contained React component library and theme engine. Light and dark out of the box, per-brand theming from a single hex, and no CSS-in-JS runtime - just design tokens, light-dark(), and focused components.

Brand
Try it
Account live
DRAFT PREMIUM Verified
Why AstralUI

A theme engine, not just components.

Every color resolves through --astral-* CSS variables and light-dark(). Switch schemes by flipping one attribute; rebrand the whole app by passing a single color.

Light & dark, free
Both schemes are built into the tokens. No duplicate stylesheets, no theme objects to thread through - set data-astral-scheme and the entire surface responds.
import { ColorSchemeProvider } from '@astralui/core'; <ColorSchemeProvider defaultScheme="dark"> <App /> </ColorSchemeProvider>
One hex, full palette
generateColors() builds a 10-shade palette from a single brand color - try the swatches above.
Zero runtime
No CSS-in-JS, no styled-components. Plain CSS variables that the browser resolves natively.
Ships with the essentials
Modal, Drawer, Select, Menu, PinInput, a toast system, a freeze-proof DateInput, and a Spinner - each portalled, accessible, and theme-aware. Bring react and @tabler/icons-react; that's it.
Components

Everything below is the real shipped CSS.

This page loads @astralui/core straight from the npm CDN. What you see renders from the exact classes the package exports.

Tokens

A palette generated from your brand.

Pick a swatch in the playground and this scale regenerates live - the same generateColors() that drives the whole theme.