-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpanda.config.ts
More file actions
81 lines (73 loc) Β· 1.7 KB
/
panda.config.ts
File metadata and controls
81 lines (73 loc) Β· 1.7 KB
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
import { defineConfig } from "@pandacss/dev";
import { globalCss } from "./src/styles/globalCss";
import { borderWidths, borders } from "./src/tokens/borders";
import { colors, semanticColors } from "./src/tokens/colors";
import { radii } from "./src/tokens/radii";
import { spacing } from "./src/tokens/spacing";
import {
fontSizes,
fontWeights,
fonts,
letterSpacings,
lineHeights,
textStyles,
} from "./src/tokens/typography";
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: [],
globalCss,
globalVars: {
"--font-pretendard": "Pretendard Variable",
},
staticCss: {
css: [
{
properties: {
textStyle: Object.keys(textStyles),
fontSize: Object.keys(fontSizes),
fontWeight: Object.keys(fontWeights),
gap: Object.keys(spacing || {}),
padding: Object.keys(spacing || {}),
margin: Object.keys(spacing || {}),
},
},
],
},
// Useful for theme customization
theme: {
extend: {
textStyles,
keyframes: {
spin: {
from: {
transform: "rotate(0deg)",
},
to: {
transform: "rotate(360deg)",
},
},
},
tokens: {
borders,
borderWidths,
colors,
fonts,
fontWeights,
fontSizes,
letterSpacings,
lineHeights,
radii,
spacing,
},
semanticTokens: {
colors: semanticColors,
},
},
},
// The output directory for your css system
outdir: "styled-system",
});