Compare commits
No commits in common. "2900e41ceda05540d927e1799d2657a554c28605" and "30637948f75b3cb154a1e336a1cf09db04036416" have entirely different histories.
2900e41ced
...
30637948f7
2 changed files with 17 additions and 2 deletions
|
@ -29,7 +29,7 @@ Note: This section is out of date, you must compile the themes yourself
|
|||
|
||||
```
|
||||
[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 -->
|
||||
|
|
17
build.ts
17
build.ts
|
@ -10,6 +10,21 @@ 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(
|
||||
|
@ -89,7 +104,7 @@ const newcontent = updateReadme({
|
|||
\`\`\`
|
||||
[ui]
|
||||
THEMES = ${flavors
|
||||
.map((f) => accents.map((a) => `rose-pine-${f}-${a}`).join(","))
|
||||
.map((f) => accents.map((a) => `rp-${f}-${a}`).join(","))
|
||||
.join(",")}
|
||||
\`\`\`
|
||||
`,
|
||||
|
|
Loading…
Reference in a new issue