Last active
November 14, 2024 14:27
-
-
Save cvan/47455a4f8aaa22e73e54253954635dc5 to your computer and use it in GitHub Desktop.
tailwind CSS breakpoints (including iPhone 11 Pro Max)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// References used: | |
// - https://yesviz.com/devices.php | |
// - https://ricostacruz.com/til/css-media-query-breakpoints | |
// - https://tailwindcss.com/docs/responsive-design/#customizing-breakpoints | |
screens: { | |
'2xs': { min: '300px' }, | |
xs: { max: '575px' }, // Mobile (iPhone 3 - iPhone XS Max). | |
sm: { min: '576px', max: '897px' }, // Mobile (matches max: iPhone 11 Pro Max landscape @ 896px). | |
md: { min: '898px', max: '1199px' }, // Tablet (matches max: iPad Pro @ 1112px). | |
lg: { min: '1200px' }, // Desktop smallest. | |
xl: { min: '1259px' }, // Desktop wide. | |
'2xl': { min: '1359px' } // Desktop widescreen. | |
}, |
2xl in the above needs to be quoted, e.g.
'2xl': {min: '1359px'}, // Desktop widescreen.
.
thanks, fixed.
Thanks!!
Thank you, this is very helpful for me
lg: 1159, xl: 1200, md: max: '1199px' ? Why they overlap?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2xl in the above needs to be quoted, e.g.
'2xl': {min: '1359px'}, // Desktop widescreen.
.