Skip to content

Error with breakpoints #2693

Answered by adamwathan
jewe11er asked this question in Help
Discussion options

You must be logged in to vote

For max-width breakpoints you will want to reverse the order of your screens to make sure the smaller ones take precedence over the larger ones:

module.exports = {
  theme: {
    screens: {
      xl: { max: '1600px' },
      lg: { max: '1280px' },
      md: { max: '960px' },
      sm: { max: '600px' },
    },
  },
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by adamwathan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2693 on October 28, 2020 17:44.