Skip to content

[lint] Biome doesn't support Tailwind v4 syntax #82826

@sattarrasouli

Description

@sattarrasouli

Link to the code that reproduces this issue

https://github.com/sattarrasouli/nextjs-15.5-issue-biome.git

To Reproduce

npm install
npm run lint

Current vs. Expected behavior

[email protected] lint
biome check

src/app/globals.css:8:2 lint/suspicious/noUnknownAtRules ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✖ Unexpected unknown at-rule: theme

 6 │ }
 7 │ 

8 │ @theme inline {
│ ^^^^^
9 │ --color-background: var(--background);
10 │ --color-foreground: var(--foreground);

ℹ theme is not a standard CSS at-rule, which may lead to unexpected styling results or failure to interpret the styles as intended.

ℹ See MDN web docs for a known list of at-rules.

ℹ To fix this issue, consider removing the unknown at-rule.

Checked 8 files in 3ms. No fixes applied.
Found 1 error.
check ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✖ Some errors were emitted while running checks.

Provide environment information

Apple mac book m2 pro

Which area(s) are affected? (Select all that apply)

CSS and biome

Which stage(s) are affected? (Select all that apply)

next build (local)

Additional context

i've just comment out this part @theme in globals.css, lint passed
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
}

Metadata

Metadata

Assignees

Labels

CSSRelated to CSS.UpstreamRelated to using Next.js with a third-party dependency. (e.g., React, UI/icon libraries, etc.).locked

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions