Replies: 1 comment
-
No, Style Dictionary does not support something like that out of the box but there are examples out there on how to create a JavaScript wrapper around Style Dictionary to create multiple instances based on multi-dimensional theming. https://github.com/amzn/style-dictionary/tree/main/examples/advanced/multi-brand-multi-platform this is the official example. For Tokens Studio, which also has theming (multi-dimensional as well):
In your instance it would look something like, read manifest, gather collections/permutations and combine the active tokens files together in the Style Dictionary instances that you create. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been exporting a handful of Figma variables with the Design Token Manager plugin which outputs multiple DTFM compatible files semantically linked together with a manifest. Can Style Dictionary utilise the manifest file somehow because currently the output doesn't produce values mapped to modes.
Example:
manifest.json
Typography.desktop.tokens.json
Typography.mobile.tokens.json
config.mjs
_custom-properties.css
Beta Was this translation helpful? Give feedback.
All reactions