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
416 stars 30 forks source link

Inconsistency between palettes and schemes in Material Theme (JSON) export #308

Open yvvki opened 6 months ago

yvvki commented 6 months ago

Describe the bug When utilizing the Material Theme (JSON) export, a color palettes will be included after the schemes table. However, these palettes does not match the color token, nor the color in the website.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://material-foundation.github.io/material-theme-builder/
  2. Click on 'Pick your fonts 🡢' and 'Export theme 🡢'
  3. Export as 'Material Theme (JSON)'
  4. Open 'material-theme.json'

Expected behavior The value of $.schemes.primary should be the same as $.palettes.primary['40'].

Additional details The bug is also prevalent in the Figma community plugin

tipa commented 5 months ago

After I found out that the generated color roles are off (see https://github.com/material-foundation/material-theme-builder/issues/313), I hoped to create them by myself using the JSON palettes - but now they are wrong as well...

Edit: it appears as if the color palette in the JSON are the same, no matter if the "Color match" option is ticked or not