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.48k stars 115 forks source link

Utilize better color space for calculated shades #160

Open mjswensen opened 7 months ago

mjswensen commented 7 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.