(spacing: ThemeSpacingTokens)
| 20 | const compiledThemeCache = new WeakMap<ThemeDefinition, Theme>(); |
| 21 | |
| 22 | function 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 | |
| 34 | function buildColorIndex(theme: ThemeDefinition): ThemeColors { |
| 35 | const c = theme.colors; |
no outgoing calls
no test coverage detected