(tone: number)
| 172 | if (ink) { |
| 173 | const base = hexToOklch(seed) |
| 174 | const lift = (tone: number) => |
| 175 | oklchToHex({ |
| 176 | l: base.l + (1 - base.l) * tone, |
| 177 | c: base.c * Math.max(0, 1 - tone), |
| 178 | h: base.h, |
| 179 | }) |
| 180 | const sink = (tone: number) => |
| 181 | oklchToHex({ |
| 182 | l: base.l * (1 - tone), |
no test coverage detected