InioX / matugen

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

Add option for exporting palettes #116

Open nyadiia opened 1 month ago

nyadiia commented 1 month ago

On the material 3 theme builder site, they also export palettes for 5 common palettes ( primary, secondary, tertiary, neutral, and neutral variant ).

Something along the lines of:

"palettes": {
        "primary": {
            "0": "#000000",
            "5": "#081400",
            "10": "#102000",
            "15": "#172B00",
            "20": "#1F3700",
            "25": "#264300",
            "30": "#2F4F00",
            "35": "#375C00",
            "40": "#3F6900",
            "50": "#518500",
            "60": "#64A104",
            "70": "#7DBD2A",
            "80": "#97D945",
            "90": "#CAEE9C",
            "95": "#D8FDA9",
            "98": "#F0FFD7",
            "99": "#F9FFE9",
            "100": "#FFFFFF"
        },
        "secondary": {
            ...
        },
        "tertiary": {
            ...
        },
        "neutral": {
            ...
        },
        "neutral-variant": {
            ...
        }
    }
InioX commented 1 week ago

Would you like them to be added to the dump_json flag?

nyadiia commented 1 week ago

That sounds ideal, yes