themerdev/themer

Utilize better color space for calculated shades

mjswensen opened this issue · 0 comments

Problem

Mathematical operations in sRGB do not produce color differences that are perceptually even.

Solution

Shade calculations should use a more suitable color space, such as OKLCH.

Color.js may be a useful tool.