-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanda.config.ts
110 lines (102 loc) · 2.66 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
import { defineConfig, defineGlobalStyles } from "@pandacss/dev";
const globalCss = defineGlobalStyles({
"html, body": {
backgroundColor: "var(--black-primary)",
color: "var(--white-primary)",
},
"*": {
boxSizing: "border-box",
},
"button:hover": {
cursor: "pointer",
},
});
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: {
recipes: {
cardContainer: {
className: "container",
description: "The styles for the MovieCard container",
base: {
marginTop: "5",
display: "grid",
gap: "2",
},
variants: {
column: {
"3": {
"grid-template-columns": "repeat(3, 1fr)",
},
"5": {
"grid-template-columns": "repeat(5, 1fr)",
},
},
},
},
card: {
className: "card",
description: "The styles for the MovieCard",
base: {
position: "relative",
aspectRatio: "1/1.5",
},
variants: {
type: {
skeleton: {
backgroundColor: "#292929",
animation: "pulse 1s infinite linear",
},
},
},
},
loadingSpinner: {
className: "spinner",
description: "Spinning animation styles for a loading spinner",
base: {
width: "15px",
height: "15px",
mx: "auto",
borderRadius: "50%",
background: "conic-gradient(#000 10%, var(--white-primary))",
WebkitMask:
"radial-gradient(farthest-side, #0000 calc(100% - 2px), #000 0)",
animation: `spinner 1s infinite linear`,
},
variants: {
type: {
component: {
background: "conic-gradient(#000 10%, var(--yellow-primary))",
WebkitMask:
"radial-gradient(farthest-side, #0000 calc(100% - 5px), #000 0)",
},
},
},
},
},
extend: {
keyframes: {
spinner: {
"0%": { transform: "rotate(0deg)" },
"100%": { transform: "rotate(360deg)" },
},
},
},
},
// The output directory for your css system
outdir: "styled-system",
globalVars: {
"--black-primary": "#191919",
"--yellow-primary": "#fec52e",
"--white-primary": "#ffffff",
"--gray-primary": "#434343",
"--gray-secondary": "#646464",
},
globalCss,
});