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

Function buildSpacing

packages/core/src/theme/theme.ts:22–32  ·  view source on GitHub ↗
(spacing: ThemeSpacingTokens)

Source from the content-addressed store, hash-verified

20const compiledThemeCache = new WeakMap<ThemeDefinition, Theme>();
21
22function buildSpacing(spacing: ThemeSpacingTokens): ThemeSpacing {
23 return Object.freeze([
24 0,
25 spacing.xs,
26 spacing.sm,
27 spacing.md,
28 spacing.lg,
29 spacing.xl,
30 spacing["2xl"],
31 ]);
32}
33
34function buildColorIndex(theme: ThemeDefinition): ThemeColors {
35 const c = theme.colors;

Callers 2

compileThemeFunction · 0.85
blendThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected