-
Notifications
You must be signed in to change notification settings - Fork 0
/
panda.config.ts
71 lines (67 loc) · 1.76 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
import { defineConfig } from '@pandacss/dev';
import { textStyles } from './src/theme/textStyles';
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: {
invalid: '&.invalid',
focusNotTouched: '&:focus:not(.touched)',
focusTouched: '&.touched:focus',
touchedInvalid: '&.touched.invalid',
focusTouchedInvalid: '&.touched.invalid:focus',
touchedValid: '&.touched.valid',
focusTouchedValid: '&.touched.valid:focus',
},
},
theme: {
breakpoints: {
sm: '480px',
md: '768px',
lg: '1024px',
xl: '1280px',
},
tokens: {
fonts: {
mulish: { value: 'var(--mulish), sans-serif' },
},
colors: {
'text-color-primary': { value: '#000' },
},
radii: {
sm: { value: '5px' },
md: { value: '10px' },
},
shadows: {
standard: { value: '0px 5px 15px rgba(0, 0, 0, 0.35)' },
variant: { value: '0px 0px 12px rgba(0, 0, 0, 0.35)' },
buttonPrimary: { value: '0px 1px 4px rgba(0, 0, 0, 0.16)' },
},
sizes: {
'section-max-width': { value: '700px' },
},
spacing:{
'section-offset': { value: '20px' },
}
},
semanticTokens: {
sizes: {
'sp-xs': { value: '10px' },
'sp-sm': { value: '20px' },
'sp-md': { value: '32px' },
'sp-lg': { value: '64px' },
},
},
extend: { textStyles },
},
jsxFramework: 'react',
// The output directory for your css system
outdir: './src/styled-system',
});