-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanda.config.ts
74 lines (69 loc) · 1.77 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
import { defineConfig } from '@pandacss/dev'
import { accordionRecipe, buttonRecipe, textareaRecipe, screenWrapperRecipe } from './src/lib/recipe/index'
import { semanticTokens } from './src/lib/semantic-tokens'
export default defineConfig({
// Whether to use css reset
preflight: true,
// Where to look for your css declarations
include: ['./src/**/*.{js,jsx,ts,tsx}', './pages/**/*.{js,jsx,ts,tsx}'],
// Files to exclude
exclude: [],
// Useful for theme customization
theme: {
extend: {
recipes: {
button: buttonRecipe,
screenWrapper: screenWrapperRecipe,
textarea: textareaRecipe
},
slotRecipes: {
accordion: accordionRecipe
},
tokens: {
fonts: {
pretendard: { value: 'var(--font-pretendard), sans-serif' },
montserrat: { value: 'var(--font-montserrat), sans-serif' }
}
},
textStyles: {
heading3_M: {
value: {
fontSize: 20,
fontWeight: '600',
lineHeight: 'normal'
}
}
},
breakpoints: {
XL: '2560px',
L: '1440px',
M: '1024px',
S: '768px',
XS: '375px'
}
},
keyframes: {
'accordion-down': {
from: { height: '-10' },
to: { height: 'var(--radix-accordion-content-height)' }
},
'accordion-up': {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: '0' }
},
spin: {
from: { transform: 'rotate(0deg)' },
to: { transform: 'rotate(360deg)' }
}
},
semanticTokens
},
globalCss: {
body: {
fontFamily: 'pretendard'
}
},
jsxFramework: 'react',
// The output directory for your css system
outdir: 'styled-system'
})