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

Function lift

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

Source from the content-addressed store, hash-verified

172 if (ink) {
173 const base = hexToOklch(seed)
174 const lift = (tone: number) =>
175 oklchToHex({
176 l: base.l + (1 - base.l) * tone,
177 c: base.c * Math.max(0, 1 - tone),
178 h: base.h,
179 })
180 const sink = (tone: number) =>
181 oklchToHex({
182 l: base.l * (1 - tone),

Callers 1

generateNeutralScaleFunction · 0.70

Calls 1

oklchToHexFunction · 0.85

Tested by

no test coverage detected