Skip to content

Helper functions in CSS lose color decoration if wrapped in another function #653

@phelipetls

Description

@phelipetls

What version of Tailwind CSS IntelliSense are you using?

v0.9.1

What version of Tailwind CSS are you using?

3.2.1

What package manager are you using?

npm

What operating system are you using?

Linux

Tailwind config

I don't believe it'll be necessary, but glad to share on request.

VS Code settings

I don't believe it'll be necessary, but glad to share on request.

Describe your issue

Here's the bug:

image

It works fine without the extra wrapper function:

image

To reproduce, paste the below line in a CSS file.

--myvar: fn(theme(colors.fuchsia.600));

I'd expect color decoration to not be affected by this change.

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