Installation

Install BetterOne components and tokens into your project with the betterone-ds CLI. The source is copied into your repo, so you can change it.

Connect the registry

Run this once in your project. It needs a components.json, so run npx shadcn@latest init first if you do not have one.

npx betterone-ds init

Add the tokens

Colors and radius come from the Figma variables. Install them first, so every component picks up the right values in Light and Dark. Do not copy values into components. Use token classes such as bg-primary.

npx betterone-ds add tokens

Add a component

npx betterone-ds add button

Replace button with any component name from the sidebar. Its dependencies are added with it.

Next steps

  • Read the Color and Spacing pages to learn the tokens.
  • Open a component page to see its preview, code, and props.