-
Notifications
You must be signed in to change notification settings - Fork 0
/
panda.config.ts
97 lines (86 loc) · 1.67 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
import {
defineConfig,
defineTextStyles,
defineGlobalStyles,
} from "@pandacss/dev";
const globalCss = defineGlobalStyles({
"html, body": {
scrollbarGutter: "stable",
fontFamily: "body",
},
});
const textStyles = defineTextStyles({
heading1: {
value: {
fontSize: "2.75rem",
fontFamily: "title",
lineHeight: "140%",
fontWeight: "bold",
},
},
heading2: {
value: {
fontSize: "2.5rem",
fontFamily: "title",
lineHeight: "140%",
fontWeight: "bold",
},
},
heading3: {
value: {
fontSize: "2.25rem",
fontFamily: "title",
lineHeight: "140%",
},
},
heading4: {
value: {
fontSize: "2rem",
fontFamily: "title",
lineHeight: "140%",
},
},
body: {
value: {
fontFamily: "body",
fontSize: "1.125rem",
lineHeight: "150%",
},
},
label: {
value: {
fontFamily: "body",
fontSize: "0.75rem",
lineHeight: "150%",
},
},
});
export default defineConfig({
// Whether to use css reset
preflight: true,
// Where to look for your css declarations
include: ["./src/**/*.{ts,tsx,html,astro,md,mdx}"],
// Files to exclude
exclude: [],
globalCss,
// Useful for theme customization
theme: {
extend: {
textStyles,
tokens: {
sizes: {
contentWidth: {
value: "1200px",
description: "Max width of the content",
},
},
fonts: {
body: { value: "var(--font-body)" },
title: { value: "var(--font-title)" },
},
},
},
},
// The output directory for your css system
outdir: "styled-system",
});