Skip to content

Rule · Lint

tailwind.config.* exists but the CSS entry has no @config

lint/tw-js-config-ignoredwarnvoid lintupdated

Why it matters

Tailwind v4 is configured in CSS. A JavaScript config is only loaded when a stylesheet references it with @config; otherwise its theme, plugins and darkMode are ignored and every class it defined produces no CSS.

How to fix it

Move the theme into @theme { … } in your CSS entry (preferred), or add @config "./tailwind.config.ts"; right after @import "tailwindcss";. Delete the JS file once migrated.

Example

css
@import "tailwindcss";
@theme {
  --color-brand: oklch(0.62 0.19 272);
  --font-display: "Inter Display", sans-serif;
}

References

void lint reports 67 rules in this category. Static source checks with no browser: Tailwind v4 silent failures, Next.js 16 API traps, React render-body bugs, accessibility markup, SEO files and motion hygiene.