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