Skip to content

[Wind4] Unable to use PresetWind4 with special color variables for high-contrast theming #4673

@AndrewBogdanovTSS

Description

@AndrewBogdanovTSS

UnoCSS version

66.1.2

Describe the bug

Since Wind4 preset moved to the use of color-mix function now the color that's being passed to color utility will always be wrapped with the color-mix, but high-contrast assumes the color to be specified as a variable,
which breaks proper behavior for high-contrast theme
is there any way to disable the use of color-mix function on a per-utility basis?

Seems to be related to #4669

Reproduction

div class="c-[ButtonText]"

should compile to

color: ButtonText

but instead compiles to

color: color-mix(in oklch, ButtonText var(--un-text-opacity), transparent) /* ButtonText */

Side Note: I checked TailwindCSS 4.1 and that problem is not reproducible, I get correct raw output when using text-[ButtonText]

System Info

Wind4 Preset

Validations

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