-
-
Notifications
You must be signed in to change notification settings - Fork 966
Closed
Description
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
- Read the Contributing Guidelines.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels