Skip to content

[V4 Alpha] - Background Linear Gradients Not Applied in Next.js Starter 14.1.3 #13192

@2manoj1

Description

@2manoj1

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:

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 editing background not applied properly

Attaching Screenshot:

Left side is v4 version, Right side is v3.3.3 version

Screenshot 2024-03-11 at 10 40 01 AM

Metadata

Metadata

Assignees

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