You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.
Another part of the project could be Figma page with color and size variables. We could either sync from config to Figma or read variables from Figma into config. Seems like it could be achived via Figma plugins.
Options if we want code to be the source of truth:
Utilize Figma Tokens plugin
Convert dsgen config to a JSON file compatible with Figma Tokens. We'll need to manually update this JSON in Figma or sync it via jsonbin.io integration.
Selfmade plugin
We can make our own plugin similar to Tailwind and Theme UI ones. We'll accept dsgen config as json as an input and create color styles from it.
We may create type styles too but Figma's type styles include font, weight size, line height altogether so we'll need to create a style for each combination
It could be beneficial to not only import variables into Figma, but also autochange absolute values to variables (as we do with CSS). E.g. if text node has color #000 we can change it to use style Light/Text/Default
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Another part of the project could be Figma page with color and size variables. We could either sync from config to Figma or read variables from Figma into config. Seems like it could be achived via Figma plugins.
References:
The text was updated successfully, but these errors were encountered: