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
363 stars 28 forks source link

Container Color mappings don't exist #82

Closed PrattiDev closed 1 year ago

PrattiDev commented 1 year ago

Describe the bug Ever since the new update, Container colors don't map to any reference color token. This happens with every dominant color, and seems to a process that is done after the colors are generated, and thus, the color it was mapped to no longer matches.

To Reproduce Steps to reproduce the behavior:

  1. Open any file, or a blank file.
  2. Generate the tokens using the plugin.
  3. Check if Secondary Container matches Secondary 95, 90, or 80.
  4. It will be desaturated in comparison.

Expected behavior Container colors should map to their corresponding static value, or the plugin should apply the desaturation process to the generated colors so they can match.

Screenshots Wrong color

Desktop (please complete the following information):