Skip to content
SevenOne

Search documentation

Search pages and components

Installation

Add SevenOne to a React project that uses Tailwind CSS. It takes four steps.

1. Set up shadcn/ui

If your project does not use shadcn/ui yet, run its setup first. It creates components.json and the lib/utils file.

npx shadcn@latest init

2. Add the SevenOne registry

Open components.json and add the SevenOne registry. From now on, @sevenone/… points to our components.

components.json
{
  "registries": {
    "@sevenone": "https://docs.sevenone.io/r/{name}.json"
  }
}

3. Install the theme

This adds the SevenOne colors, sizes, font settings and shadows to your CSS. Light and dark are included.

npx shadcn@latest add @sevenone/theme

The theme uses Inter and JetBrains Mono. If your project does not load them yet, install them and import them at the top of your CSS. With Next.js you can use next/font instead.

npm install @fontsource-variable/inter @fontsource/jetbrains-mono
globals.css
@import "@fontsource-variable/inter";
@import "@fontsource/jetbrains-mono/400.css";

4. Add components

Install only what you need. The code is copied into your project, so you can change anything.

npx shadcn@latest add @sevenone/button @sevenone/input @sevenone/select

Not using React?

The theme is plain CSS, so it works with any framework. Download sevenone.css, add it to your project and use the CSS variables. For Angular, SevenOne Pro includes all the components built on spartan/ui: open the Angular tab on any component page.

curl -O https://docs.sevenone.io/sevenone.css