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

Function themeV2ToCss

packages/ui/src/theme/v2/resolve.ts:149–153  ·  view source on GitHub ↗
(tokens: ResolvedV2Theme)

Source from the content-addressed store, hash-verified

147}
148
149export function themeV2ToCss(tokens: ResolvedV2Theme): string {
150 return Object.entries(tokens)
151 .map(([key, value]) => `--${key}: ${value};`)
152 .join("\n ")
153}

Callers 3

buildThemeCssFunction · 0.90
applyThemeCssFunction · 0.90
cacheThemeVariantsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected