This commit is contained in:
2025-12-28 00:30:09 +02:00
parent 331ff6daf3
commit 6202f842b6
8 changed files with 85 additions and 108 deletions

View File

@@ -1,4 +1,10 @@
import type { Config } from "tailwindcss";
import { flavors } from "@catppuccin/palette";
const ctpColors: Record<string, string> = {};
for (const [name, color] of Object.entries(flavors.mocha.colors)) {
ctpColors[name] = color.hex;
}
export default {
darkMode: "class",
@@ -12,19 +18,7 @@ export default {
colors: {
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
base: "hsl(var(--ctp-base))",
mantle: "hsl(var(--ctp-mantle))",
crust: "hsl(var(--ctp-crust))",
text: "hsl(var(--ctp-text))",
subtext0: "hsl(var(--ctp-subtext0))",
subtext1: "hsl(var(--ctp-subtext1))",
surface0: "hsl(var(--ctp-surface0))",
surface1: "hsl(var(--ctp-surface1))",
surface2: "hsl(var(--ctp-surface2))",
blue: "hsl(var(--ctp-blue))",
green: "hsl(var(--ctp-green))",
yellow: "hsl(var(--ctp-yellow))",
red: "hsl(var(--ctp-red))",
...ctpColors,
card: {
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))"