@okshaun/components 0.5.8 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -26
- package/dist/.mcp.json +11 -0
- package/dist/index.d.ts +3 -1268
- package/dist/index.js +1231 -957
- package/dist/index.js.map +1 -1
- package/dist/okshaun-logo-white.svg +11 -0
- package/dist/okshaun-logo.svg +11 -0
- package/dist/preset-BzrKiUEH.js +8452 -0
- package/dist/preset-BzrKiUEH.js.map +1 -0
- package/dist/preset.js +3 -7234
- package/dist/preset.js.map +1 -1
- package/dist/specs/animation-styles.json +4 -0
- package/dist/specs/color-palette.json +98 -0
- package/dist/specs/conditions.json +1901 -0
- package/dist/specs/keyframes.json +137 -0
- package/dist/specs/layer-styles.json +23 -0
- package/dist/specs/patterns.json +475 -0
- package/dist/specs/recipes.json +907 -0
- package/dist/specs/semantic-tokens.json +2837 -0
- package/dist/specs/text-styles.json +149 -0
- package/dist/specs/tokens.json +2750 -0
- package/dist/sprite.svg +1 -1
- package/dist/sprite.symbol.html +14 -14
- package/dist/styles/global.css +148 -0
- package/dist/styles/recipes/avatar.css +185 -0
- package/dist/styles/recipes/badge.css +85 -0
- package/dist/styles/recipes/breadcrumbs.css +38 -0
- package/dist/styles/recipes/button.css +195 -0
- package/dist/styles/recipes/card.css +57 -0
- package/dist/styles/recipes/checkbox-input.css +12 -0
- package/dist/styles/recipes/checkbox.css +90 -0
- package/dist/styles/recipes/chip.css +137 -0
- package/dist/styles/recipes/code.css +12 -0
- package/dist/styles/recipes/divider.css +43 -0
- package/dist/styles/recipes/form-field.css +39 -0
- package/dist/styles/recipes/heading.css +40 -0
- package/dist/styles/recipes/icon-button.css +181 -0
- package/dist/styles/recipes/label.css +14 -0
- package/dist/styles/recipes/link.css +49 -0
- package/dist/styles/recipes/menu.css +141 -0
- package/dist/styles/recipes/modal.css +99 -0
- package/dist/styles/recipes/pre.css +16 -0
- package/dist/styles/recipes/radio-input.css +7 -0
- package/dist/styles/recipes/radio.css +82 -0
- package/dist/styles/recipes/select.css +103 -0
- package/dist/styles/recipes/spinner.css +36 -0
- package/dist/styles/recipes/tag.css +27 -0
- package/dist/styles/recipes/text.css +46 -0
- package/dist/styles/recipes/textarea.css +91 -0
- package/dist/styles/recipes/textinput.css +87 -0
- package/dist/styles/recipes/theme-switcher.css +53 -0
- package/dist/styles/recipes/toggle-input.css +12 -0
- package/dist/styles/recipes/toggle.css +125 -0
- package/dist/styles/recipes/tooltip.css +133 -0
- package/dist/styles/recipes.css +30 -0
- package/dist/styles/reset.css +1 -0
- package/dist/styles/tokens.css +1016 -0
- package/dist/styles/utilities.css +1694 -0
- package/dist/styles.css +7 -0
- package/dist/svgs/building.svg +1 -0
- package/dist/types/index.d.ts +21626 -0
- package/dist/types/preset.d.ts +19 -0
- package/package.json +37 -35
- package/src/recipes/avatar.ts +205 -0
- package/src/recipes/badge.ts +203 -0
- package/src/recipes/box.ts +13 -0
- package/src/recipes/breadcrumbs.ts +29 -0
- package/src/recipes/button.ts +319 -0
- package/src/recipes/card.ts +148 -0
- package/src/recipes/checkbox.ts +87 -0
- package/src/recipes/checkboxinput.ts +15 -0
- package/src/recipes/chip.ts +189 -0
- package/src/recipes/code.ts +35 -0
- package/src/recipes/divider.ts +41 -0
- package/src/recipes/formField.ts +60 -0
- package/src/recipes/index.ts +28 -0
- package/src/recipes/menu.ts +205 -0
- package/src/recipes/modal.ts +120 -0
- package/src/recipes/radio.ts +71 -0
- package/src/recipes/radioinput.ts +12 -0
- package/src/recipes/select.ts +142 -0
- package/src/recipes/spinner.ts +52 -0
- package/src/recipes/tag.ts +262 -0
- package/src/recipes/text.ts +193 -0
- package/src/recipes/textarea.ts +153 -0
- package/src/recipes/textinput.ts +100 -0
- package/src/recipes/themeSwitcher.ts +48 -0
- package/src/recipes/toggle.ts +116 -0
- package/src/recipes/toggleinput.ts +16 -0
- package/src/recipes/tooltip.ts +359 -0
- package/src/styles/index.css +1 -0
- package/src/styles/primitives/animations.ts +16 -0
- package/src/styles/primitives/aspectRatios.ts +22 -0
- package/src/styles/primitives/blurs.ts +25 -0
- package/src/styles/primitives/borderWidths.ts +10 -0
- package/src/styles/primitives/borders.ts +36 -0
- package/src/styles/primitives/colors.ts +228 -0
- package/src/styles/primitives/durations.ts +25 -0
- package/src/styles/primitives/easings.ts +19 -0
- package/src/styles/primitives/fontSizes.ts +16 -0
- package/src/styles/primitives/fontWeights.ts +9 -0
- package/src/styles/primitives/fonts.ts +18 -0
- package/src/styles/primitives/index.ts +46 -0
- package/src/styles/primitives/letterSpacings.ts +22 -0
- package/src/styles/primitives/lineHeights.ts +16 -0
- package/src/styles/primitives/radii.ts +14 -0
- package/src/styles/primitives/shadows.ts +73 -0
- package/src/styles/primitives/sizes.ts +86 -0
- package/src/styles/primitives/spacings.ts +7 -0
- package/src/styles/semantics/colors.ts +774 -0
- package/src/styles/semantics/index.ts +2 -0
- package/src/styles/semantics/shadows.ts +32 -0
- package/src/styles/utilities/breakpoints.ts +8 -0
- package/src/styles/utilities/conditions.ts +140 -0
- package/src/styles/utilities/containerSizes.ts +17 -0
- package/src/styles/utilities/filters.ts +12 -0
- package/src/styles/utilities/globalStyle.ts +93 -0
- package/src/styles/utilities/index.ts +9 -0
- package/src/styles/utilities/keyframes.ts +89 -0
- package/src/styles/utilities/layerStyles.ts +18 -0
- package/src/styles/utilities/textStyles.ts +135 -0
- package/src/styles/utilities/transitions.ts +92 -0
- package/src/utils/injectSprite.ts +36 -0
- package/src/utils/splitProps.ts +19 -0
- package/src/utils/spriteContent.ts +4 -0
- package/dist/panda.buildinfo.json +0 -448
- package/dist/preset.d.ts +0 -5
- package/dist/transitions-DUgH88VW.js +0 -1041
- package/dist/transitions-DUgH88VW.js.map +0 -1
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev';
|
|
2
|
+
|
|
3
|
+
const tooltipBase = {
|
|
4
|
+
wrapper: {
|
|
5
|
+
position: 'relative',
|
|
6
|
+
width: 'fit-content',
|
|
7
|
+
height: 'fit-content',
|
|
8
|
+
cursor: 'default',
|
|
9
|
+
},
|
|
10
|
+
tooltipContent: {
|
|
11
|
+
display: 'flex',
|
|
12
|
+
flexDirection: 'column',
|
|
13
|
+
gap: '4',
|
|
14
|
+
bg: { base: 'gray.90', _dark: 'gray.10' },
|
|
15
|
+
color: { base: 'gray.10', _dark: 'gray.90' },
|
|
16
|
+
fontFamily: 'sans',
|
|
17
|
+
fontWeight: 'normal',
|
|
18
|
+
borderRadius: '4',
|
|
19
|
+
position: 'absolute',
|
|
20
|
+
maxWidth: 'max-content',
|
|
21
|
+
width: 'max-content',
|
|
22
|
+
boxShadow: 'medium',
|
|
23
|
+
zIndex: 1,
|
|
24
|
+
pointerEvents: 'none',
|
|
25
|
+
_after: {
|
|
26
|
+
content: "''",
|
|
27
|
+
position: 'absolute',
|
|
28
|
+
width: '0',
|
|
29
|
+
height: '0',
|
|
30
|
+
borderWidth: '9',
|
|
31
|
+
borderStyle: 'solid',
|
|
32
|
+
borderColor: 'transparent',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
title: {
|
|
36
|
+
fontWeight: 'bold',
|
|
37
|
+
color: 'text',
|
|
38
|
+
},
|
|
39
|
+
text: {
|
|
40
|
+
color: 'text.subtlest',
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const tooltipVariants = {
|
|
45
|
+
position: {
|
|
46
|
+
top: {
|
|
47
|
+
tooltipContent: {
|
|
48
|
+
bottom: '100%',
|
|
49
|
+
left: '50%',
|
|
50
|
+
transform: 'translateX(-50%)',
|
|
51
|
+
opacity: 1,
|
|
52
|
+
_after: {
|
|
53
|
+
top: '100%',
|
|
54
|
+
left: '50%',
|
|
55
|
+
transform: 'translate(-50%, -2%)',
|
|
56
|
+
borderTopColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
bottom: {
|
|
61
|
+
tooltipContent: {
|
|
62
|
+
top: '100%',
|
|
63
|
+
left: '50%',
|
|
64
|
+
transform: 'translateX(-50%)',
|
|
65
|
+
_after: {
|
|
66
|
+
bottom: '100%',
|
|
67
|
+
left: '50%',
|
|
68
|
+
transform: 'translate(-50%, 2%)',
|
|
69
|
+
borderBottomColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
left: {
|
|
74
|
+
tooltipContent: {
|
|
75
|
+
top: '50%',
|
|
76
|
+
right: 'calc(100% - 0.75rem)',
|
|
77
|
+
transform: 'translate(-10%, -50%)',
|
|
78
|
+
_after: {
|
|
79
|
+
top: '50%',
|
|
80
|
+
right: '-6%',
|
|
81
|
+
transform: 'translate(48%, -50%)',
|
|
82
|
+
borderLeftColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
right: {
|
|
87
|
+
tooltipContent: {
|
|
88
|
+
top: '50%',
|
|
89
|
+
left: `calc(100% - 0.75rem)`,
|
|
90
|
+
transform: 'translate(10%, -50%)',
|
|
91
|
+
_after: {
|
|
92
|
+
top: '50%',
|
|
93
|
+
left: '-6%',
|
|
94
|
+
transform: 'translate(-48%, -50%)',
|
|
95
|
+
borderRightColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
'top-start': {
|
|
100
|
+
tooltipContent: {
|
|
101
|
+
bottom: '100%',
|
|
102
|
+
left: '0',
|
|
103
|
+
_after: {
|
|
104
|
+
top: '100%',
|
|
105
|
+
left: '8',
|
|
106
|
+
transform: 'translate(0, -2%)',
|
|
107
|
+
borderTopColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
'bottom-start': {
|
|
112
|
+
tooltipContent: {
|
|
113
|
+
top: '100%',
|
|
114
|
+
left: '0',
|
|
115
|
+
transform: 'translateX(0)',
|
|
116
|
+
_after: {
|
|
117
|
+
bottom: '100%',
|
|
118
|
+
left: '8',
|
|
119
|
+
transform: 'translate(0%, 2%)',
|
|
120
|
+
borderBottomColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
'left-start': {
|
|
125
|
+
tooltipContent: {
|
|
126
|
+
top: '0',
|
|
127
|
+
right: 'calc(100% - 0.75rem)',
|
|
128
|
+
transform: 'translate(-10%, -0%)',
|
|
129
|
+
_after: {
|
|
130
|
+
top: '8',
|
|
131
|
+
right: '-6%',
|
|
132
|
+
transform: 'translate(48%, 0)',
|
|
133
|
+
borderLeftColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
'right-start': {
|
|
138
|
+
tooltipContent: {
|
|
139
|
+
top: '0',
|
|
140
|
+
left: `calc(100% - 0.75rem)`,
|
|
141
|
+
transform: 'translate(10%, 0%)',
|
|
142
|
+
_after: {
|
|
143
|
+
top: '8',
|
|
144
|
+
left: '-6%',
|
|
145
|
+
transform: 'translate(-48%, 0)',
|
|
146
|
+
borderRightColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
'top-end': {
|
|
151
|
+
tooltipContent: {
|
|
152
|
+
bottom: '100%',
|
|
153
|
+
right: '0',
|
|
154
|
+
_after: {
|
|
155
|
+
top: '100%',
|
|
156
|
+
right: '8',
|
|
157
|
+
transform: 'translate(0, -2%)',
|
|
158
|
+
borderTopColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
'bottom-end': {
|
|
163
|
+
tooltipContent: {
|
|
164
|
+
top: '100%',
|
|
165
|
+
right: '0',
|
|
166
|
+
transform: 'translateX(0)',
|
|
167
|
+
_after: {
|
|
168
|
+
bottom: '100%',
|
|
169
|
+
right: '8',
|
|
170
|
+
transform: 'translate(0%, 2%)',
|
|
171
|
+
borderBottomColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
'left-end': {
|
|
176
|
+
tooltipContent: {
|
|
177
|
+
bottom: '0',
|
|
178
|
+
right: 'calc(100% - 0.75rem)',
|
|
179
|
+
transform: 'translate(-10%, -0%)',
|
|
180
|
+
_after: {
|
|
181
|
+
bottom: '8',
|
|
182
|
+
right: '-6%',
|
|
183
|
+
transform: 'translate(48%, 0)',
|
|
184
|
+
borderLeftColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
'right-end': {
|
|
189
|
+
tooltipContent: {
|
|
190
|
+
bottom: '0',
|
|
191
|
+
left: `calc(100% - 0.75rem)`,
|
|
192
|
+
transform: 'translate(10%, -0%)',
|
|
193
|
+
_after: {
|
|
194
|
+
bottom: '8',
|
|
195
|
+
left: '-6%',
|
|
196
|
+
transform: 'translate(-48%, 0)',
|
|
197
|
+
borderRightColor: { base: 'gray.90', _dark: 'gray.10' },
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
caret: {
|
|
203
|
+
true: {
|
|
204
|
+
tooltipContent: {
|
|
205
|
+
_after: {
|
|
206
|
+
display: 'block',
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
_position: {
|
|
210
|
+
top: {
|
|
211
|
+
tooltipContent: {
|
|
212
|
+
mb: '12',
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
false: {
|
|
218
|
+
tooltipContent: {
|
|
219
|
+
_after: {
|
|
220
|
+
display: 'none',
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
_position: {
|
|
224
|
+
top: {
|
|
225
|
+
tooltipContent: {
|
|
226
|
+
mb: '8',
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
size: {
|
|
233
|
+
sm: {
|
|
234
|
+
tooltipContent: {
|
|
235
|
+
py: '4',
|
|
236
|
+
px: '8',
|
|
237
|
+
},
|
|
238
|
+
title: {
|
|
239
|
+
fontSize: '12',
|
|
240
|
+
},
|
|
241
|
+
text: {
|
|
242
|
+
fontSize: '12',
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
md: {
|
|
246
|
+
tooltipContent: {
|
|
247
|
+
py: '8',
|
|
248
|
+
px: '12',
|
|
249
|
+
},
|
|
250
|
+
title: {
|
|
251
|
+
fontSize: '14',
|
|
252
|
+
},
|
|
253
|
+
text: {
|
|
254
|
+
fontSize: '14',
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
lg: {
|
|
258
|
+
tooltipContent: {
|
|
259
|
+
py: '12',
|
|
260
|
+
px: '16',
|
|
261
|
+
},
|
|
262
|
+
title: {
|
|
263
|
+
fontSize: '16',
|
|
264
|
+
},
|
|
265
|
+
text: {
|
|
266
|
+
fontSize: '16',
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
export const tooltipRecipe = defineSlotRecipe({
|
|
273
|
+
className: 'tooltip',
|
|
274
|
+
jsx: ['Tooltip'],
|
|
275
|
+
slots: ['wrapper', 'tooltipContent', 'title', 'text'],
|
|
276
|
+
base: tooltipBase,
|
|
277
|
+
variants: {
|
|
278
|
+
...tooltipVariants,
|
|
279
|
+
},
|
|
280
|
+
defaultVariants: {
|
|
281
|
+
position: 'bottom',
|
|
282
|
+
caret: true,
|
|
283
|
+
size: 'md',
|
|
284
|
+
},
|
|
285
|
+
compoundVariants: [
|
|
286
|
+
{
|
|
287
|
+
position: ['top', 'top-start', 'top-end'],
|
|
288
|
+
caret: true,
|
|
289
|
+
css: {
|
|
290
|
+
tooltipContent: {
|
|
291
|
+
mb: '12',
|
|
292
|
+
},
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
position: ['top', 'top-start', 'top-end'],
|
|
297
|
+
caret: false,
|
|
298
|
+
css: {
|
|
299
|
+
tooltipContent: {
|
|
300
|
+
mb: '8',
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
position: ['bottom', 'bottom-start', 'bottom-end'],
|
|
306
|
+
caret: true,
|
|
307
|
+
css: {
|
|
308
|
+
tooltipContent: {
|
|
309
|
+
mt: '12',
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
position: ['bottom', 'bottom-start', 'bottom-end'],
|
|
315
|
+
caret: false,
|
|
316
|
+
css: {
|
|
317
|
+
tooltipContent: {
|
|
318
|
+
mt: '8',
|
|
319
|
+
},
|
|
320
|
+
},
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
position: ['left', 'left-start', 'left-end'],
|
|
324
|
+
caret: true,
|
|
325
|
+
css: {
|
|
326
|
+
tooltipContent: {
|
|
327
|
+
mr: '12',
|
|
328
|
+
},
|
|
329
|
+
},
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
position: ['left', 'left-start', 'left-end'],
|
|
333
|
+
caret: false,
|
|
334
|
+
css: {
|
|
335
|
+
tooltipContent: {
|
|
336
|
+
mr: '8',
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
position: ['right', 'right-start', 'right-end'],
|
|
342
|
+
caret: true,
|
|
343
|
+
css: {
|
|
344
|
+
tooltipContent: {
|
|
345
|
+
ml: '12',
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
position: ['right', 'right-start', 'right-end'],
|
|
351
|
+
caret: false,
|
|
352
|
+
css: {
|
|
353
|
+
tooltipContent: {
|
|
354
|
+
ml: '8',
|
|
355
|
+
},
|
|
356
|
+
},
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer reset, base, tokens, recipes, utilities;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineTokens } from '@pandacss/dev';
|
|
2
|
+
|
|
3
|
+
export const animations = defineTokens.animations({
|
|
4
|
+
spin: {
|
|
5
|
+
value: 'spin 1s linear infinite',
|
|
6
|
+
},
|
|
7
|
+
ping: {
|
|
8
|
+
value: 'ping 1s cubic-bezier(0, 0, 0.2, 1) infinite',
|
|
9
|
+
},
|
|
10
|
+
pulse: {
|
|
11
|
+
value: 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
|
|
12
|
+
},
|
|
13
|
+
bounce: {
|
|
14
|
+
value: 'bounce 1s infinite',
|
|
15
|
+
},
|
|
16
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineTokens } from '@pandacss/dev';
|
|
2
|
+
|
|
3
|
+
export const aspectRatios = defineTokens.aspectRatios({
|
|
4
|
+
square: {
|
|
5
|
+
value: '1 / 1',
|
|
6
|
+
},
|
|
7
|
+
landscape: {
|
|
8
|
+
value: '4 / 3',
|
|
9
|
+
},
|
|
10
|
+
portrait: {
|
|
11
|
+
value: '3 / 4',
|
|
12
|
+
},
|
|
13
|
+
wide: {
|
|
14
|
+
value: '16 / 9',
|
|
15
|
+
},
|
|
16
|
+
ultrawide: {
|
|
17
|
+
value: '18 / 5',
|
|
18
|
+
},
|
|
19
|
+
golden: {
|
|
20
|
+
value: '1.618 / 1',
|
|
21
|
+
},
|
|
22
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineTokens } from '@pandacss/dev';
|
|
2
|
+
|
|
3
|
+
export const blurs = defineTokens.blurs({
|
|
4
|
+
sm: {
|
|
5
|
+
value: '{sizes.4}',
|
|
6
|
+
},
|
|
7
|
+
base: {
|
|
8
|
+
value: '{sizes.8}',
|
|
9
|
+
},
|
|
10
|
+
md: {
|
|
11
|
+
value: '{sizes.12}',
|
|
12
|
+
},
|
|
13
|
+
lg: {
|
|
14
|
+
value: '{sizes.16}',
|
|
15
|
+
},
|
|
16
|
+
xl: {
|
|
17
|
+
value: '{sizes.24}',
|
|
18
|
+
},
|
|
19
|
+
'2xl': {
|
|
20
|
+
value: '{sizes.40}',
|
|
21
|
+
},
|
|
22
|
+
'3xl': {
|
|
23
|
+
value: '{sizes.64}',
|
|
24
|
+
},
|
|
25
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { defineTokens } from '@pandacss/dev';
|
|
2
|
+
|
|
3
|
+
export const borderWidths = defineTokens.borderWidths({
|
|
4
|
+
'0': { value: '{sizes.0}' },
|
|
5
|
+
'1': { value: '{sizes.1}' },
|
|
6
|
+
'2': { value: '{sizes.2}' },
|
|
7
|
+
'4': { value: '{sizes.4}' },
|
|
8
|
+
'8': { value: '{sizes.8}' },
|
|
9
|
+
'16': { value: '{sizes.16}' },
|
|
10
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineTokens } from '@pandacss/dev';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Border shorthand tokens for common border combinations.
|
|
5
|
+
* Uses semantic color tokens for theming support.
|
|
6
|
+
* Usage: border: 'subtle' or border: 'default'
|
|
7
|
+
*/
|
|
8
|
+
export const borders = defineTokens.borders({
|
|
9
|
+
default: {
|
|
10
|
+
value: '{borderWidths.1} solid {colors.border}',
|
|
11
|
+
},
|
|
12
|
+
strong: {
|
|
13
|
+
value: '{borderWidths.2} solid {colors.border.bold}',
|
|
14
|
+
},
|
|
15
|
+
input: {
|
|
16
|
+
value: '{borderWidths.1} solid {colors.border.input}',
|
|
17
|
+
},
|
|
18
|
+
focused: {
|
|
19
|
+
value: '{borderWidths.2} solid {colors.border.focused}',
|
|
20
|
+
},
|
|
21
|
+
success: {
|
|
22
|
+
value: '{borderWidths.1} solid {colors.border.success}',
|
|
23
|
+
},
|
|
24
|
+
warning: {
|
|
25
|
+
value: '{borderWidths.1} solid {colors.border.warning}',
|
|
26
|
+
},
|
|
27
|
+
danger: {
|
|
28
|
+
value: '{borderWidths.1} solid {colors.border.danger}',
|
|
29
|
+
},
|
|
30
|
+
info: {
|
|
31
|
+
value: '{borderWidths.1} solid {colors.border.info}',
|
|
32
|
+
},
|
|
33
|
+
none: {
|
|
34
|
+
value: 'none',
|
|
35
|
+
},
|
|
36
|
+
});
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { defineTokens } from '@pandacss/dev';
|
|
2
|
+
|
|
3
|
+
export const colors = defineTokens.colors({
|
|
4
|
+
transparent: { value: 'transparent' },
|
|
5
|
+
current: { value: 'currentColor' },
|
|
6
|
+
inherit: { value: 'inherit' },
|
|
7
|
+
neutral: {
|
|
8
|
+
'0': { value: '#FFFFFF' },
|
|
9
|
+
'10': { value: '#F8F8F8' },
|
|
10
|
+
'20': { value: '#F0F1F2' },
|
|
11
|
+
'30': { value: '#DDDEE1' },
|
|
12
|
+
'40': { value: '#B7B9BE' },
|
|
13
|
+
'50': { value: '#8C8F97' },
|
|
14
|
+
'60': { value: '#7D818A' },
|
|
15
|
+
'70': { value: '#6B6E76' },
|
|
16
|
+
'80': { value: '#505258' },
|
|
17
|
+
'90': { value: '#3B3D42' },
|
|
18
|
+
'100': { value: '#292A2E' },
|
|
19
|
+
'110': { value: '#1E1F21' },
|
|
20
|
+
},
|
|
21
|
+
neutralA: {
|
|
22
|
+
'10': { value: '#17171708' },
|
|
23
|
+
'20': { value: '#1717170F' },
|
|
24
|
+
'30': { value: '#17171724' },
|
|
25
|
+
'40': { value: '#1717174A' },
|
|
26
|
+
'50': { value: '#17171775' },
|
|
27
|
+
},
|
|
28
|
+
darkNeutral: {
|
|
29
|
+
'0': { value: '#18191A' },
|
|
30
|
+
'10': { value: '#1F1F21' },
|
|
31
|
+
'20': { value: '#242528' },
|
|
32
|
+
'25': { value: '#2B2C2F' },
|
|
33
|
+
'30': { value: '#303134' },
|
|
34
|
+
'35': { value: '#3D3F43' },
|
|
35
|
+
'40': { value: '#4B4D51' },
|
|
36
|
+
'50': { value: '#63666B' },
|
|
37
|
+
'60': { value: '#7E8188' },
|
|
38
|
+
'70': { value: '#96999E' },
|
|
39
|
+
'80': { value: '#A9ABAF' },
|
|
40
|
+
'90': { value: '#BFC1C4' },
|
|
41
|
+
'100': { value: '#CECFD2' },
|
|
42
|
+
'110': { value: '#E2E3E4' },
|
|
43
|
+
},
|
|
44
|
+
darkNeutralA: {
|
|
45
|
+
'-10': { value: '#01040475' },
|
|
46
|
+
'10': { value: '#BDBDBD0A' },
|
|
47
|
+
'20': { value: '#CECED912' },
|
|
48
|
+
'25': { value: '#D9DAE71A' },
|
|
49
|
+
'30': { value: '#E3E4F21F' },
|
|
50
|
+
'35': { value: '#E8EDFD2E' },
|
|
51
|
+
'40': { value: '#E5E9F640' },
|
|
52
|
+
'50': { value: '#E9F0FB5C' },
|
|
53
|
+
},
|
|
54
|
+
gray: {
|
|
55
|
+
'10': { value: '#fbfcfd' },
|
|
56
|
+
'20': { value: '#e0e1e2' },
|
|
57
|
+
'30': { value: '#c5c5c6' },
|
|
58
|
+
'40': { value: '#a9aaab' },
|
|
59
|
+
'50': { value: '#8e8f8f' },
|
|
60
|
+
'60': { value: '#737374' },
|
|
61
|
+
'70': { value: '#585858' },
|
|
62
|
+
'80': { value: '#3c3d3d' },
|
|
63
|
+
'90': { value: '#212121' },
|
|
64
|
+
'100': { value: '#060606' },
|
|
65
|
+
},
|
|
66
|
+
red: {
|
|
67
|
+
// DEFAULT: { value: '#e2483d' },
|
|
68
|
+
'10': { value: '#ffeceb' },
|
|
69
|
+
'20': { value: '#ffd5d2' },
|
|
70
|
+
'30': { value: '#fd9891' },
|
|
71
|
+
'40': { value: '#f87168' },
|
|
72
|
+
'50': { value: '#f15b50' },
|
|
73
|
+
'60': { value: '#e2483d' },
|
|
74
|
+
'70': { value: '#c9372c' },
|
|
75
|
+
'80': { value: '#ae2e24' },
|
|
76
|
+
'90': { value: '#5d1f1a' },
|
|
77
|
+
'100': { value: '#42221f' },
|
|
78
|
+
},
|
|
79
|
+
orange: {
|
|
80
|
+
// DEFAULT: { value: '#e06c00' },
|
|
81
|
+
'10': { value: '#fff5db' },
|
|
82
|
+
'20': { value: '#fce4a6' },
|
|
83
|
+
'30': { value: '#fbc828' },
|
|
84
|
+
'40': { value: '#fca700' },
|
|
85
|
+
'50': { value: '#f68909' },
|
|
86
|
+
'60': { value: '#e06c00' },
|
|
87
|
+
'70': { value: '#bd5b00' },
|
|
88
|
+
'80': { value: '#9e4c00' },
|
|
89
|
+
'90': { value: '#693200' },
|
|
90
|
+
'100': { value: '#3a2c1f' },
|
|
91
|
+
},
|
|
92
|
+
yellow: {
|
|
93
|
+
// DEFAULT: { value: '#e5b00a' },
|
|
94
|
+
'10': { value: '#fefbf3' },
|
|
95
|
+
'20': { value: '#f9ecc4' },
|
|
96
|
+
'30': { value: '#f4dd96' },
|
|
97
|
+
'40': { value: '#efce67' },
|
|
98
|
+
'50': { value: '#eabf39' },
|
|
99
|
+
'60': { value: '#e5b00a' },
|
|
100
|
+
'70': { value: '#b68e0f' },
|
|
101
|
+
'80': { value: '#886c14' },
|
|
102
|
+
'90': { value: '#594918' },
|
|
103
|
+
'100': { value: '#2a271d' },
|
|
104
|
+
},
|
|
105
|
+
lime: {
|
|
106
|
+
// DEFAULT: { value: '#6a9a23' },
|
|
107
|
+
'10': { value: '#efffd6' },
|
|
108
|
+
'20': { value: '#d3f1a7' },
|
|
109
|
+
'30': { value: '#b3df72' },
|
|
110
|
+
'40': { value: '#94c748' },
|
|
111
|
+
'50': { value: '#82b536' },
|
|
112
|
+
'60': { value: '#6a9a23' },
|
|
113
|
+
'70': { value: '#5b7f24' },
|
|
114
|
+
'80': { value: '#4c6b1f' },
|
|
115
|
+
'90': { value: '#37471f' },
|
|
116
|
+
'100': { value: '#28311b' },
|
|
117
|
+
},
|
|
118
|
+
green: {
|
|
119
|
+
// DEFAULT: { value: '#22a06b' },
|
|
120
|
+
'10': { value: '#dcfff1' },
|
|
121
|
+
'20': { value: '#baf3db' },
|
|
122
|
+
'30': { value: '#7ee2b8' },
|
|
123
|
+
'40': { value: '#4bce97' },
|
|
124
|
+
'50': { value: '#2abb7f' },
|
|
125
|
+
'60': { value: '#22a06b' },
|
|
126
|
+
'70': { value: '#1f845a' },
|
|
127
|
+
'80': { value: '#216e4e' },
|
|
128
|
+
'90': { value: '#164b35' },
|
|
129
|
+
'100': { value: '#1c3329' },
|
|
130
|
+
},
|
|
131
|
+
teal: {
|
|
132
|
+
// DEFAULT: { value: '#2898bd' },
|
|
133
|
+
'10': { value: '#e7f9ff' },
|
|
134
|
+
'20': { value: '#c6edfb' },
|
|
135
|
+
'30': { value: '#9dd9ee' },
|
|
136
|
+
'40': { value: '#6cc3e0' },
|
|
137
|
+
'50': { value: '#42b2d7' },
|
|
138
|
+
'60': { value: '#2898bd' },
|
|
139
|
+
'70': { value: '#227d9b' },
|
|
140
|
+
'80': { value: '#206a83' },
|
|
141
|
+
'90': { value: '#164555' },
|
|
142
|
+
'100': { value: '#1e3137' },
|
|
143
|
+
},
|
|
144
|
+
blue: {
|
|
145
|
+
// DEFAULT: { value: '#357de8' },
|
|
146
|
+
'10': { value: '#e9f2fe' },
|
|
147
|
+
'20': { value: '#cfe1fd' },
|
|
148
|
+
'30': { value: '#8fb8f6' },
|
|
149
|
+
'40': { value: '#669df1' },
|
|
150
|
+
'50': { value: '#4688ec' },
|
|
151
|
+
'60': { value: '#357de8' },
|
|
152
|
+
'70': { value: '#1868db' },
|
|
153
|
+
'80': { value: '#1558bc' },
|
|
154
|
+
'90': { value: '#123263' },
|
|
155
|
+
'100': { value: '#1c2b42' },
|
|
156
|
+
},
|
|
157
|
+
indigo: {
|
|
158
|
+
// DEFAULT: { value: '#7665d1' },
|
|
159
|
+
'10': { value: '#f1eff7' },
|
|
160
|
+
'20': { value: '#e7e3fa' },
|
|
161
|
+
'30': { value: '#cbc4f2' },
|
|
162
|
+
'40': { value: '#afa5e8' },
|
|
163
|
+
'50': { value: '#9287d8' },
|
|
164
|
+
'60': { value: '#7665d1' },
|
|
165
|
+
'70': { value: '#5e519e' },
|
|
166
|
+
'80': { value: '#453c7b' },
|
|
167
|
+
'90': { value: '#2e2c40' },
|
|
168
|
+
'100': { value: '#18161d' },
|
|
169
|
+
},
|
|
170
|
+
purple: {
|
|
171
|
+
// DEFAULT: { value: '#af59e1' },
|
|
172
|
+
'10': { value: '#f8eefe' },
|
|
173
|
+
'20': { value: '#eed7fc' },
|
|
174
|
+
'30': { value: '#d8a0f7' },
|
|
175
|
+
'40': { value: '#c97cf4' },
|
|
176
|
+
'50': { value: '#bf63f3' },
|
|
177
|
+
'60': { value: '#af59e1' },
|
|
178
|
+
'70': { value: '#964ac0' },
|
|
179
|
+
'80': { value: '#803fa5' },
|
|
180
|
+
'90': { value: '#48245d' },
|
|
181
|
+
'100': { value: '#35243f' },
|
|
182
|
+
},
|
|
183
|
+
magenta: {
|
|
184
|
+
// DEFAULT: { value: '#cd519d' },
|
|
185
|
+
'10': { value: '#ffecf8' },
|
|
186
|
+
'20': { value: '#fdd0ec' },
|
|
187
|
+
'30': { value: '#f797d2' },
|
|
188
|
+
'40': { value: '#e774bb' },
|
|
189
|
+
'50': { value: '#da62ac' },
|
|
190
|
+
'60': { value: '#cd519d' },
|
|
191
|
+
'70': { value: '#ae4787' },
|
|
192
|
+
'80': { value: '#943d73' },
|
|
193
|
+
'90': { value: '#50253f' },
|
|
194
|
+
'100': { value: '#3d2232' },
|
|
195
|
+
},
|
|
196
|
+
tan: {
|
|
197
|
+
// DEFAULT: { value: '#8e704f' },
|
|
198
|
+
'10': { value: '#f5f0e6' },
|
|
199
|
+
'20': { value: '#f1e5cd' },
|
|
200
|
+
'30': { value: '#dec69a' },
|
|
201
|
+
'40': { value: '#c7a97b' },
|
|
202
|
+
'50': { value: '#ad8b65' },
|
|
203
|
+
'60': { value: '#8e704f' },
|
|
204
|
+
'70': { value: '#6b5947' },
|
|
205
|
+
'80': { value: '#4d4438' },
|
|
206
|
+
'90': { value: '#322d26' },
|
|
207
|
+
'100': { value: '#191714' },
|
|
208
|
+
},
|
|
209
|
+
slate: {
|
|
210
|
+
// DEFAULT: { value: '#1E1E1E' },
|
|
211
|
+
'0': { value: '#FFFFFF' },
|
|
212
|
+
'1': { value: '#FAFAFA' },
|
|
213
|
+
'2': { value: '#F9F8F6' },
|
|
214
|
+
'3': { value: '#F7F5F3' },
|
|
215
|
+
'4': { value: '#F6F3EF' },
|
|
216
|
+
'5': { value: '#F4F0EB' },
|
|
217
|
+
'10': { value: '#E3E1DE' },
|
|
218
|
+
'20': { value: '#CBCAC8' },
|
|
219
|
+
'30': { value: '#AFADAB' },
|
|
220
|
+
'40': { value: '#939190' },
|
|
221
|
+
'50': { value: '#767675' },
|
|
222
|
+
'60': { value: '#5F5F5E' },
|
|
223
|
+
'70': { value: '#474747' },
|
|
224
|
+
'80': { value: '#2E2E2E' },
|
|
225
|
+
'90': { value: '#1E1E1E' },
|
|
226
|
+
'100': { value: '#000000' },
|
|
227
|
+
},
|
|
228
|
+
});
|