Ask any question about Tailwind CSS here... and get an instant response.
How do I customize breakpoints in Tailwind?
Asked on Dec 06, 2025
Answer
In Tailwind CSS, customizing breakpoints is done through the configuration file, typically `tailwind.config.js`. 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:
- Breakpoints are defined under the "screens" key in the Tailwind configuration file.
- You can add new breakpoints or override existing ones by specifying custom values.
- After updating the configuration, rebuild your CSS to apply the changes.
- These custom breakpoints can then be used with responsive utilities like "sm:", "md:", etc.
Recommended Links:
