MCPcopy Create free account
hub / github.com/anus-dev/ANUS / getInkColor

Method getInkColor

packages/cli/src/ui/themes/theme.ts:172–174  ·  view source on GitHub ↗

* Gets the Ink-compatible color string for a given highlight.js class name. * @param hljsClass The highlight.js class name (e.g., 'hljs-keyword', 'hljs-string'). * @returns The corresponding Ink color string (hex or name) if it exists.

(hljsClass: string)

Source from the content-addressed store, hash-verified

170 * @returns The corresponding Ink color string (hex or name) if it exists.
171 */
172 getInkColor(hljsClass: string): string | undefined {
173 return this._colorMap[hljsClass];
174 }
175
176 /**
177 * Resolves a CSS color value (name or hex) into an Ink-compatible color string.

Callers 1

renderHastNodeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected