Apply a theme profile to a target project
Switch or apply a theme variant to a target project.
theme (required): Theme name (vega | nova | maia | lyra | mira)target (optional): Target project path (default: current directory)/apply-theme vega
/apply-theme nova --target ../my-app
cd {target}
bun add @crazyone/ui-{theme}
Update target's tailwind.config.ts:
export default {
content: [
'./src/**/*.{ts,tsx}',
'./node_modules/@crazyone/ui-{theme}/dist/**/*.js'
],
// Theme extends from CSS variables set in styles
}
Add to main CSS file (e.g., globals.css):
@import '@crazyone/ui-{theme}/styles.css';
Replace existing shadcn imports with themed variants:
// Before
import { Button } from "@/components/ui/button"
// After
import { Button } from "@crazyone/ui-{theme}"
After applying, verify:
--primary in devtools)