Move design tokens source of truth to a non-platform-specific location
Categories
(Toolkit :: Themes, task)
Tracking
()
People
(Reporter: mstriemer, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [recomp])
Since the design tokens are (at least partially) not platform-specific, the values should be stored outside of our .css files in mozilla-central.
There are some tools available to help export design tokens into different formats. Using one of these tools would enable the design systems team to manage the tokens and provide a .css export for use within mozilla-central.
Updated•1 year ago
|
Comment 1•1 year ago
|
||
(In reply to Mark Striemer [:mstriemer] from comment #0)
Since the design tokens are (at least partially) not platform-specific, the values should be stored outside of our .css files in mozilla-central.
I'm not sure I understand. toolkit/themes/shared/
seems like a fine, platform-agnostic place; it doesn't cover mobile, which from what I understand isn't currently a goal anyway? If and when that changes we would indeed want to move the original source out of toolkit.
There are some tools available to help export design tokens into different formats. Using one of these tools would enable the design systems team to manage the tokens and provide a .css export for use within mozilla-central.
That's a fine goal if UX want to export design tokens that way, although I'd probably still put them somewhere in toolkit/themes/
as it ultimately serves building themes. (With the caveat about mobile.)
Reporter | ||
Comment 2•1 year ago
|
||
Our tokens would remain in tookit/themes/shared/
, the idea is that the file in there would be generated through some other workflow that is owned by the design systems team. So perhaps there is a repo on FirefoxUX GitHub that has some JSON like:
"color": {
"background": {
"default": "--grey-50",
"hover": "--grey-60",
"active": "--grey-70"
}
}
And they run a script which generates our design-tokens-brand.css
file and we commit that to its current home.
The benefit here is that they could also run that script and have it generate XML files for Android and Swift files for iOS using the same tokens.
There will almost certainly still be Firefox Desktop related tokens, and I don't think we want to make it more difficult on ourselves to make a quick change to these tokens, but this is more of an exploration ticket to see how it would work for the Design Systems team to coordinate tokens across our Firefox products.
Updated•4 months ago
|
Reporter | ||
Comment 3•3 months ago
|
||
I think the work done in bug 1850611 is enough to mark this as done
Description
•