Skip to content

Add support for variable references transformation #260

Open
@ryanzec

Description

@ryanzec

Right now if you reference one variable in another variable, you can not properly transform those design token as style dictionary will error with error like this:

Reference doesn't exist: button.mode-1.space.icon.value tries to reference space.small3, which is not defined

This seems to be be because when parse the variable alias, the mode is not being added to the values so the reference does not exist.

This seems like a pretty code feature to support and think this plugin should support it.

This is a big enough issue for me that I added support for it myself and will open up a PR shortly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions