()
| 43 | return shift(value, { l: isDark ? 0.034 : -0.024, c: isDark ? 1.3 : 1.18 }) |
| 44 | } |
| 45 | const modified = () => { |
| 46 | if (!colors.compact) return isDark ? "#ffba92" : "#FF8C00" |
| 47 | const warningHue = hexToOklch(colors.warning).h |
| 48 | const deleteHue = hexToOklch(colors.diffDelete ?? colors.error).h |
| 49 | const delta = Math.abs(((((deleteHue - warningHue) % 360) + 540) % 360) - 180) |
| 50 | if (delta < 48) return isDark ? "#ffba92" : "#FF8C00" |
| 51 | return content(colors.warning, warning) |
| 52 | } |
| 53 | const surface = ( |
| 54 | seed: HexColor, |
| 55 | alpha: { base: number; weak: number; weaker: number; strong: number; stronger: number }, |
no test coverage detected