(theme: Theme, color: string | number)
| 242 | } |
| 243 | |
| 244 | export function resolveColor(theme: Theme, color: string | number): number { |
| 245 | if (typeof color !== "string") return color; |
| 246 | return theme.colors[color] ?? theme.colors.fg ?? theme.definition.colors.fg.primary; |
| 247 | } |
| 248 | |
| 249 | export function resolveSpacing(theme: Theme, space: number): number { |
| 250 | if (!Number.isFinite(space)) return 0; |
no outgoing calls
no test coverage detected