Styling
Tune Me In uses Tailwind CSS for styling, providing a utility-first approach to building custom designs quickly and consistently.Tailwind Configuration
The Tailwind configuration is located intailwind.config.js:
tailwind.config.js
Custom Fonts
Tune Me In uses custom fonts defined insrc/index.css:
src/index.css
Using Custom Fonts
Color System
Tune Me In defines a custom color palette:Responsive Design
Tailwind provides responsive breakpoints:Breakpoints
sm: 640pxmd: 768pxlg: 1024pxxl: 1280px2xl: 1536px3xl: 1650px (custom)
Custom CSS Classes
Tune Me In includes custom CSS classes for specific effects:Header Styles
src/components/Header.server.jsx
Animations
src/index.css
Styling Components
Button Component
src/components/Button.client.jsx
Product Card
Tailwind Plugins
Aspect Ratio
Typography
Theming
To customize the theme:Best Practices
Use Tailwind's utility classes
Use Tailwind's utility classes
Prefer utility classes over custom CSS for consistency and maintainability:
Extract repeated patterns
Extract repeated patterns
For repeated component patterns, create reusable components:
Use responsive design mobile-first
Use responsive design mobile-first
Start with mobile styles and add larger breakpoints:
Optimize for performance
Optimize for performance
Tailwind’s JIT mode only generates the CSS you use. Keep your classes clean and avoid dynamic class generation:
Dark Mode
To add dark mode support:tailwind.config.js
Next Steps
Components
Apply these styling techniques to your components
Tailwind CSS Docs
Explore more Tailwind features and utilities