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

How to get the base color from the tone palette. #140

Closed Velkamhell97 closed 6 months ago

Velkamhell97 commented 1 year ago

In some cases we have an existing design and we want to adapt the theme to the material guides. It is easy to identify the primary color of the design, but how can I get the base color used to create the tone palette, since the primary color for example is the base color with tone value of 40. Is it possible to get the base color from the tone palette?

Thank you very much.

margeeta commented 1 year ago

Hi there, thank you for the question. The Material theme builder will automatically generate a color scheme from the Primary color input's hue, so no need to extract the colors yourself to create tonal palettes or the color scheme.

jingjingfan commented 8 months ago

Hello - a follow up question to the generated tonal palette. Is there a way to have it also be exported as variables? i.e. primary10, blue10?