| description | Tailwind CSS v4 styling patterns and dark theme guidelines |
|---|---|
| applyTo | **/*.css |
This project uses Tailwind CSS v4.1.14 via the @tailwindcss/vite plugin.
- Import Tailwind in
global.css:@import "tailwindcss"; - No separate
tailwind.config.jsfile is used - Configuration is handled through the Vite plugin
ALL UI components MUST use dark theme colors:
- Background colors:
bg-slate-800,bg-slate-900,bg-slate-950 - Text colors:
text-slate-100,text-slate-200,text-slate-300 - Border colors:
border-slate-700,border-slate-600 - Accent colors for hover/focus states
- Cards and containers:
bg-slate-800 rounded-xl p-6 shadow-lg - Hover effects:
hover:bg-slate-700 transition-colors duration-200 - Borders:
border border-slate-700 - Gradients for visual interest:
bg-gradient-to-br from-slate-800 to-slate-900 - Backdrop effects:
backdrop-blur-sm bg-slate-900/50
- Use responsive prefixes:
sm:,md:,lg:,xl: - Mobile-first approach
- Ensure readability on all screen sizes
- Prefer utility classes over custom CSS when possible
- Use semantic grouping: layout, spacing, colors, typography
- Keep utility combinations readable and maintainable
- Rounded corners:
rounded-lg,rounded-xl,rounded-2xl - Smooth transitions:
transition-all duration-200 ease-in-out - Shadows for depth:
shadow-md,shadow-lg,shadow-xl - Focus states for accessibility:
focus:ring-2 focus:ring-blue-500