Skip to content

Support for Arbitrary Values with Custom Breakpoint configuration #14121

@hamidreza4dev

Description

@hamidreza4dev

What version of Tailwind CSS are you using?

v3.4.7

What build tool (or framework if it abstracts the build tool) are you using?

postcss 8.4.40, Next.js 14.2.5

What version of Node.js are you using?

For example: v20.15.0

What browser are you using?

Chrome

What operating system are you using?

macOS

Reproduction URL

https://play.tailwindcss.com/DN6QPm53oY

Describe your issue

The class min-[800px]:bg-red-500 is not recognized because I switched to max-width breakpoints instead of the default min-width. Here is my configuration:

/** @type {import('tailwindcss').Config} */
export default {
  theme: {
    screens: {
      '3xl': { max: '1899px' },
      '2xl': { max: '1535px' },
      xl: { max: '1399px' },
      xxl: { max: '1279px' },
      lg: { max: '1023px' },
      md: { max: '767px' },
      sm: { max: '639px' },
      xs: { max: '479px' },
      xxs: { max: '399px' },
    },
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions