MCPcopy
hub / github.com/codeaashu/claude-code / applyColor

Function applyColor

src/ink/colorize.ts:226–231  ·  view source on GitHub ↗
(text: string, color: Color | undefined)

Source from the content-addressed store, hash-verified

224 * Theme resolution should happen at component layer, not here.
225 */
226export function applyColor(text: string, color: Color | undefined): string {
227 if (!color) {
228 return text
229 }
230 return colorize(text, color, 'foreground')
231}
232

Callers 5

LogSelectorFunction · 0.85
generateTokenChartFunction · 0.85
hFunction · 0.85
styleBorderLineFunction · 0.85
renderBorderFunction · 0.85

Calls 1

colorizeFunction · 0.70

Tested by

no test coverage detected