fix
This commit is contained in:
@@ -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))"
|
||||
|
||||
Reference in New Issue
Block a user