Requirements
- Astro 4.0 or later
- Tailwind CSS v4
Automatic setup
Run the init command to configure your project:
Add the theme styles:
Import the styles in your main CSS file:
Then add any component:
Manual setup
1. Add the cn utility
Create src/utils/cn.ts:
2. Configure path aliases
Add to your tsconfig.json:
3. Add theme styles
Add the styles via CLI:
Then import in your main CSS file:
4. Add components
Use the CLI or copy components from src/components/bearnie/ to your project.
Updating components
Components and styles are copied to your project — you own them. They don’t auto-update when Bearnie releases changes.
To update a component or styles:
If you’ve customized a component, running this will overwrite your changes. Back up your modifications first, then merge manually after updating.
This is intentional. You control when updates happen and what gets changed.
Next steps
Browse components or learn about the CLI.