-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanda.config.ts
80 lines (76 loc) · 2.23 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
import { defineConfig } from '@pandacss/dev'
import { textStyles } from './src/theme/textStyles'
import { keyframes } from './src/theme/keyframes'
export default defineConfig({
// Whether to use css reset
preflight: false,
// Where to look for your css declarations
include: [
'./src/atoms/**/*.{ts,tsx,js,jsx}',
'./src/components/**/*.{ts,tsx,js,jsx}',
'./src/app/**/*.{ts,tsx,js,jsx}',
],
exclude: [],
conditions: {
extend: {
projectHighlightCard: '&:is(.projectHighlightCard)',
projectHighlightCardAncestor: '.projectHighlightCard &',
projectHighlightCardHoverAncestor: '.projectHighlightCard:hover &',
navIsOpen: '&:is([data-nav-is-open="true"], [data-nav-is-open="true"] &)',
}
},
theme: {
breakpoints: {
sm: '420px',
md: '768px',
lg: '1024px',
xl: '1280px',
},
tokens: {
fonts: {
mulish: { value: 'var(--mulish), system-ui, sans-serif' },
tinos: { value: 'var(--tinos), serif' },
},
colors: {
'bg-color-primary': { value: '#fff' },
'bg-color-secondary': { value: '#f9f3e7' },
'text-color-logo': { value: '#333' },
'text-color-primary': { value: '#000' },
'text-color-secondary': { value: '#222' },
'text-color-tertiary': { value: '#b7b4b9' },
},
sizes: {
'hero-max-width': { value: '1300px' },
'section-max-width': { value: '1300px' },
},
spacing: {
// padding
'input-padding-base': { value: '10px' },
},
radii: {
sm: { value: '5px' },
md: { value: '10px' },
lg: { value: '16px' },
},
easings: {
swiftDecelerate: { value: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)' },
},
},
semanticTokens: {
sizes: {
'sp-xs': { value: '10px' },
'sp-sm': { value: '20px' },
'sp-md': { value: '32px' },
'sp-lg': { value: '64px' },
'sp-xl': { value: { base: '70px', lg: '140px' } },
},
spacing: {
'section-offset': { value: { base: '44px', md: '84px'} },
}
},
extend: { textStyles, keyframes },
},
jsxFramework: 'react',
// The output directory for your css system
outdir: './src/styled-system',
})