-
Notifications
You must be signed in to change notification settings - Fork 0
/
panda.config.ts
148 lines (142 loc) · 3.29 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
import { defineConfig, defineGlobalStyles } from '@pandacss/dev';
import { createPreset } from '@park-ui/panda-preset';
const globalCss = defineGlobalStyles({
'.elite-color': { color: 'gold' },
'.icon': {
height: '1.25em',
width: '1.25em',
verticalAlign: 'top',
display: 'inline-block',
filter: 'drop-shadow(5px 5px 5px rgba(0,0,0,0.3))',
},
'.aoe.h2': { height: '3em', width: '3em' },
'.aoe.h3': { height: '4.5em', width: '4.5em' },
'.aoe.inline': { display: 'inline-block' },
'.aoe.rotated.not(.inline)': {
position: 'absolute',
top: 0,
right: 0,
bottom: 0,
margin: 'auto 0',
},
'.mirrored': {
transform: 'scale(-1,1)',
},
'.rotated': {
transform: 'rotateZ(-60deg)',
},
'.rotated-inverse': {
transform: 'rotateZ(60deg)',
},
'.nobr': { whiteSpace: 'nowrap' },
'.small': { fontSize: '75%' },
'.element': {
height: '1.75em',
width: '1.75em',
verticalAlign: 'middle',
display: 'inline-block',
},
'.element.overlay': {
marginLeft: '-1.75em',
zIndex: 1,
},
'.collapse': {
display: 'inline-block',
width: 0,
// height: 0,
},
});
export default defineConfig({
// Whether to use css reset
preflight: true,
presets: [
'@pandacss/preset-panda',
createPreset({
accentColor: 'amber',
grayColor: 'sand',
borderRadius: 'md',
}),
],
// Where to look for your css declarations
include: ['./src/**/*.{ts,tsx,js,jsx}'],
// Files to exclude
exclude: [],
// Useful for theme customization
theme: {
extend: {
keyframes: {
show: {
'100%': { opacity: 1 },
},
enemyCardPlayed: {
'100%': { opacity: 0.5, filter: 'grayscale(1)' },
},
},
tokens: {
fonts: {
philosopher: { value: 'var(--font-philosopher), sans-serif' },
pirataOne: { value: 'var(--font-pirata-one)' },
},
},
slotRecipes: {
pinInput: {
variants: {
size: {
xl: { input: { height: '12' } },
'2xl': { input: { height: '16' } },
},
},
},
dialog: {
base: {
content: {
display: 'flex',
height: { smDown: '100%', base: 'auto' },
minWidth: { smDown: '100%', base: 'sm' },
borderRadius: { smDown: 'none', base: '13' },
},
title: {
fontFamily: 'pirataOne',
fontSize: '2xl',
fontWeight: 'normal',
},
},
},
alert: {
base: {
title: {
fontWeight: 'normal',
fontSize: 'xl',
},
description: {
fontWeight: 'normal',
fontSize: 'md',
},
},
},
},
recipes: {
heading: {
base: {
letterSpacing: '0 !important',
fontWeight: 'normal',
},
},
text: {
base: {
fontWeight: 'normal',
},
},
button: {
base: {
fontWeight: 'normal',
},
},
},
},
},
globalCss,
jsxFramework: 'react',
// The output directory for your css system
outdir: 'styled-system',
});