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

Function sink

packages/ui/src/theme/color.ts:180–185  ·  view source on GitHub ↗
(tone: number)

Source from the content-addressed store, hash-verified

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

Callers 1

generateNeutralScaleFunction · 0.85

Calls 1

oklchToHexFunction · 0.85

Tested by

no test coverage detected