Compare commits

...

2 Commits

Author SHA1 Message Date
Zynh0722 2900e41ced accurate ui tags 2023-12-27 15:36:39 -08:00
Zynh0722 696e480794 kill console.log 2023-12-27 15:36:30 -08:00
2 changed files with 2 additions and 17 deletions

View File

@ -29,7 +29,7 @@ Note: This section is out of date, you must compile the themes yourself
```
[ui]
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
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
```
<!-- AUTOGEN:INI END -->

View File

@ -10,21 +10,6 @@ function isUpperCase(str: string) {
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) => `
${Object.keys(rp.roleColors)
.map(
@ -104,7 +89,7 @@ const newcontent = updateReadme({
\`\`\`
[ui]
THEMES = ${flavors
.map((f) => accents.map((a) => `rp-${f}-${a}`).join(","))
.map((f) => accents.map((a) => `rose-pine-${f}-${a}`).join(","))
.join(",")}
\`\`\`
`,