Theme colour math

In one of the other chats @dan provided the formular. I also use it in my sketch plugin for the default elements colors and it works 1:1 the same like when setting the color in Elements.

The problem with that approach is abit with the coloring. Specially when you try to set a 100 the 50 looks aweful. I still prefer the approach I have seen here:

https://www.tints.dev/blue/3B82F6

Including the saturation and hue offset. Very good book that explains this:

1 Like