(tone: number)
| 178 | h: base.h, |
| 179 | }) |
| 180 | const sink = (tone: number) => |
| 181 | oklchToHex({ |
| 182 | l: base.l * (1 - tone), |
| 183 | c: base.c * Math.max(0, 1 - tone * (isDark ? 0.12 : 0.3)), |
| 184 | h: base.h, |
| 185 | }) |
| 186 | const bg = isDark |
| 187 | ? sink(clamp(0.19 + Math.max(0, base.l - 0.12) * 0.33 + base.c * 1.95, 0.17, 0.27)) |
| 188 | : base.l < 0.82 |
no test coverage detected