-
Notifications
You must be signed in to change notification settings - Fork 0
/
panda.config.mjs
49 lines (48 loc) · 1.2 KB
/
panda.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { flavors } from "@catppuccin/palette";
import { defineConfig } from "@pandacss/dev";
export default defineConfig({
eject: true,
// preflight: true,
minify: true,
hash: { "cssVar": false, "className": true },
include: ["./src/**/*.{js,jsx,ts,tsx}"],
exclude: ["./public"],
theme: {
extend: {
tokens: {
colors: {
"macchiato-base": { value: flavors.macchiato.colors.base.hex },
"macchiato-text": { value: flavors.macchiato.colors.text.hex },
...Object.fromEntries(
flavors.latte.colorEntries.map((
[colorName, { hex }],
) => [colorName, { value: hex }]),
),
},
gradients: {
primary: {
value: {
type: "linear",
placement: "120deg",
stops: [
"var(--colors-lavender)",
"var(--colors-pink)",
],
},
},
},
},
},
},
outdir: "./src/styled-system",
forceConsistentTypeExtension: true,
syntax: "template-literal",
jsxFramework: "preact",
lightningcss: true,
globalCss: {
"html, body": {
"margin": 0,
"padding": 0,
},
},
});