Function
buildReverse
(forward: Record<string, string>)
Source from the content-addressed store, hash-verified
| 690 | */ |
| 691 | export function buildTokenMap(theme: typeof DEFAULT_V4_THEME): TailwindTokenMap { |
| 692 | const buildReverse = (forward: Record<string, string>): Record<string, string> => { |
| 693 | const reverse: Record<string, string> = {}; |
| 694 | for (const [token, css] of Object.entries(forward)) { |
| 695 | reverse[css] = token; |
| 696 | } |
| 697 | return reverse; |
| 698 | }; |
| 699 | |
| 700 | return { |
| 701 | spacing: theme.spacing, |
Tested by
no test coverage detected