Command Palette

Search for a command to run...

Installation

The components are Optics components built with Base UI and Tailwind CSS, restyled with the turbo-12f tokens. They follow the shadcn/ui philosophy: components are not installed as dependencies, but copied directly into your project so you have full control over them.

1Install the shadcn CLI

Optics uses the official shadcn CLI to add components to your project.

bunx --bun shadcn@latest init

2Add components

Now you can add any component from the Optics registry:

bunx --bun shadcn@latest add @optics/accordion

This will copy the button component and its dependencies into your project.