Skip to content

🐛 CSS parser does not support @import ... prefix(...) syntax for Tailwind CSS #7920

@coderabbitai

Description

@coderabbitai

Environment information

playground

Description

The CSS parser does not support the prefix() syntax when used with @import statements in Tailwind CSS v4.

Related to #7854

Examples

@import "tailwindcss/theme.css" layer(theme) prefix(tw);
@import "tailwindcss/utilities.css" prefix(tw) layer(utilities);

Questions to address

  • Does the order of layer and prefix matter?
  • How does it interact with supports()?

References

Metadata

Metadata

Assignees

Labels

A-ParserArea: parserL-CSSLanguage: CSSS-Bug-confirmedStatus: report has been confirmed as a valid bugS-Needs discussionStatus: needs a discussion to understand criteria

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions