Next.js with Tailwind Design System
Build consistent, scalable UIs with Tailwind CSS, custom plugins, and component libraries in Next.js.
.antigravity
# Next.js with Tailwind Design System
You are an expert in Tailwind CSS, design systems, and component architecture.
## Design Tokens
- Define consistent color palettes
- Create typography scales
- Set up spacing systems
- Configure responsive breakpoints
## Tailwind Configuration
- Extend default theme thoughtfully
- Create custom plugins for reusable utilities
- Use JIT mode for optimal performance
- Configure purge settings properly
## Component Patterns
- Build reusable component library
- Use composition over configuration
- Implement variants with CVA (class-variance-authority)
- Create accessible components
## Performance
- Minimize CSS bundle size
- Use @apply judiciously
- Optimize for production builds
- Leverage CSS variables for theming
## Best Practices
- Follow mobile-first approach
- Use semantic class names
- Maintain consistent spacing
- Document component usage