-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanda.config.ts
84 lines (77 loc) · 2.21 KB
/
panda.config.ts
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import { defineConfig } from "@pandacss/dev";
import pandaPreset from "@pandacss/preset-panda";
import pandaAnimate from "pandacss-animate";
import { globalCss } from "@/styles/global";
export default defineConfig({
// Whether to use css reset
preflight: true,
// Where to look for your css declarations
include: ["./src/**/*.{js,jsx,ts,tsx}"],
// Files to exclude
exclude: [],
// Useful for theme customization
theme: {
extend: {
tokens: {
colors: {
"wkb-neutral": {
0: { value: "#FFFFFF" },
100: { value: "#F7F7F7" },
300: { value: "#757575" },
700: { value: "#2C2C2C" },
900: { value: "#1E1E1E" },
},
"wkb-brown": { value: "#462D25" },
"wkb-green": { value: "#83C024" },
"wkb-orange": { value: "#F49D22" },
},
fonts: {
sans: {
value: "'Inter Variable', 'Noto Sans JP Variable', sans-serif",
},
mono: { value: "'JetBrains Mono Variable', monospace" },
},
zIndex: {
header: { value: 10 },
modal: { value: 100 },
modalContent: { value: 110 },
},
},
semanticTokens: {
colors: {
"wkb.primary": { value: "{colors.wkb-green}" },
"wkb.secondary": { value: "{colors.wkb-orange}" },
"wkb.text": { value: "{colors.wkb-neutral.900}" },
"wkb.text-variant": { value: "{colors.wkb-neutral.300}" },
"wkb.bg": { value: "{colors.wkb-neutral.100}" },
"wkb.bg-overlay": { value: "{colors.wkb-neutral.0}" },
"wkb.on-bg": { value: "{colors.wkb-neutral.700}" },
},
},
keyframes: {
fadeIn: {
"0%": {
opacity: "0",
},
"100%": {
opacity: "1",
},
},
fadeOut: {
"0%": {
opacity: "1",
},
"100%": {
opacity: "0",
},
},
},
},
},
globalCss,
// @ts-expect-error `pandaPreset` がなぜか型が合わない
presets: [pandaPreset, pandaAnimate],
// The output directory for your css system
outdir: "panda",
jsxFramework: "react",
});