MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / tryResolveColorToken

Function tryResolveColorToken

packages/core/src/theme/resolve.ts:212–218  ·  view source on GitHub ↗
(theme: ThemeDefinition, path: string)

Source from the content-addressed store, hash-verified

210}
211
212export function tryResolveColorToken(theme: ThemeDefinition, path: string): ResolveColorResult {
213 const result = resolveColorToken(theme, path);
214 if (result === null) {
215 return { ok: false, error: `Invalid color path: ${path}` };
216 }
217 return { ok: true, value: result };
218}
219
220export function resolveColorOrRgb(
221 theme: ThemeDefinition,

Calls 1

resolveColorTokenFunction · 0.85

Tested by

no test coverage detected