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

Function resolveThemeV2

packages/ui/src/theme/v2/resolve.ts:142–147  ·  view source on GitHub ↗
(theme: DesktopTheme)

Source from the content-addressed store, hash-verified

140}
141
142export function resolveThemeV2(theme: DesktopTheme): { light: ResolvedV2Theme; dark: ResolvedV2Theme } {
143 return {
144 light: resolveThemeVariantV2(theme.light, false),
145 dark: resolveThemeVariantV2(theme.dark, true),
146 }
147}
148
149export function themeV2ToCss(tokens: ResolvedV2Theme): string {
150 return Object.entries(tokens)

Callers

nothing calls this directly

Calls 1

resolveThemeVariantV2Function · 0.85

Tested by

no test coverage detected