Ask any question about Tailwind CSS here... and get an instant response.
How do I customize breakpoints in Tailwind configuration?
Asked on Nov 03, 2025
Answer
In Tailwind CSS, you can customize breakpoints by modifying the `tailwind.config.js` file. This allows you to define your own screen sizes for responsive design.
<!-- BEGIN COPY / PASTE -->
module.exports = {
theme: {
extend: {
screens: {
'xs': '480px',
'sm': '640px',
'md': '768px',
'lg': '1024px',
'xl': '1280px',
'2xl': '1536px',
},
},
},
}
<!-- END COPY / PASTE -->Additional Comment:
- Tailwind's default breakpoints are mobile-first, meaning they apply styles from the smallest to the largest screen size.
- You can add new breakpoints or modify existing ones by adjusting the `screens` property in the configuration file.
- After making changes, ensure you rebuild your CSS to see the updates reflected in your project.
Recommended Links:
