Installation

Add components with the shadcn CLI, then let your framework compile StyleX.

View as Markdown

Constella is in beta. Components may change before 1.0; ones you've added stay as they are until you add them again.

Choose your framework

Fonts

Constella sets the page in --font-sans and code in --font-mono, and components inherit them. The theme names Inter and Geist Mono there but doesn't ship them: load them (for example @fontsource-variable/inter and @fontsource-variable/geist-mono), or put your own first in theme.stylex.ts.

Dark mode

Add a dark class to <html>. next-themes and shadcn's theme setup already do this.

RTL

Set dir="rtl" on <html> and wrap the app in Base UI's DirectionProvider. Add data-rtl-flip to an icon that points along the line, like an arrow or a chevron, so it turns with the text.