Replies: 1 comment
-
|
(Seems GitHub has an error now converting to discussion; will keep as issue) Option 1Terrazzo (and the DTCG format) may require a bit of a mindset shift from Style Dictionary. Terrazzo is more generally oriented around 1 CSS output where you use Mode selectors to control your brands. And in your tokens you have different brand values set with [data-brand="brand1"] {
--color-blue-500: …;
/* brand 1 tokens */
}
[data-brand="brand2"] {
--color-blue-500: …;
/* brand 1 tokens */
}This often saves you work from having to generate all this yourself. Option 2But if you wanted to have a “multiple inputs, multiple outputs” situation, you could have multiple Hopefully this helps! And gives you a few ways forward |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having a hard time figuring out how to write a build script similar to the Style Dictionary multi-brand example but also split the themes for each of the brands.
I have the following token directories:
tokens/brand/brand1/{tokens}
tokens/brand/brand2/{tokens}
tokens/primitives/{tokens}
My expected output is:
dist/brand1/{primitives.css, light-theme.css, dark-theme.css}
dist/brand2/{primitives.css, light-theme.css, dark-theme.css}
Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions