-
-
Notifications
You must be signed in to change notification settings - Fork 518
Description
Describe the bug
The HSL Adjustment controls make unexpected changes to the colors set by the Default theme preset. So if you set theme to the Default preset and then adjust the HSL Adjustment controls, any colors set by the Default preset will be overridden to some unexpected colors.
To Reproduce
- Set the theme to the
Defaultpreset - (Optional) Adjust a few colors, leaving some untouched. (I changed the primary, secondary & card colors)
- Navigate to the
HSL Adjustmentscontrols and adjust any slider (I adjustedhue shiftby -120 deg) - See how the colors we didn't change are incorrect, and the ones we did change are set to the expected colors
Expected behavior
Observe the background color under the Base Colors during this process; the lightness & chroma values change when they shouldn't. Keep in mind that in the screenshots I sent this color was set by the Default theme preset and unchanged by me.
- Before hue shift:
oklch(0.145 0 0)(#0a0a0a) - After hue shift:
oklch(0.2163 0.0025 145.49)(#191a19) - Expected:
oklch(0.145 0 0)(#0a0a0a)
Side note; I'm not sure what the expected
hueactually is but thechromaandlightnessvalues are not supposed to change if the only slider I changed was thehue shift
Screenshots
Here are the screenshots that show you the before and after of my example
Desktop:
- OS: Windows 11
- Browser Chrome
- Version 142.0.7444.176
Additional context
I have tried this on a few other theme presets but it seems to only get the wrong colors when they are set by the Default preset.
I also checked if the problem was with the oklch format being the initial color and then shifting the hue caused some incorrect format conversion to hex, but from what I found it seems that's not the issue.

