Skip to content

🐛 Bug in CSS parser for Tailwind: custom variants with () syntax not supported #7964

@PaulRBerg

Description

@PaulRBerg

Environment information

Biome v2.3.2

What happened?

Biome is unable to parse this Tailwind custom variant:

@custom-variant max-xxs (@media (max-width: 320px));

Getting this error:

Expected a selector but instead found '@'.

But this is valid syntax according to the Tailwind docs.

Playground link

Expected result

Biome should be able to parse this Tailwind syntax.

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-Needs triageStatus: this issue needs to be triaged

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions