MCPcopy Create free account
hub / github.com/arctic-cli/interface / resolveThemeColors

Function resolveThemeColors

packages/arctic/src/settings/server.ts:41–49  ·  view source on GitHub ↗
(themeJson: ThemeJson, mode: "dark" | "light")

Source from the content-addressed store, hash-verified

39}
40
41function resolveThemeColors(themeJson: ThemeJson, mode: "dark" | "light"): Record<string, string> {
42 const defs = themeJson.defs ?? {}
43 const result: Record<string, string> = {}
44 for (const [key, value] of Object.entries(themeJson.theme)) {
45 if (key === "thinkingOpacity") continue
46 result[key] = resolveColor(value as ColorValue, defs, themeJson.theme, mode)
47 }
48 return result
49}
50
51export namespace Settings {
52 const log = Log.create({ service: "settings" })

Callers 1

server.tsFile · 0.85

Calls 1

resolveColorFunction · 0.70

Tested by

no test coverage detected