MCPcopy Create free account
hub / github.com/donghaxkim/react-rewrite / buildReverse

Function buildReverse

packages/cli/src/tailwind-resolver.ts:692–698  ·  view source on GitHub ↗
(forward: Record<string, string>)

Source from the content-addressed store, hash-verified

690 */
691export 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,

Callers 1

buildTokenMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected