material-foundation / material-theme-builder

Visualize dynamic color and create a custom Material Theme.
https://material-foundation.github.io/material-theme-builder/
Apache License 2.0
362 stars 28 forks source link

Plugin no longer creates `source` image color style #142

Closed PrattiDev closed 6 months ago

PrattiDev commented 1 year ago

In the latest update, the plugin will no longer generate the image color style that the theme color is based off of.

This was important because it allowed you to sync Android components and system screens with your app mockups, if you needed to integrate them in some way.

Please bring it back!

Thank you.

margeeta commented 1 year ago

Thanks! I also miss and loved the image style feature, but it was causing issues. I'll record the request, hopefully we can bring it back one day!

margeeta commented 6 months ago

So… this is possible again, the plugin will convert non Material styles into a theme friendly style when selected and click the swap icon. Screenshot 2023-12-20 at 2 36 26 PM

Also works with gradients :)

PrattiDev commented 6 months ago

@margeeta Could you explain a little how it works? The original post was about how the plugin would generate a wallpaper if one was used to generate dynamic colors. The plugin doesn't seem to actually do this.

margeeta commented 6 months ago

The plugin can create static styles and add to the generated theme to match the Material token formatting, so if you have an image you are using to generate colors from, it can still be included. More of a work around to the previous feature removal, to tie an image to a theme, I use it to add the source image into the themes.