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

Function borderTone

packages/ui/src/theme/resolve.ts:69–70  ·  view source on GitHub ↗
(light: number, dark: number)

Source from the content-addressed store, hash-verified

67 const alphaTone = (color: HexColor, alpha: number) =>
68 overlay ? (withAlpha(color, alpha) as ColorValue) : blend(color, background, alpha)
69 const borderTone = (light: number, dark: number) =>
70 alphaTone(ink, isDark ? Math.min(1, dark + 0.024 + (colors.compact ? 0.08 : 0)) : Math.min(1, light + 0.024))
71 const diffHiddenSurface = surface(
72 isDark ? shift(colors.interactive, { c: 0.55, l: 0 }) : shift(colors.interactive, { c: 0.45, l: 0.08 }),
73 isDark

Callers 1

resolveThemeVariantFunction · 0.85

Calls 1

alphaToneFunction · 0.85

Tested by

no test coverage detected