Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment with the token property isSource #24

Open
d01000100 opened this issue Mar 3, 2023 · 0 comments
Open

Experiment with the token property isSource #24

d01000100 opened this issue Mar 3, 2023 · 0 comments
Labels
priority:low style-dictionary-3.0 Features involving including or using new features in Style Dictionary 3.0

Comments

@d01000100
Copy link
Owner

StyleDictionary 3.0 added two new metadata properties to design tokens, while they're going through its pipeline: filePath and isSource.

According to the documentation:

  • isSource: A boolean representing if this file was defined as ‘source’ in the configuration as opposed to ‘include’ (or directly setting the ‘properties’ object). This can also help filtering tokens from output files you don't want to include.

I didn't quite understood the purpose or use cases of this property with just reading the docs and changelogs.

More experiments and tests are needed to fully understand this and to determine if it's useful for our configuration

PR of the feature

@d01000100 d01000100 added priority:low style-dictionary-3.0 Features involving including or using new features in Style Dictionary 3.0 labels Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:low style-dictionary-3.0 Features involving including or using new features in Style Dictionary 3.0
Projects
None yet
Development

No branches or pull requests

1 participant