MCPcopy Create free account
hub / github.com/anomalyco/opencode / modified

Function modified

packages/ui/src/theme/resolve.ts:45–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 },

Callers 1

resolveThemeVariantFunction · 0.85

Calls 2

hexToOklchFunction · 0.90
contentFunction · 0.70

Tested by

no test coverage detected