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

Function themeToCss

packages/ui/src/theme/resolve.ts:536–540  ·  view source on GitHub ↗
(tokens: ResolvedTheme)

Source from the content-addressed store, hash-verified

534}
535
536export function themeToCss(tokens: ResolvedTheme): string {
537 return Object.entries(tokens)
538 .map(([key, value]) => `--${key}: ${value};`)
539 .join("\n ")
540}

Callers 3

buildThemeCssFunction · 0.90
applyThemeCssFunction · 0.90
cacheThemeVariantsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected