-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Description
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?
Next.js 14.1.3
For example: postcss-cli 8.3.1, Next.js 10.0.9, webpack 5.28.0
What version of Node.js are you using?
v20.11.1
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
https://github.com/2manoj1/poc-tailwind4-nextjs14-theme
Describe your issue
I'm encountering an issue with background linear gradients not being applied in the Next.js starter project (version 14.1.3) when using Tailwind CSS v4 Alpha.
Steps to Reproduce:
-
Create a new Next.js project using the npx create-next-app@latest command (ensuring it uses the 14.1.3 starter).
-
Implement Tailwind CSS according to the installation guide v4 (https://tailwindcss.com/blog/tailwindcss-v4-alpha).
or
follow setup https://github.com/tailwindlabs/tailwindcss/tree/next/playgrounds/nextjs -
Add CSS for a background linear gradient to a body element.
body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(to bottom, transparent, rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb));
}- Observe that the background linear gradient is not applied, and the body displays a solid color instead.
- Also
Get started by editingbackground not applied properly
Attaching Screenshot:
Left side is v4 version, Right side is v3.3.3 version
