Skip to content

Commit 9c325a0

Browse files
committed
Auto-push: 2025-11-20 15:13:09 - Changes: ~ .cursor/rules/heroui.mdc
1 parent 55e0ed0 commit 9c325a0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.cursor/rules/heroui.mdc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
---
2-
description: Enforce HeroUI usage for all UI components, styling, and theming.
2+
description: Enforce HeroUI usage for all UI components, styling, and theming using Bun.
33
globs: **/*.{ts,tsx,js,jsx}
44
---
55

66
# HeroUI Usage Rules
77

88
## Core Principle
99
- Use **HeroUI** (formerly NextUI) for ALL UI components, layout, and styling where possible.
10-
- Avoid using raw Radix UI primitives unless HeroUI does not provide a suitable component. HeroUI is already built on top of `react-aria` and `framer-motion`, so additional headless libraries are rarely needed.
10+
- Avoid using raw Radix UI primitives unless HeroUI does not provide a suitable component. HeroUI is already built on top of `react-aria` and `framer-motion`.
1111

1212
## Installation & Management
13-
- **CLI**: Use the HeroUI CLI to add new components.
13+
- **Package Manager**: Always use **Bun** for installation and script execution.
14+
- **CLI**: Use `bun` to interact with the HeroUI CLI.
1415
```bash
15-
npx heroui-cli@latest add <component-name>
16+
bunx heroui-cli@latest add <component-name>
1617
```
18+
- **Tip**: Ensure a `bun.lock` file exists in your project root (run `bun install` once). The CLI relies on this file to auto-detect Bun and skip the "Which package manager?" prompt.
1719
- Do not manually install component packages unless necessary.
1820

1921
## Setup & Providers
@@ -40,7 +42,7 @@ export function Providers({ children }: { children: React.ReactNode }) {
4042
```
4143

4244
## Styling & Theming
43-
- **Tailwind CSS**: HeroUI relies on Tailwind CSS. Ensure `tailwind.config.ts` (or `.js`) is configured with the `heroui()` plugin.
45+
- **Tailwind CSS**: HeroUI relies on Tailwind CSS. Ensure `tailwind.config.ts` is configured with the `heroui()` plugin.
4446
- **Customization**: Customize themes (colors, layout, radii) inside the `heroui()` plugin configuration in `tailwind.config.ts`.
4547
- Define custom color palettes (semantic colors like `primary`, `secondary`, `success`, etc.).
4648
- Create custom variants using `tv` (Tailwind Variants) if needed for specific component overrides.

0 commit comments

Comments
 (0)