InioX / matugen

A material you color generation tool
GNU General Public License v2.0
284 stars 14 forks source link

Use base16 theme as input #88

Open mewoocat opened 2 months ago

mewoocat commented 2 months ago

I was wondering if it would be feasible to implement a base16 theme input to Matugen? I understand that I could create an image palette with the given theme's colors, but being able to input a .json file and get the material colors version of the them would be very nice.

Mikilio commented 1 month ago

Unfortunately, all schemes are generated from a single color. Only one color is extracted from the Image and a scheme is built from it. Bigger changes are necessary for this to work.

InioX commented 1 month ago

That would require forking and modifying the material-colors library. I'm not against making small changes but I don't know about these big ones. I guess if enough people request this then I'll try to add this.

Mikilio commented 1 month ago

I'm not a contributor, but I wanted something like this myself because I use a program that happens to style itself with matugen. A way I can see this kind of functionality happen without making big changes to material-colors is the following approach:

This approach allows augmenting a generated material theme to be augmented with the custom styling decision of a base16 theme.

What do you think @InioX? To be honest I understand if you feel like this it outside of the scope for matugen.