Ask any question about Tailwind CSS here... and get an instant response.
How can I customize the default breakpoints in Tailwind?
Asked on Nov 01, 2025
Answer
In Tailwind CSS, you can customize the default breakpoints by modifying the `theme.screens` section in your Tailwind configuration file. This allows you to define custom screen sizes for responsive design.
<!-- BEGIN COPY / PASTE -->
// tailwind.config.js
module.exports = {
theme: {
screens: {
'sm': '640px',
'md': '768px',
'lg': '1024px',
'xl': '1280px',
'2xl': '1536px',
// Add custom breakpoints
'tablet': '900px',
'desktop': '1200px',
},
},
}
<!-- END COPY / PASTE -->Additional Comment:
- Tailwind's default breakpoints are mobile-first, meaning they apply styles from smaller to larger screens.
- You can override existing breakpoints or add new ones as needed.
- After customizing, ensure your Tailwind build process is re-run to apply changes.
- Custom breakpoints can be used with responsive utilities like "tablet:bg-blue-500".
Recommended Links:
