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

Function formatThemeName

packages/arctic/src/settings/server.ts:12–17  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

10import { DEFAULT_THEMES } from "../cli/cmd/tui/context/theme"
11
12function formatThemeName(id: string): string {
13 return id
14 .split("-")
15 .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
16 .join(" ")
17}
18
19type ThemeJson = (typeof DEFAULT_THEMES)[string]
20type ColorValue = string | { dark: string; light: string }

Callers 1

server.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected