Skip to content

theme() function evaluates to garbage in the @theme definition in some cases #19104

@janispritzkau

Description

@janispritzkau

What version of Tailwind CSS are you using?

v4.1.14

Reproduction URL

https://play.tailwindcss.com/ZQ4brTr12g

Describe your issue

@theme {
    --color-lime: light-dark(theme(colors.lime.950), theme(colors.lime.50));
}

The second argument, theme(colors.lime.50), somehow evaluates to m. This does not happen with 3-digit color variants.

Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions