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

Function on

packages/ui/src/theme/resolve.ts:108–112  ·  view source on GitHub ↗
(fill: HexColor)

Source from the content-addressed store, hash-verified

106 return (light + 0.05) / (dark + 0.05)
107 }
108 const on = (fill: HexColor) => {
109 const light = "#ffffff" as HexColor
110 const dark = "#000000" as HexColor
111 return hit(light, fill) > hit(dark, fill) ? light : dark
112 }
113
114 const tokens: ResolvedTheme = {}
115

Callers 8

resolveThemeVariantFunction · 0.70
TextRevealFunction · 0.50
DigitFunction · 0.50
AnimatedNumberFunction · 0.50
ListFunction · 0.50
AnimatedHeadingFunction · 0.50
createAutoScrollFunction · 0.50
useFilteredListFunction · 0.50

Calls 1

hitFunction · 0.70

Tested by

no test coverage detected