-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option for exporting palettes #116
Comments
Would you like them to be added to the dump_json flag? |
That sounds ideal, yes |
Is this something you had in mind? The order of them is random for some reason. {
"colors":{
"dark":{
"background":"#1a120d",
"blue":"#bec2ff",
"blue_container":"#3e4278",
"blue_source":"#0000ff",
"blue_value":"#0000ff",
"error":"#ffb4ab",
"error_container":"#93000a",
"green":"#b7d085",
"green_container":"#3a4d10",
"green_source":"#00ff00",
"green_value":"#00ff00",
"inverse_on_surface":"#382e29",
"inverse_primary":"#8c4f27",
"inverse_surface":"#f0dfd7",
"on_background":"#f0dfd7",
"on_blue":"#272b60",
"on_blue_container":"#e0e0ff",
"on_error":"#690005",
"on_error_container":"#ffdad6",
"on_green":"#253600",
"on_green_container":"#d3ec9e",
"on_primary":"#532200",
"on_primary_container":"#ffdbc9",
"on_primary_fixed":"#321200",
"on_primary_fixed_variant":"#6f3812",
"on_red":"#55200a",
"on_red_container":"#ffdbcf",
"on_secondary":"#432b1d",
"on_secondary_container":"#ffdbc9",
"on_secondary_fixed":"#2b160a",
"on_secondary_fixed_variant":"#5c4131",
"on_surface":"#f0dfd7",
"on_surface_variant":"#d7c2b8",
"on_tertiary":"#333208",
"on_tertiary_container":"#e9e5ab",
"on_tertiary_fixed":"#1e1d00",
"on_tertiary_fixed_variant":"#4a481d",
"outline":"#9f8d84",
"outline_variant":"#52443c",
"primary":"#ffb68c",
"primary_container":"#6f3812",
"primary_fixed":"#ffdbc9",
"primary_fixed_dim":"#ffb68c",
"red":"#ffb59b",
"red_container":"#72351e",
"red_source":"#ff0000",
"red_value":"#ff0000",
"scrim":"#000000",
"secondary":"#e5bfaa",
"secondary_container":"#5c4131",
"secondary_fixed":"#ffdbc9",
"secondary_fixed_dim":"#e5bfaa",
"shadow":"#000000",
"surface":"#1a120d",
"surface_bright":"#413732",
"surface_container":"#271e19",
"surface_container_high":"#312823",
"surface_container_highest":"#3d332d",
"surface_container_low":"#221a15",
"surface_container_lowest":"#140d08",
"surface_dim":"#1a120d",
"surface_tint":"#ffb68c",
"surface_variant":"#52443c",
"tertiary":"#ccc992",
"tertiary_container":"#4a481d",
"tertiary_fixed":"#e9e5ab",
"tertiary_fixed_dim":"#ccc992"
},
"light":{
"background":"#fff8f5",
"blue":"#555992",
"blue_container":"#e0e0ff",
"blue_source":"#0000ff",
"blue_value":"#0000ff",
"error":"#ba1a1a",
"error_container":"#ffdad6",
"green":"#516527",
"green_container":"#d3ec9e",
"green_source":"#00ff00",
"green_value":"#00ff00",
"inverse_on_surface":"#ffede5",
"inverse_primary":"#ffb68c",
"inverse_surface":"#382e29",
"on_background":"#221a15",
"on_blue":"#ffffff",
"on_blue_container":"#11144b",
"on_error":"#ffffff",
"on_error_container":"#410002",
"on_green":"#ffffff",
"on_green_container":"#141f00",
"on_primary":"#ffffff",
"on_primary_container":"#321200",
"on_primary_fixed":"#321200",
"on_primary_fixed_variant":"#6f3812",
"on_red":"#ffffff",
"on_red_container":"#380d00",
"on_secondary":"#ffffff",
"on_secondary_container":"#2b160a",
"on_secondary_fixed":"#2b160a",
"on_secondary_fixed_variant":"#5c4131",
"on_surface":"#221a15",
"on_surface_variant":"#52443c",
"on_tertiary":"#ffffff",
"on_tertiary_container":"#1e1d00",
"on_tertiary_fixed":"#1e1d00",
"on_tertiary_fixed_variant":"#4a481d",
"outline":"#85746b",
"outline_variant":"#d7c2b8",
"primary":"#8c4f27",
"primary_container":"#ffdbc9",
"primary_fixed":"#ffdbc9",
"primary_fixed_dim":"#ffb68c",
"red":"#8f4c33",
"red_container":"#ffdbcf",
"red_source":"#ff0000",
"red_value":"#ff0000",
"scrim":"#000000",
"secondary":"#765847",
"secondary_container":"#ffdbc9",
"secondary_fixed":"#ffdbc9",
"secondary_fixed_dim":"#e5bfaa",
"shadow":"#000000",
"source_color":"#ffbf9b",
"surface":"#fff8f5",
"surface_bright":"#fff8f5",
"surface_container":"#fceae2",
"surface_container_high":"#f6e5dd",
"surface_container_highest":"#f0dfd7",
"surface_container_low":"#fff1eb",
"surface_container_lowest":"#ffffff",
"surface_dim":"#e7d7cf",
"surface_tint":"#8c4f27",
"surface_variant":"#f4ded4",
"tertiary":"#626033",
"tertiary_container":"#e9e5ab",
"tertiary_fixed":"#e9e5ab",
"tertiary_fixed_dim":"#ccc992"
}
},
"palettes":{
"error":{
"0":"#000000",
"10":"#410002",
"100":"#ffffff",
"15":"#540003",
"20":"#690005",
"25":"#7e0007",
"30":"#93000a",
"35":"#a80710",
"40":"#ba1a1a",
"45":"#cc2925",
"5":"#2d0001",
"50":"#de3730",
"55":"#f0443b",
"60":"#ff5449",
"65":"#ff7164",
"70":"#ff897d",
"75":"#ff9f94",
"80":"#ffb4ab",
"85":"#ffc7c0",
"90":"#ffdad6",
"95":"#ffedea"
},
"neutral":{
"0":"#000000",
"10":"#201a17",
"100":"#ffffff",
"15":"#2b2421",
"20":"#362f2c",
"25":"#413a36",
"30":"#4d4541",
"35":"#59514d",
"40":"#655d59",
"45":"#726965",
"5":"#15100d",
"50":"#7e7571",
"55":"#8b827d",
"60":"#998f8a",
"65":"#a69c97",
"70":"#b4a9a4",
"75":"#c2b6b2",
"80":"#d0c4bf",
"85":"#ded2cd",
"90":"#ece0db",
"95":"#fbeee9"
},
"neutral_variant":{
"0":"#000000",
"10":"#241913",
"100":"#ffffff",
"15":"#2f231d",
"20":"#3b2e27",
"25":"#463931",
"30":"#52443c",
"35":"#5e4f47",
"40":"#6b5b53",
"45":"#78675f",
"5":"#190f09",
"50":"#85746b",
"55":"#928077",
"60":"#9f8d84",
"65":"#ad9a91",
"70":"#bba79e",
"75":"#c9b5ab",
"80":"#d7c2b8",
"85":"#e5d0c6",
"90":"#f4ded4",
"95":"#ffede5"
},
"primary":{
"0":"#000000",
"10":"#321200",
"100":"#ffffff",
"15":"#421a00",
"20":"#532200",
"25":"#642b00",
"30":"#753400",
"35":"#873d01",
"40":"#97480e",
"45":"#a6541b",
"5":"#220a00",
"50":"#b66026",
"55":"#c56c32",
"60":"#d5793d",
"65":"#e58549",
"70":"#f59254",
"75":"#ffa26a",
"80":"#ffb68c",
"85":"#ffc9ab",
"90":"#ffdbc9",
"95":"#ffede5"
},
"secondary":{
"0":"#000000",
"10":"#2b160a",
"100":"#ffffff",
"15":"#372013",
"20":"#432b1d",
"25":"#4f3627",
"30":"#5c4131",
"35":"#694c3c",
"40":"#765847",
"45":"#836453",
"5":"#1f0c03",
"50":"#90705e",
"55":"#9e7d6a",
"60":"#ac8977",
"65":"#ba9683",
"70":"#c8a490",
"75":"#d7b19d",
"80":"#e5bfaa",
"85":"#f4ccb7",
"90":"#ffdbc9",
"95":"#ffede5"
},
"tertiary":{
"0":"#000000",
"10":"#1e1d00",
"100":"#ffffff",
"15":"#282701",
"20":"#333208",
"25":"#3e3d13",
"30":"#4a481d",
"35":"#565428",
"40":"#626033",
"45":"#6f6d3e",
"5":"#121200",
"50":"#7b7949",
"55":"#888654",
"60":"#969360",
"65":"#a3a06c",
"70":"#b1ae78",
"75":"#bebb85",
"80":"#ccc992",
"85":"#dbd79e",
"90":"#e9e5ab",
"95":"#f7f3b9"
}
}
} |
I plan to add all of these into the normal templates later when the engine is reworked, right now its so bad it would take a lot of memory to store them. |
Oh yeah that looks perfect. I think it's just order alphabetically for some reason.. |
Actually one thing, I'm going off of the material theme builder's export but it looks like it exports the tones at |
Ill have what you wrote as default, but add a config option to select the ones as you need. |
I'll add the config option later |
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:
The text was updated successfully, but these errors were encountered: