fix: only build accent colors, skip text through crust

main
winston 2023-03-26 18:05:15 +02:00
parent b45ffcda64
commit 0362a838df
No known key found for this signature in database
GPG Key ID: 3786770EDBC2B481
1 changed files with 18 additions and 1 deletions

View File

@ -10,8 +10,25 @@ $isDark: ${flavor !== "latte"};
@import "theme"; @import "theme";
`; `;
const accents = [
"rosewater",
"flamingo",
"pink",
"mauve",
"red",
"maroon",
"peach",
"yellow",
"green",
"teal",
"sky",
"sapphire",
"blue",
"lavender",
];
for (const flavor of Object.keys(ctp.variants)) { for (const flavor of Object.keys(ctp.variants)) {
for (const accent of Object.keys(ctp.labels)) { for (const accent of accents) {
const input = builder(flavor, accent); const input = builder(flavor, accent);
const result = sass.compileString(input, { const result = sass.compileString(input, {
loadPaths: [ loadPaths: [