build: update catppuccin

This commit is contained in:
Daylin Morgan 2024-02-20 04:28:20 -06:00
parent 86c5c0a786
commit aa84013c22
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
3 changed files with 1025 additions and 430 deletions

View file

@ -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"
}
}

File diff suppressed because it is too large Load diff

View file

@ -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;