Skip to content

[FEATURE REQUEST] Support filtering out token-sets (such as those "treated as source") #32

@kvenn

Description

@kvenn

💬 Description

If I mark a token-set as "source", it doesn't allow me to access those variables in Figma. Ideally it would work the same in the code.

If this is controversial, it would be great if there was a setting passed to the generator (or a config file) that allowed you to ignore certain token-sets. Or ignore source token-sets.

❓ Link to specification or documentation (if available)

Tokens studio docs

Details

themes/semantic-light references colors in core, but they shouldn't be accessible in the code (to prevent people from using colors directly instead of through the semantic theme token set).

In $themes.json there is this:

    "selectedTokenSets": {
      "global": "enabled",
      "core": "source",
      "theme/semantic-light": "enabled"
    },

image

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