material-theme-builder
material-theme-builder copied to clipboard
MTB generates 'universally disliked' primary color for some inputs
Describe the bug
Using the Material3 Theme builder, the generated primary color is sometimes "universally disliked" according to the Material Color Utilities DislikeAnalyzer.
To Reproduce Steps to reproduce the behavior:
- Go to either Material3 Theme Builder or Material Theme Builder
- Click on the 'Custom' tab and then 'Core Colors -> Primary'
- Enter
#ffcd17which is approxHCT(91.74, 60.87, 84.48) - Observe generated primary color for Light scheme is
#745b00which is approxHCT(91.27, 38.37, 39.91) - According to the Dislike Analyzer, colors which have Hue between 90 and 110, Chroma above 16, and Tone below 65 are "Universally disliked" (I too dislike it) and should be avoided. But the generated primary color is clearly in this region.
Expected behavior The generated primary color is not "universally disliked" and ideally closer to the color that I entered.
Screenshots
Desktop (please complete the following information):
- OS: Linux
- Browser: Chrome 121, Firefox 121
Additional context It looks like the theme builder does a fixed transform on the entered color's chroma and tone, which for hues between 90 and 110, puts it into the 'disliked color' category. This should be fixed in order to better support primary hues between 90 and 110.