-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpanda.config.ts
168 lines (160 loc) · 3.57 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
import { defineConfig } from '@pandacss/dev'
const theme = {
tokens: {
colors: {
white: { value: '#fcfcfc' },
black: { value: '#171717' },
gray: { value: '#e5e5e5' },
dark: { value: '#262626' },
blackgray: { value: '#737373' },
lightdark: { value: '#a3a3a3' },
primarylight: { value: '#e20f60' },
primarydark: { value: '#f68da7' },
},
},
semanticTokens: {
colors: {
bg: {
value: { base: '{colors.white}', _dark: '{colors.black}' },
description: 'Background color',
},
bgSecond: {
value: { base: '{colors.gray}', _dark: '{colors.dark}' },
description: 'Alternate background color',
},
text: {
value: { base: '{colors.black}', _dark: '{colors.white}' },
description: 'Text color',
},
textSecond: {
value: { base: '{colors.blackgray}', _dark: '{colors.lightdark}' },
description: 'Alternate background color',
},
primary: {
value: { base: '{colors.primarylight}', _dark: '{colors.primarydark}' },
description: 'Primary color',
},
},
},
extends: {
keyframes: {
spin: {
to: { transform: 'rotate(360deg)' },
},
},
},
}
const globalCss = {
'h1': {
'font-size': '1.8rem',
'font-weight': '700',
'margin': '36px 0 18px',
'line-height': '1.5',
},
'h2': {
'font-size': '1.4rem',
'font-weight': '700',
'margin': '60px 0 20px',
'position': 'relative',
'padding-left': '40px',
'&::before': {
'content': '"##"',
'position': 'absolute',
'left': '0',
'color': 'primary',
'font-weight': '900',
}
},
'h3': {
'font-size': '1.2rem',
'font-weight': '700',
'margin': '40px 0 20px',
},
'h4': {
'font-size': '1.1rem',
'font-weight': '700',
'margin': '16px 0 10px',
},
'h5': {
'font-size': '1rem',
'font-weight': '700',
'margin': '8px 0 6px',
},
'p': {
'font-size': '0.95rem',
'line-height': '1.7',
'margin': '0 0 20px',
},
'a': {
'color': 'primary',
'font-weight': '700',
'text-decoration': 'none',
'&:hover': {
'text-decoration': 'underline',
}
},
'pre': {
'margin': '16px 0',
'padding': '16px',
'border-radius': '6px',
'max-width': '100%',
'code': {
'padding': '0',
}
},
'hr': {
'margin': '16px 0'
},
'code' : {
'font-family': `Consolas, 'Courier New', Courier, Monaco, monospace`,
'font-size': '0.9rem',
'padding': '2px 4px',
'border-radius': '4px',
'background-color': '#24292e',
'color': '#e1e4e8'
},
'blockquote': {
'margin': '-8px 0 8px',
'padding': '4px 16px',
'border-left': '4px solid #7d8590',
'color': '#7d8590',
'p': {
'margin': '0',
'padding': '0 0 0 16px',
}
},
'ul': {
'padding-left': '25px',
'line-height': '1.8',
'list-style-type': 'disc',
'ul': {
'list-style-type': 'circle',
'ul': {
'list-style-type': 'square',
'ul': {
'list-style-type': 'circle'
}
}
}
},
'ol': {
'padding-left': '25px',
'list-style-type': 'decimal'
},
}
export default defineConfig({
// Whether to use css reset
preflight: true,
// Where to look for your css declarations
include: [
'./src/**/*.{js,jsx,ts,tsx,astro}',
'./pages/**/*.{js,jsx,ts,tsx,astro}',
],
// Files to exclude
exclude: [],
// Useful for theme customization
theme: theme,
// The output directory for your css system
outdir: 'styled-system',
globalCss: globalCss,
})