Created
June 22, 2022 18:07
-
-
Save sergiodxa/b85be70309c9554abccf3833881b5177 to your computer and use it in GitHub Desktop.
Example Tailwind config for max and range screen sizes.
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
module.exports = { | |
theme: { | |
screens: { | |
"-2xl": { max: "1536px" }, | |
"-xl": { max: "1280px" }, | |
"-lg": { max: "1024px" }, | |
"-md": { max: "768px" }, | |
"-sm": { max: "640px" }, | |
"sm~md": { min: "640px", max: "768px" }, | |
"md~lg": { min: "768px", max: "1024px" }, | |
"lg~xl": { min: "1024px", max: "1280px" }, | |
"xl~2xl": { min: "1280px", max: "1536px" }, | |
...defaultTheme.screens, | |
}, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment