Skip to content

Arbitrary responsive screen values not working with custom screen values #9718

@treb00

Description

@treb00

What version of Tailwind CSS are you using?

v3.2.1

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

Tailwind play

What version of Node.js are you using?

Tailwind play

What browser are you using?

Chrome

What operating system are you using?

Windows

Reproduction URL

Tailwind play

Describe your issue

The arbitrary responsive screen values (example: max-[1000px]:flex-col) not working if at least one screen value is added in tailwind config, either in the theme.screens or theme.extend.screens. If you try to remove that one screen value in the provided example, it works again.

If you make a custom screen like:
screens: { sm: '500px' }
it still works. However, if you do this:
screens: { sm: { max: '500px' } }
it stops working.

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