Getting started

Plain CSS plus components you own. No runtime dependency.

npx raster init

Writes styles/raster.css (tokens, base styles, component classes) and raster.json. Link the stylesheet or import it in your root layout. Set data-theme="dark" on the root element for the dark scheme.

npx raster add button dialog switch

Copies React source into components/raster/. Registry dependencies install with it; dialog pulls button. CSS-only components need no code, the classes are already in raster.css; add prints the snippet.

npx shadcn add https://raster.noord.dev/r/button.json

Each component is also published as a shadcn registry item at /r/<name>.json.

Raster is set in Messina Sans (Luzi Type, Zürich). The font is licensed and not bundled. Provide your own @font-face; the stack falls back to system sans. Weights: 500 body, 600 headings and labels.

npx raster init --compat

0.2 renamed every class to the rs- prefix. The compat flag also writes raster-compat.css, which keeps the 0.1 names (bb-*, lib-*, bare table) working.