Skip to content

[v4] Sources are not being taken into consideration with Next.js 15 #15876

@AssisrMatheus

Description

@AssisrMatheus

Tailwind: 4.0.0
Next.js: 15.1.6
MacOS: Sequoia 15.2
Node: v22.13.1
pnpm: 9.15.3
Arc Browser: 1.79.0

Reproduction URL

https://github.com/AssisrMatheus/tailwindv4-next15-no-output-repro

Setup process:

  1. pnpx create-next-app@latest
  2. pnpx @tailwindcss/upgrade@next
  3. pnpm run dev

Describe your issue

In a brand new next.js 15 project. Tailwind v4 is only building base css and theme variables, all classes used within source files are ignored.

I have tried to turn off turbopack with no success. Rolling back node to v20 also doesn't help. Tried using postcss.config.json file format instead of current one also with no success.

Current behaviour:
Image

Expected behaviour:
Image

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