-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanda.config.ts
41 lines (39 loc) · 928 Bytes
/
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
import { defineConfig } from "@pandacss/dev";
import { removeUnusedKeyframes } from "./removeUnusedKeyframse";
import { removeUnusedCssVars } from "./removeUnusedvars";
import { tokens } from "~/styles/tokens";
import { globalCss } from "~/styles/globalCss";
export default defineConfig({
browserslist: ["defaults and > 0.3%"],
clean: true,
conditions: {
extend: {
supportsAlternativeTextAfter: "@supports (content: \"a\" / \"b\")",
},
},
exclude: [],
globalCss,
hash: true,
hooks: {
"cssgen:done": ({ artifact, content }) => {
if (artifact === "styles.css")
return removeUnusedCssVars(removeUnusedKeyframes(content));
},
},
include: ["./src/**/*.tsx"],
jsxFramework: "qwik",
lightningcss: true,
minify: true,
outdir: "src/styled-system",
preflight: true,
strictPropertyValues: true,
strictTokens: true,
theme: {
extend: {
breakpoints: {
md: "768px",
},
tokens,
},
},
});