Skip to content

Instantly share code, notes, and snippets.

@sergiodxa
Created June 22, 2022 18:07
Show Gist options
  • Save sergiodxa/b85be70309c9554abccf3833881b5177 to your computer and use it in GitHub Desktop.
Save sergiodxa/b85be70309c9554abccf3833881b5177 to your computer and use it in GitHub Desktop.
Example Tailwind config for max and range screen sizes.
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