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
Is your feature request related to a problem? Please describe.
The spec describes an "error" color, but I'd like to add extended colors for other states such as warn(orange), success(green), info(blue), which is a common design trend.
I'd like to take the export json and use in to generate tailwind theme colors. Extended colors however, only export the input value, where as a color like error gets the errorContainer/onErrorContainer/error/onError.
The figma plugin generates them, so it would be nice if they were included as well.
Describe alternatives you've considered
Use the material-color-utilities library to generate them myself, but I'm not sure how to do that as theres almost no documentation on using it.
The text was updated successfully, but these errors were encountered:
I just tried that, but it looks like the exported json file is identical to the figma export where the extended colors do not include the container/on colors or them as a palette (0-100).
Good to see this tool describes which palette color is used, so I could use something to generate the palette and inject my own colors into the theme file in my tailwind plugin for the time being, but would be awesome to have this info in the json files already.
Huh, I use compose and never looked at json. I expected them to have the same tokens, but apparently that's not the case. With json you at least get the ref tokens for primary, secondary, tertiary, surface and surface-variant, that's not the case with compose. See #262
Is your feature request related to a problem? Please describe.
The spec describes an "error" color, but I'd like to add extended colors for other states such as warn(orange), success(green), info(blue), which is a common design trend.
I'd like to take the export json and use in to generate tailwind theme colors. Extended colors however, only export the input value, where as a color like error gets the errorContainer/onErrorContainer/error/onError.
Describe the solution you'd like
I think extended colors should also get these properties as well.
The figma plugin generates them, so it would be nice if they were included as well.
Describe alternatives you've considered
Use the material-color-utilities library to generate them myself, but I'm not sure how to do that as theres almost no documentation on using it.
The text was updated successfully, but these errors were encountered: