Sublime Forum

Hue shift in the color() function

#1

In the latest builds it’s now possible to use the color() function in the theme to adjust given color like this:
"color(var(orange) l(+ 10%) s(- 10%))" which will adjust lightness and saturation. What about hue? I can’t seem to adjust it the same way.
Is it implemented? The documentation for this is not ready AFAIK

0 Likes

#2

No, I haven’t implemented the hue adjuster, mostly because I hadn’t come up with a need for it.

Here are the docs for what is supported: https://www.sublimetext.com/docs/3/dev/minihtml.html#colors.

0 Likes

#3

I’m converting one of my themes to make use of the color vars derived from the background of my color scheme and have found out that with the slight hue shift (say -20) I can achieve a better contrast while staying harmonious to the rest of the theme colors. And for the theme to be adaptive this adjuster is really needed

0 Likes