mirror of
https://github.com/daylinmorgan/nimpkgs.git
synced 2024-11-12 14:53:15 -06:00
build: update catppuccin
This commit is contained in:
parent
86c5c0a786
commit
aa84013c22
3 changed files with 1025 additions and 430 deletions
16
package.json
16
package.json
|
@ -11,16 +11,16 @@
|
|||
"author": "Daylin Morgan",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@catppuccin/palette": "^0.2.0",
|
||||
"@iconify-json/mdi": "^1.1.55",
|
||||
"@iconify-json/simple-icons": "^1.1.79",
|
||||
"@catppuccin/palette": "^1.1.0",
|
||||
"@iconify-json/mdi": "^1.1.64",
|
||||
"@iconify-json/simple-icons": "^1.1.92",
|
||||
"@types/promise-fs": "^2.1.5",
|
||||
"@unocss/cli": "^0.57.3",
|
||||
"@unocss/preset-icons": "^0.57.7",
|
||||
"@unocss/reset": "^0.57.3",
|
||||
"@unocss/cli": "^0.58.5",
|
||||
"@unocss/preset-icons": "^0.58.5",
|
||||
"@unocss/reset": "^0.58.5",
|
||||
"concurrently": "^8.2.2",
|
||||
"esbuild": "^0.19.5",
|
||||
"esbuild": "^0.20.1",
|
||||
"http-server": "^14.1.1",
|
||||
"unocss": "^0.57.3"
|
||||
"unocss": "^0.58.5"
|
||||
}
|
||||
}
|
||||
|
|
1433
pnpm-lock.yaml
1433
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
@ -1,16 +1,16 @@
|
|||
import fs from "fs/promises";
|
||||
import { variants } from "@catppuccin/palette";
|
||||
import { flavors } from "@catppuccin/palette";
|
||||
import { defineConfig, presetUno, presetIcons } from "unocss";
|
||||
|
||||
const generatePalette = (): { [key: string]: string } => {
|
||||
const colors: { [key: string]: string } = {};
|
||||
|
||||
Object.keys(variants.mocha).forEach((colorName) => {
|
||||
Object.keys(flavors.mocha.colors).forEach((colorName) => {
|
||||
const sanitizedName = colorName
|
||||
.replace("0", "zero")
|
||||
.replace("1", "one")
|
||||
.replace("2", "two");
|
||||
colors[sanitizedName] = variants.mocha[colorName].hex;
|
||||
colors[sanitizedName] = flavors.mocha.colors[colorName].hex;
|
||||
});
|
||||
|
||||
return colors;
|
||||
|
|
Loading…
Reference in a new issue