MCPcopy Index your code
hub / github.com/anomalyco/opencode / color

Function color

packages/opencode/src/cli/cmd/run/theme.ts:389–389  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

387 const isDark = pick === "dark"
388
389 const color = (index: number) => paletteColor(colors, index)
390
391 const grays = generateGrayScale(bg_snapshot, isDark, (rgba) => rgba)
392 const textMuted = generateMutedTextColor(bg_snapshot, isDark, (rgba) => rgba)

Callers 2

generateSystemFunction · 0.70
RunEntryContentFunction · 0.70

Calls 1

paletteColorFunction · 0.85

Tested by

no test coverage detected