1 import type { Instance as Color } from 'tinycolor2';
2 import tinycolor from 'tinycolor2';
4 import percentOf from '@proton/utils/percentOf';
6 function hue(percent: number) {
7 return function (color: Color) {
8 const hsl = color.toHsl();
10 hsl.h = hsl.h + percentOf(percent, hsl.h);
12 return tinycolor(hsl);