Function: toFlatTokens()
toFlatTokens(
theme):FlatTokenMap
Defined in: roots/helpers.ts:209
Root 2 — Flat Token Map.
Convert a ThemeTokensV2 into a flat Record<string, string | number>
with dot-separated keys and all {ref} values recursively resolved
to their final raw value.
Parameters
| Parameter | Type |
|---|---|
theme | ThemeTokensV2 |