Skip to content
loseta

Documentation

Native CSS scaffolds, without the runtime.

loseta is a registry of component CSS and markup contracts. The CLI copies the files into your project, so you own the code and can change anything.

How it works

  1. Initialize. The CLI creates the foundation files and a generated entrypoint.
  2. Add components. Each item installs its base CSS, its style file and any primitive dependency.
  3. Use the markup contract. Data attributes, ARIA and native elements carry the state.
pnpm dlx loseta init
npx loseta init
pnpm dlx loseta add button card field
npx loseta add button card field

What gets installed

text
loseta.json
.loseta/manifest.json
src/styles/loseta/
  tokens.css
  reset.css
  base.css
  utilities.css
  index.css
  primitives/
  components/
  styles/nova/               # selected style
CSS only. Components that need interaction, such as dropdown menus and tabs, document the required state contract but do not ship JavaScript. The docs demos use a small demo-only script to keep the examples interactive.

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