Compare commits

..

No commits in common. "2900e41ceda05540d927e1799d2657a554c28605" and "30637948f75b3cb154a1e336a1cf09db04036416" have entirely different histories.

2 changed files with 17 additions and 2 deletions

View File

@ -29,7 +29,7 @@ Note: This section is out of date, you must compile the themes yourself
``` ```
[ui] [ui]
THEMES = rose-pine-main-love,rose-pine-main-gold,rose-pine-main-rose,rose-pine-main-pine,rose-pine-main-foam,rose-pine-main-iris,rose-pine-moon-love,rose-pine-moon-gold,rose-pine-moon-rose,rose-pine-moon-pine,rose-pine-moon-foam,rose-pine-moon-iris,rose-pine-dawn-love,rose-pine-dawn-gold,rose-pine-dawn-rose,rose-pine-dawn-pine,rose-pine-dawn-foam,rose-pine-dawn-iris THEMES = rp-main-love,rp-main-gold,rp-main-rose,rp-main-pine,rp-main-foam,rp-main-iris,rp-moon-love,rp-moon-gold,rp-moon-rose,rp-moon-pine,rp-moon-foam,rp-moon-iris,rp-dawn-love,rp-dawn-gold,rp-dawn-rose,rp-dawn-pine,rp-dawn-foam,rp-dawn-iris
``` ```
<!-- AUTOGEN:INI END --> <!-- AUTOGEN:INI END -->

View File

@ -10,6 +10,21 @@ function isUpperCase(str: string) {
return str !== str.toLowerCase() && str === str.toUpperCase(); return str !== str.toLowerCase() && str === str.toUpperCase();
} }
console.log(`
${Object.keys(rp.roleColors)
.map(
(color) =>
`$${color
.split("")
.map((c) => (isUpperCase(c) ? "-" + c.toLowerCase() : c))
.join("")}: #${
/* @ts-ignore I hate typescript */
rp.roleColors[color]["main"].hex
};`,
)
.join("\n")}
`);
const builder = (flavor: Flavor, accent: string) => ` const builder = (flavor: Flavor, accent: string) => `
${Object.keys(rp.roleColors) ${Object.keys(rp.roleColors)
.map( .map(
@ -89,7 +104,7 @@ const newcontent = updateReadme({
\`\`\` \`\`\`
[ui] [ui]
THEMES = ${flavors THEMES = ${flavors
.map((f) => accents.map((a) => `rose-pine-${f}-${a}`).join(",")) .map((f) => accents.map((a) => `rp-${f}-${a}`).join(","))
.join(",")} .join(",")}
\`\`\` \`\`\`
`, `,