edelstone / material-palette-generator

🎨 Get perfect Material Design palettes from any hex color.
https://materialpalettes.com
212 stars 25 forks source link

Sometimes, the color code that I input is not consistent with the color code that generated the display #10

Open PicarWang opened 3 years ago

PicarWang commented 3 years ago

For example, when I input "d21f3e", the color value displayed in the palette is "d21f3d"

edelstone commented 3 years ago

Interesting, I see that now. This is Google's official color system and I'm really just borrowing their giant Javascript file in order to make this site, so I'm hesitant to try to make changes to that. But I will leave this issue open in case others want to comment.

vkottler commented 3 years ago

Yeah @PicarWang that's the same behavior if you use the Google-hosted app, I've been trying to pick apart the algorithm(s) in general to understand what they're doing. Thanks to this project I grabbed the source and un-minified it, hoping to get some Python that can generate color palettes in the "Material Design" style (talking to myself here: https://github.com/vkottler/svgen/issues/6).