Skip to content

v4 swatches not displayed when referring variables #1102

Closed
@jeannen

Description

@jeannen

What version of VS Code are you using?
Cursor, and not sure where to see this

What version of Tailwind CSS IntelliSense are you using?
v0.13.59 (pre-release)

What version of Tailwind CSS are you using?
v4.0.0-alpha.34

What package manager are you using?
npm

What operating system are you using?
macOS

Describe your issue

Color swatches are not displaying when referring to variables from the main config file. It worked fine with Tailwind v3.

main.css

    --color-test-500: #ff0000; 
    --color-primary-500: var(--color-indigo-50);

index.html

<div class="bg-text-500">Swatch displays</div>
<div class="bg-primary-500">Swatch doesn't displays</div>

The auto-suggest works fine however, it's just the color swatch

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