themerdev / themer

🎨 themer takes a set of colors and generates themes for your apps (editors, terminals, wallpapers, and more).
https://themer.dev
MIT License
5.52k stars 118 forks source link

Utilize better color space for calculated shades #160

Open mjswensen opened 9 months ago

mjswensen commented 9 months ago

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.