Compare commits
2 Commits
30637948f7
...
2900e41ced
Author | SHA1 | Date |
---|---|---|
Zynh0722 | 2900e41ced | |
Zynh0722 | 696e480794 |
|
@ -29,7 +29,7 @@ Note: This section is out of date, you must compile the themes yourself
|
||||||
|
|
||||||
```
|
```
|
||||||
[ui]
|
[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 -->
|
<!-- AUTOGEN:INI END -->
|
||||||
|
|
17
build.ts
17
build.ts
|
@ -10,21 +10,6 @@ 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(
|
||||||
|
@ -104,7 +89,7 @@ const newcontent = updateReadme({
|
||||||
\`\`\`
|
\`\`\`
|
||||||
[ui]
|
[ui]
|
||||||
THEMES = ${flavors
|
THEMES = ${flavors
|
||||||
.map((f) => accents.map((a) => `rp-${f}-${a}`).join(","))
|
.map((f) => accents.map((a) => `rose-pine-${f}-${a}`).join(","))
|
||||||
.join(",")}
|
.join(",")}
|
||||||
\`\`\`
|
\`\`\`
|
||||||
`,
|
`,
|
||||||
|
|
Loading…
Reference in New Issue