-
Notifications
You must be signed in to change notification settings - Fork 23
/
panda.config.ts
102 lines (94 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import { defineConfig, defineGlobalStyles } from '@pandacss/dev'
const globalCss = defineGlobalStyles({
html: {
fontSize: '16px',
mdDown: {
'&:has( #studio)': {
overflow: 'hidden',
overscrollBehavior: 'none'
}
}
},
'*': {
colorScheme: 'dark'
},
iframe: {
colorScheme: 'initial'
}
})
export default defineConfig({
globalCss,
// 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: [],
jsxFramework: 'react',
// Useful for theme customization
theme: {
extend: {
tokens: {
colors: {
primary: {
DEFAULT: { value: 'rgb(100, 159, 255)' },
dark: { value: 'rgb(48, 91, 161)' }
},
secondary: {
dark: { value: 'rgb(48, 48, 48)' },
DEFAULT: { value: 'rgb(68, 68, 68)' },
light: { value: 'rgb(88, 88, 88)' },
textContrast: { value: '#f0f0f0' }
}
}
},
keyframes: {
skeletonLoading: {
to: {
backgroundPositionX: '-200%'
}
},
octocat: {
'0%, 100%': {
transform: 'rotate(0)'
},
'20%, 60%': {
transform: 'rotate(-25deg)'
},
'40%, 80%': {
transform: 'rotate(10deg)'
}
}
}
}
},
patterns: {
extend: {
particulesBg: {
properties: {},
transform() {
return {
backgroundSize: 'cover',
backgroundAttachment: 'fixed',
backgroundRepeat: 'repeat-y',
backgroundImage: "url('/images/particles.svg')"
}
}
},
skeleton: {
properties: {},
transform(props) {
return {
background:
'linear-gradient(to right, #656871 0%, #888b94 20%, #656871 40%, #656871 100%)',
backgroundSize: '200% 100%',
animation: '1.5s skeletonLoading linear infinite',
...props
}
}
}
}
},
// The output directory for your css system
outdir: 'styled-system'
})