-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Asset tokens #1265
Comments
So we have a slightly different use case: different icons per theme. We want to be able to have different icons in the design system component based on the theme. And use SVGs inside Figma for them (not every product uses FontAwesome). |
So in our case we would have a place in Figma where the SVG icons are defined. And then using asset tokens, we would "point" the Figma token to the icon "element" on that Figma page??? And Figma Tokens would perhaps serialise the icon inside the JSON? |
So we would also like to be able to use FontAwesome icons and custom icons in Figma. Some apps may be either FontAwesome, or all custom icons. And some may even use mostly FontAwesome, but have a few custom icons for specific ones. |
This was shipped as part of V123 🎉 |
Description
Sometimes users want to reference an image to be replaced when switching between brands. As a first start, we should allow them to just point to a URL that we can then fetch.
Background
Applying
Applying this token would have an effect on the
fills
. When applying an asset token we need to fetch the image from the provided source and then apply that as an image fill. If both anasset
and a colorfill
are present, theasset
should win.Related docs: https://www.figma.com/plugin-docs/working-with-images/
The text was updated successfully, but these errors were encountered: