colorsnap-ui init
Start here
Set up ColorSnap UI in your project. Creates the components directory, ThemeProvider, and cn() utility.
npx colorsnap-ui init
The colorsnap-ui CLI copies components directly into your project. You own the code.
Set up ColorSnap UI in your project. Creates the components directory, ThemeProvider, and cn() utility.
Copy any component into your project. You own the code.
| Flag | Description | Default |
|---|---|---|
| --dir, -d | Target directory for copied files | ./components/ui |
Available components:
Apply a theme to your project configuration.
Print the CDN embed snippet for a chosen theme.
| Flag | Description | Default |
|---|---|---|
| --theme, -t | Theme name for the embed | midnight |
Copy a pre-built form into your project.
Available: contact, login, register, checkout, survey, feedback, search, newsletter, profile, password-reset, booking
List all components and forms available to add.
Browse all 52 themes with mood tags.