material-theme-builder icon indicating copy to clipboard operation
material-theme-builder copied to clipboard

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

Open yvvki opened this issue 1 year ago • 1 comments

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

yvvki avatar May 19 '24 07:05 yvvki

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

tipa avatar Jun 20 '24 06:06 tipa