Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v4] Using PostCSS @theme doesn't work in a Next.js project #13156

Closed
Facug03 opened this issue Mar 8, 2024 · 1 comment
Closed

[v4] Using PostCSS @theme doesn't work in a Next.js project #13156

Facug03 opened this issue Mar 8, 2024 · 1 comment
Labels

Comments

@Facug03
Copy link

Facug03 commented Mar 8, 2024

What version of Tailwind CSS are you using?

v4.0.0-alpha.6

What build tool (or framework if it abstracts the build tool) are you using?

tailwindcss/postcss: 4.0.0-alpha.6, Next.js 14.1.3

What version of Node.js are you using?

v18.17.1

What browser are you using?

Firefox

What operating system are you using?

Windows

Reproduction URL

https://github.com/Facug03/tailwind-v4-next

It's a repo that i created only to try the new version

Describe your issue

I installed the most recent version of Next.js, followed by the installation of the latest version of Tailwind using PostCSS, and it worked. However, when attempting to utilize the new '@theme', it threw an error:

imagen

CSS:

imagen

@adamwathan
Copy link
Member

Fixed in #13162, thanks for reporting! Publishing a new release in a sec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants