Summary:
I would like to propose an enhancement where tokens can reference global tokens after CSS variable conversion. The goal is to ensure that when a token references a global token (e.g., a color variable like white), the reference to that global token is preserved during the conversion process.
Current behavior:
Global tokens are defined separately from light theme tokens.
This enhancement would improve token management by ensuring references between tokens are maintained across themes and token files, making the system more modular and scalable.
Summary:
I would like to propose an enhancement where tokens can reference global tokens after CSS variable conversion. The goal is to ensure that when a token references a global token (e.g., a color variable like
white
), the reference to that global token is preserved during the conversion process.Current behavior:
Global tokens are defined separately from light theme tokens.
For example
GlobalToken.json
Light.json
The current output in CSS looks like this:
Expected behavior: The
primary
token should reference the globalwhite
token, so the ideal CSS output should look like this:This enhancement would improve token management by ensuring references between tokens are maintained across themes and token files, making the system more modular and scalable.
Or is there a way to achieve this?