/** * Generates a set of Tokens (A map of CSS variable names) based on the provided Theme object. */ export function tokenGenerator(theme: TTheme): Record { const tokens = {} as Record; const keys = Object.keys(theme) as (keyof TTheme)[]; for (const key of keys) { tokens[key] = `var(--${key})`; } return tokens; }