-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanda.config.ts
204 lines (202 loc) · 5.55 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
import { defineConfig } from "@pandacss/dev";
import { createPreset } from "@park-ui/panda-preset";
import amber from "@park-ui/panda-preset/colors/amber";
import blue from "@park-ui/panda-preset/colors/blue";
import bronze from "@park-ui/panda-preset/colors/bronze";
import brown from "@park-ui/panda-preset/colors/brown";
import crimson from "@park-ui/panda-preset/colors/crimson";
import cyan from "@park-ui/panda-preset/colors/cyan";
import gold from "@park-ui/panda-preset/colors/gold";
import grass from "@park-ui/panda-preset/colors/grass";
import green from "@park-ui/panda-preset/colors/green";
import indigo from "@park-ui/panda-preset/colors/indigo";
import iris from "@park-ui/panda-preset/colors/iris";
import jade from "@park-ui/panda-preset/colors/jade";
import lime from "@park-ui/panda-preset/colors/lime";
import mauve from "@park-ui/panda-preset/colors/mauve";
import mint from "@park-ui/panda-preset/colors/mint";
import neutral from "@park-ui/panda-preset/colors/neutral";
import olive from "@park-ui/panda-preset/colors/olive";
import orange from "@park-ui/panda-preset/colors/orange";
import pink from "@park-ui/panda-preset/colors/pink";
import plum from "@park-ui/panda-preset/colors/plum";
import purple from "@park-ui/panda-preset/colors/purple";
import red from "@park-ui/panda-preset/colors/red";
import ruby from "@park-ui/panda-preset/colors/ruby";
import sage from "@park-ui/panda-preset/colors/sage";
import sand from "@park-ui/panda-preset/colors/sand";
import sky from "@park-ui/panda-preset/colors/sky";
import slate from "@park-ui/panda-preset/colors/slate";
import teal from "@park-ui/panda-preset/colors/teal";
import tomato from "@park-ui/panda-preset/colors/tomato";
import violet from "@park-ui/panda-preset/colors/violet";
import yellow from "@park-ui/panda-preset/colors/yellow";
export default defineConfig({
preflight: true,
minify: process.env.NODE_ENV === "production",
presets: [
createPreset({
accentColor: blue,
grayColor: slate,
radius: "sm",
}),
],
include: ["./src/**/*.{js,jsx,ts,tsx}"],
jsxFramework: "solid",
outdir: "styled-system",
patterns: {
extend: {
container: {
transform(props: Record<string, unknown>) {
return {
position: "relative",
width: "100%",
maxW: "8xl",
mx: "auto",
px: { base: "4", md: "8" },
...props,
};
},
},
},
},
globalVars: {
"--font-inter": "Inter Variable",
"--font-roboto-mono": "Roboto Mono Variable",
},
globalCss: {
extend: {
html: {
scrollPaddingTop: "5rem",
scrollBehavior: "smooth",
minHeight: "100%",
// colorPalette: "accent",
},
body: {
display: "flex",
flexDirection: "column",
flexGrow: "1",
fontFamily: "body",
},
pre: {
background: "transparent!",
overflowX: "auto",
fontSize: "13px !important",
},
blockquote: {
fontStyle: "normal!",
fontWeight: "normal!",
},
strong: {
color: "fg.default!",
},
code: {
fontFamily: "code",
"::selection": {
bg: "gray.dark.a4",
},
},
},
},
staticCss: {
recipes: "*",
css: [
{
properties: {
borderLeftColor: ["bg.emphasized"],
borderBottomColor: ["bg.emphasized"],
borderWidth: ["4px"],
boxShadow: ["*"],
color: ["*"],
fontWeight: ["*"],
textStyle: ["*"],
},
},
],
},
theme: {
extend: {
tokens: {
colors: {
amber: amber.tokens,
blue: blue.tokens,
bronze: bronze.tokens,
brown: brown.tokens,
crimson: crimson.tokens,
cyan: cyan.tokens,
gold: gold.tokens,
grass: grass.tokens,
green: green.tokens,
indigo: indigo.tokens,
iris: iris.tokens,
jade: jade.tokens,
lime: lime.tokens,
mauve: mauve.tokens,
mint: mint.tokens,
neutral: neutral.tokens,
olive: olive.tokens,
orange: orange.tokens,
pink: pink.tokens,
plum: plum.tokens,
purple: purple.tokens,
red: red.tokens,
ruby: ruby.tokens,
sage: sage.tokens,
sand: sand.tokens,
sky: sky.tokens,
slate: slate.tokens,
teal: teal.tokens,
tomato: tomato.tokens,
violet: violet.tokens,
yellow: yellow.tokens,
},
fonts: {
inter: { value: "var(--font-inter)" },
robotoMono: { value: "var(--font-roboto-mono)" },
body: { value: "var(--font-inter), sans-serif" },
code: { value: "var(--font-roboto-mono), monospace" },
},
},
semanticTokens: {
colors: {
amber: amber.semanticTokens,
blue: blue.semanticTokens,
bronze: bronze.semanticTokens,
brown: brown.semanticTokens,
crimson: crimson.semanticTokens,
cyan: cyan.semanticTokens,
gold: gold.semanticTokens,
grass: grass.semanticTokens,
green: green.semanticTokens,
indigo: indigo.semanticTokens,
iris: iris.semanticTokens,
jade: jade.semanticTokens,
lime: lime.semanticTokens,
mauve: mauve.semanticTokens,
mint: mint.semanticTokens,
neutral: neutral.semanticTokens,
olive: olive.semanticTokens,
orange: orange.semanticTokens,
pink: pink.semanticTokens,
plum: plum.semanticTokens,
purple: purple.semanticTokens,
red: red.semanticTokens,
ruby: ruby.semanticTokens,
sage: sage.semanticTokens,
sand: sand.semanticTokens,
sky: sky.semanticTokens,
slate: slate.semanticTokens,
teal: teal.semanticTokens,
tomato: tomato.semanticTokens,
violet: violet.semanticTokens,
yellow: yellow.semanticTokens,
},
radii: {
l1: { value: "{radii.xs}" },
l2: { value: "{radii.sm}" },
l3: { value: "{radii.md}" },
},
},
},
},
});