MCPcopy Create free account
hub / github.com/anomalyco/opencode / resolveTheme

Function resolveTheme

packages/ui/src/theme/resolve.ts:529–534  ·  view source on GitHub ↗
(theme: DesktopTheme)

Source from the content-addressed store, hash-verified

527}
528
529export function resolveTheme(theme: DesktopTheme): { light: ResolvedTheme; dark: ResolvedTheme } {
530 return {
531 light: resolveThemeVariant(theme.light, false),
532 dark: resolveThemeVariant(theme.dark, true),
533 }
534}
535
536export function themeToCss(tokens: ResolvedTheme): string {
537 return Object.entries(tokens)

Callers

nothing calls this directly

Calls 1

resolveThemeVariantFunction · 0.85

Tested by

no test coverage detected