Sarai-WMDE added a comment.
While discussing this task and subsequent comment thread with WMDE folks, we wondered whether JSON wasn't being considered here as an output format for design tokens instead of as the raw, portable format in which the system styles would be documented. With the risk of if being redundant, I thought it wouldn't hurt to add a clarifying comment: What storing design system tokens in JSON allows is being able to obtain several output formats from a single agnostic source. How we do this is in the context of the WiKit design system is by using Style dictionary <https://amzn.github.io/style-dictionary/#/>. This tool allows us to obtain our styles in the needed format (.scss variables in our case), but it could also be used to obtain a styling output that could be used in native platforms directly (see Style dictionary's available output formats <https://amzn.github.io/style-dictionary/#/formats>). Using a set-up such as this would allow extending the system visual foundations to the apps, without the need to maintain the manual process described in some comments above, plus no custom scripts (as mentioned). TASK DETAIL https://phabricator.wikimedia.org/T277616 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Volker_E, Sarai-WMDE Cc: MattCleinman, Dbrant, JMinor, AMuigai, R4356th, SGautam_WMF, cmadeo, schoenbaechler, JTannerWMF, Aklapper, Sarai-WMDE, ItamarWMDE, raja_wmde, Pginer-WMF, AnneT, Michael, Volker_E, Invadibot, UOzurumba, WaheedHafez, Ryansama, maantietaja, Confetti68, Rileych, Akuckartz, hueitan, Nandana, Lahi, Gq86, Sharvaniharan, Jcasariego, GoranSMilovanovic, QZanden, LawExplorer, Iniquity, _jensen, rosalieper, JGirault, Scott_WUaS, SBisson, Wikidata-bugs, saper, aude, Lydia_Pintscher, Mbch331, Jay8g
_______________________________________________ Wikidata-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
