MCPcopy Create free account
hub / github.com/codeaashu/claude-code / resolveColor

Function resolveColor

web/lib/ink-compat/prop-mapping.ts:216–220  ·  view source on GitHub ↗
(side: string | undefined, fallback: string | undefined, dim: boolean | undefined)

Source from the content-addressed store, hash-verified

214 const showRight = props.borderRight !== false
215
216 const resolveColor = (side: string | undefined, fallback: string | undefined, dim: boolean | undefined) => {
217 const raw = side ?? fallback
218 const cssColor = inkColorToCSS(raw) ?? 'currentColor'
219 return dim ? `color-mix(in srgb, ${cssColor} 60%, transparent)` : cssColor
220 }
221
222 const dimAll = props.borderDimColor
223

Callers 1

inkBoxPropsToCSSFunction · 0.70

Calls 1

inkColorToCSSFunction · 0.90

Tested by

no test coverage detected