Skip to content

Breakpoints aren't combining well with custom spacing #2386

Answered by adamwathan
johnhyde asked this question in Help
Discussion options

You must be logged in to vote

Tailwind generates all breakpoint variants in the same order they are specified in your config file, so when using extend, all custom breakpoints get added to the end.

You'll want to not use extend I'm guessing, so you can have fine-grained control over the order of your breakpoints so they take effect in the order you want them to.

I'm not exactly how you want it to work because your custom breakpoint overlaps with Tailwind's md breakpoint, but guessing it's probably close to this:

const defaultTheme = require('tailwindcss/defaultTheme')

module.exports = {
  future: {
    // removeDeprecatedGapUtilities: true,
    // purgeLayersByDefault: true,
  },
  purge: [],
  theme: {
    screens: {

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@johnhyde
Comment options

Answer selected by johnhyde
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 #2386 on September 15, 2020 01:27.