-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanda.config.ts
61 lines (53 loc) Β· 1.15 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
import { defineConfig } from "@pandacss/dev";
import { globalCss } from "./src/styles/globalCss";
import { colors, semanticColors } from "./src/tokens/colors";
import {
textStyles,
fonts,
fontWeights,
fontSizes,
letterSpacings,
lineHeights,
} 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-spoqa": "Spoqa Han Sans Neo",
},
staticCss: {
css: [
{
properties: {
textStyle: Object.keys(textStyles),
fontSize: Object.keys(fontSizes),
fontWeight: Object.keys(fontWeights),
},
},
],
},
// Useful for theme customization
theme: {
extend: {
textStyles,
tokens: {
colors,
fonts,
fontWeights,
fontSizes,
letterSpacings,
lineHeights,
},
semanticTokens: {
colors: semanticColors,
},
},
},
// The output directory for your css system
outdir: "styled-system",
});