-
Notifications
You must be signed in to change notification settings - Fork 0
/
panda.config.ts
145 lines (144 loc) · 4.92 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
import { defineConfig } from "@pandacss/dev";
import { kbd } from "~/recipes/kbd";
import { footer } from "~/recipes/footer";
import { main } from "~/recipes/main";
import { code } from "~/recipes/code";
import { link } from "~/recipes/link";
import { spinner } from "~/recipes/spinner";
import { iconButton } from "~/recipes/icon-button";
import { inputGroup } from "~/recipes/input-group";
import { header } from "~/recipes/header";
import { buttonLink } from "~/recipes/button-link";
export default defineConfig({
preflight: true,
include: ["./src/**/*.{js,jsx,ts,tsx}", "./pages/**/*.{js,jsx,ts,tsx}"],
exclude: [],
conditions: {
light: "[data-color-mode=light] &",
dark: "[data-color-mode=dark] &",
},
theme: {
extend: {
keyframes: {
spin: {
"0%": {
transform: "rotate(0deg)",
},
"100%": {
transform: "rotate(360deg)",
},
},
},
recipes: {
buttonLink,
code,
footer,
header,
iconButton,
inputGroup,
kbd,
link,
main,
spinner,
},
layerStyles: {
badge: {
value: {
_light: {
backgroundColor: "slate.100",
color: "slate.600",
borderColor: "slate.200",
},
_dark: {
backgroundColor: "slate.900",
color: "slate.300",
borderColor: "slate.800",
},
},
},
"badge-critical": {
value: {
_light: {
backgroundColor: "rose.600",
color: "rose.50",
borderColor: "rose.700",
},
_dark: {
backgroundColor: "rose.500",
color: "rose.950",
borderColor: "rose.400",
},
},
},
"badge-warning": {
value: {
_light: {
backgroundColor: "yellow.300",
color: "yellow.950",
borderColor: "yellow.400",
},
_dark: {
backgroundColor: "yellow.800",
color: "yellow.50",
borderColor: "yellow.700",
},
},
},
},
semanticTokens: {
colors: {
"text-slate": {
value: {
_light: "{colors.slate.600}",
_dark: "{colors.slate.400}",
},
},
"text-green": {
value: {
_light: "{colors.emerald.600}",
_dark: "{colors.emerald.300}",
},
},
"text-red": {
value: {
_light: "{colors.rose.600}",
_dark: "{colors.rose.300}",
},
},
"text-yellow": {
value: {
_light: "{colors.yellow.700}",
_dark: "{colors.yellow.600}",
},
},
"kbd-bg": {
value: {
_light: "{colors.slate.100}",
_dark: "{colors.slate.900}",
},
},
"kbd-fg": {
value: {
_light: "{colors.slate.600}",
_dark: "{colors.slate.300}",
},
},
"kbd-border": {
value: {
_light: "{colors.slate.200}",
_dark: "{colors.slate.800}",
},
},
},
},
tokens: {
fonts: {
mono: { value: "var(--font-mono), Melno, monospace" },
},
},
},
},
presets: ["@pandacss/dev/presets", "@park-ui/presets"],
jsxFramework: "react",
outdir: "./src/styled-system",
});