Skip to content
loseta

Getting started

Styles

A style is the visual half of every stable component: geometry, spacing, control sizes, radii and type scale. Structure stays in components/; the active style lives in styles/<name>/. Experimental items, when present, ship Nova only until they are promoted.

Choose a style

Pick one style per project. Use the Style control in the header to preview each style across this site; pass the name to the CLI to install it.

Install a style

Choose the style when you initialize the project, or switch an existing project at any time.

bash
npx loseta init --style vega
npx loseta style vega

loseta style rewrites the style file for every installed component and primitive, updates loseta.json and regenerates index.css. The previous style folder stays on disk but is no longer imported.

Preview

The controls below use the selected style.

Badge
Card title

Style geometry applies to every installed component.

Swap the style without touching your markup.

Docs-only preview. The header switcher loads a different stylesheet for this site. Your project installs exactly one style.

loseta is MIT licensed. Built with native CSS, no runtime. Inspired byshadcn/ui.