@okshaun/components 1.0.1 → 2.0.0
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/dist/.mcp.json +2 -5
- package/dist/icon-metadata.json +5173 -0
- package/dist/index.js +17088 -9273
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +693 -0
- package/dist/playroom-static.css +187432 -0
- package/dist/{preset-BzrKiUEH.js → preset-Coz-VwQR.js} +4051 -3217
- package/dist/preset-Coz-VwQR.js.map +1 -0
- package/dist/preset.js +1 -1
- package/dist/specs/color-palette.json +22 -1
- package/dist/specs/patterns.json +0 -16
- package/dist/specs/recipes.json +411 -247
- package/dist/specs/semantic-tokens.json +330 -115
- package/dist/specs/text-styles.json +72 -0
- package/dist/specs/tokens.json +237 -27
- package/dist/sprite.svg +1 -1
- package/dist/sprite.symbol.html +6662 -320
- package/dist/styles.css +36938 -5
- package/dist/svgs/calendar-lock.svg +1 -0
- package/dist/svgs/computer.svg +1 -0
- package/dist/svgs/cookie.svg +1 -0
- package/dist/svgs/folder-check.svg +1 -0
- package/dist/svgs/folder-copy.svg +1 -0
- package/dist/svgs/folder-dashed.svg +1 -0
- package/dist/svgs/folder-open.svg +1 -0
- package/dist/svgs/folder-topic.svg +1 -0
- package/dist/svgs/folder.svg +1 -0
- package/dist/svgs/mobile.svg +1 -0
- package/dist/svgs/numpad.svg +1 -0
- package/dist/svgs/phone.svg +1 -0
- package/dist/svgs/qr-code.svg +1 -0
- package/dist/svgs/sparkle.svg +1 -0
- package/dist/svgs/trolley.svg +1 -0
- package/dist/types/index.d.ts +834 -347
- package/package.json +49 -36
- package/src/recipes/avatar.ts +4 -4
- package/src/recipes/badge.ts +22 -48
- package/src/recipes/box.ts +1 -7
- package/src/recipes/breadcrumbs.ts +42 -25
- package/src/recipes/button.ts +151 -85
- package/src/recipes/card.ts +5 -1
- package/src/recipes/checkbox.ts +23 -24
- package/src/recipes/checkboxInput.ts +25 -0
- package/src/recipes/chip.ts +35 -37
- package/src/recipes/code.ts +4 -4
- package/src/recipes/datePicker.ts +223 -0
- package/src/recipes/divider.ts +38 -31
- package/src/recipes/formField.ts +41 -23
- package/src/recipes/highlightText.ts +14 -0
- package/src/recipes/icon.ts +13 -0
- package/src/recipes/list.ts +14 -0
- package/src/recipes/listItem.ts +310 -0
- package/src/recipes/listItemGroup.ts +62 -0
- package/src/recipes/menu.ts +90 -163
- package/src/recipes/modal.ts +51 -18
- package/src/recipes/radio.ts +29 -20
- package/src/recipes/radioInput.ts +25 -0
- package/src/recipes/recipes-regular.ts +14 -0
- package/src/recipes/{index.ts → recipes-slot.ts} +14 -23
- package/src/recipes/select.ts +1 -1
- package/src/recipes/spinner.ts +49 -23
- package/src/recipes/tag.ts +80 -84
- package/src/recipes/text.ts +18 -19
- package/src/recipes/textInput.ts +205 -0
- package/src/recipes/textarea.ts +65 -138
- package/src/recipes/themeSwitcher.ts +3 -3
- package/src/recipes/timePicker.ts +199 -0
- package/src/recipes/toggle.ts +72 -99
- package/src/recipes/toggleInput.ts +26 -0
- package/src/recipes/tooltip.ts +52 -343
- package/src/styles/index.css +1 -1
- package/src/styles/primitives/borders.ts +7 -1
- package/src/styles/primitives/colors.ts +51 -0
- package/src/styles/primitives/fontSizes.ts +1 -0
- package/src/styles/primitives/index.ts +2 -1
- package/src/styles/primitives/radii.ts +1 -1
- package/src/styles/primitives/shadows.ts +9 -9
- package/src/styles/primitives/sizes.ts +1 -0
- package/src/styles/primitives/zIndex.ts +17 -0
- package/src/styles/semantics/colors.ts +137 -82
- package/src/styles/semantics/index.ts +1 -0
- package/src/styles/semantics/zIndex.ts +18 -0
- package/src/styles/utilities/breakpoints.ts +6 -6
- package/src/styles/utilities/index.ts +3 -0
- package/src/styles/utilities/textStyles.ts +71 -1
- package/src/utils/splitProps.ts +4 -4
- package/dist/preset-BzrKiUEH.js.map +0 -1
- package/dist/styles/global.css +0 -148
- package/dist/styles/recipes/avatar.css +0 -185
- package/dist/styles/recipes/badge.css +0 -85
- package/dist/styles/recipes/breadcrumbs.css +0 -38
- package/dist/styles/recipes/button.css +0 -195
- package/dist/styles/recipes/card.css +0 -57
- package/dist/styles/recipes/checkbox-input.css +0 -12
- package/dist/styles/recipes/checkbox.css +0 -90
- package/dist/styles/recipes/chip.css +0 -137
- package/dist/styles/recipes/code.css +0 -12
- package/dist/styles/recipes/divider.css +0 -43
- package/dist/styles/recipes/form-field.css +0 -39
- package/dist/styles/recipes/heading.css +0 -40
- package/dist/styles/recipes/icon-button.css +0 -181
- package/dist/styles/recipes/label.css +0 -14
- package/dist/styles/recipes/link.css +0 -49
- package/dist/styles/recipes/menu.css +0 -141
- package/dist/styles/recipes/modal.css +0 -99
- package/dist/styles/recipes/pre.css +0 -16
- package/dist/styles/recipes/radio-input.css +0 -7
- package/dist/styles/recipes/radio.css +0 -82
- package/dist/styles/recipes/select.css +0 -103
- package/dist/styles/recipes/spinner.css +0 -36
- package/dist/styles/recipes/tag.css +0 -27
- package/dist/styles/recipes/text.css +0 -46
- package/dist/styles/recipes/textarea.css +0 -91
- package/dist/styles/recipes/textinput.css +0 -87
- package/dist/styles/recipes/theme-switcher.css +0 -53
- package/dist/styles/recipes/toggle-input.css +0 -12
- package/dist/styles/recipes/toggle.css +0 -125
- package/dist/styles/recipes/tooltip.css +0 -133
- package/dist/styles/recipes.css +0 -30
- package/dist/styles/reset.css +0 -1
- package/dist/styles/tokens.css +0 -1016
- package/dist/styles/utilities.css +0 -1694
- package/src/recipes/checkboxinput.ts +0 -15
- package/src/recipes/radioinput.ts +0 -12
- package/src/recipes/textinput.ts +0 -100
- package/src/recipes/toggleinput.ts +0 -16
- package/src/utils/injectSprite.ts +0 -36
- package/src/utils/spriteContent.ts +0 -4
|
@@ -102,8 +102,12 @@ export const colors = defineSemanticTokens.colors({
|
|
|
102
102
|
subtle: {
|
|
103
103
|
DEFAULT: { value: { base: '#00000029', _dark: '#ffffff29' } },
|
|
104
104
|
hovered: { value: { base: '#0000003d', _dark: '#ffffff3d' } },
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
solid: {
|
|
108
|
+
value: {
|
|
109
|
+
base: '{colors.neutral.20}',
|
|
110
|
+
_dark: '{colors.darkNeutral.20}',
|
|
107
111
|
},
|
|
108
112
|
},
|
|
109
113
|
},
|
|
@@ -297,13 +301,13 @@ export const colors = defineSemanticTokens.colors({
|
|
|
297
301
|
},
|
|
298
302
|
blue: {
|
|
299
303
|
DEFAULT: {
|
|
300
|
-
value: { base: '{colors.blue.40}', _dark: '{colors.blue.
|
|
304
|
+
value: { base: '{colors.blue.40}', _dark: '{colors.blue.70}' },
|
|
301
305
|
},
|
|
302
306
|
subtle: {
|
|
303
|
-
value: { base: '{colors.blue.20}', _dark: '{colors.blue.
|
|
307
|
+
value: { base: '{colors.blue.20}', _dark: '{colors.blue.80}' },
|
|
304
308
|
},
|
|
305
309
|
subtlest: {
|
|
306
|
-
value: { base: '{colors.blue.10}', _dark: '{colors.blue.
|
|
310
|
+
value: { base: '{colors.blue.10}', _dark: '{colors.blue.90}' },
|
|
307
311
|
},
|
|
308
312
|
bold: {
|
|
309
313
|
value: { base: '{colors.blue.70}', _dark: '{colors.blue.40}' },
|
|
@@ -311,10 +315,10 @@ export const colors = defineSemanticTokens.colors({
|
|
|
311
315
|
},
|
|
312
316
|
green: {
|
|
313
317
|
DEFAULT: {
|
|
314
|
-
value: { base: '{colors.green.40}', _dark: '{colors.green.
|
|
318
|
+
value: { base: '{colors.green.40}', _dark: '{colors.green.70}' },
|
|
315
319
|
},
|
|
316
320
|
subtle: {
|
|
317
|
-
value: { base: '{colors.green.20}', _dark: '{colors.green.
|
|
321
|
+
value: { base: '{colors.green.20}', _dark: '{colors.green.80}' },
|
|
318
322
|
},
|
|
319
323
|
subtlest: {
|
|
320
324
|
value: { base: '{colors.green.10}', _dark: '{colors.green.90}' },
|
|
@@ -325,10 +329,10 @@ export const colors = defineSemanticTokens.colors({
|
|
|
325
329
|
},
|
|
326
330
|
indigo: {
|
|
327
331
|
DEFAULT: {
|
|
328
|
-
value: { base: '{colors.indigo.40}', _dark: '{colors.indigo.
|
|
332
|
+
value: { base: '{colors.indigo.40}', _dark: '{colors.indigo.70}' },
|
|
329
333
|
},
|
|
330
334
|
subtle: {
|
|
331
|
-
value: { base: '{colors.indigo.20}', _dark: '{colors.indigo.
|
|
335
|
+
value: { base: '{colors.indigo.20}', _dark: '{colors.indigo.80}' },
|
|
332
336
|
},
|
|
333
337
|
subtlest: {
|
|
334
338
|
value: { base: '{colors.indigo.10}', _dark: '{colors.indigo.90}' },
|
|
@@ -339,10 +343,10 @@ export const colors = defineSemanticTokens.colors({
|
|
|
339
343
|
},
|
|
340
344
|
lime: {
|
|
341
345
|
DEFAULT: {
|
|
342
|
-
value: { base: '{colors.lime.40}', _dark: '{colors.lime.
|
|
346
|
+
value: { base: '{colors.lime.40}', _dark: '{colors.lime.70}' },
|
|
343
347
|
},
|
|
344
348
|
subtle: {
|
|
345
|
-
value: { base: '{colors.lime.20}', _dark: '{colors.lime.
|
|
349
|
+
value: { base: '{colors.lime.20}', _dark: '{colors.lime.80}' },
|
|
346
350
|
},
|
|
347
351
|
subtlest: {
|
|
348
352
|
value: { base: '{colors.lime.10}', _dark: '{colors.lime.90}' },
|
|
@@ -353,10 +357,10 @@ export const colors = defineSemanticTokens.colors({
|
|
|
353
357
|
},
|
|
354
358
|
magenta: {
|
|
355
359
|
DEFAULT: {
|
|
356
|
-
value: { base: '{colors.magenta.40}', _dark: '{colors.magenta.
|
|
360
|
+
value: { base: '{colors.magenta.40}', _dark: '{colors.magenta.70}' },
|
|
357
361
|
},
|
|
358
362
|
subtle: {
|
|
359
|
-
value: { base: '{colors.magenta.20}', _dark: '{colors.magenta.
|
|
363
|
+
value: { base: '{colors.magenta.20}', _dark: '{colors.magenta.80}' },
|
|
360
364
|
},
|
|
361
365
|
subtlest: {
|
|
362
366
|
value: { base: '{colors.magenta.10}', _dark: '{colors.magenta.90}' },
|
|
@@ -367,10 +371,10 @@ export const colors = defineSemanticTokens.colors({
|
|
|
367
371
|
},
|
|
368
372
|
orange: {
|
|
369
373
|
DEFAULT: {
|
|
370
|
-
value: { base: '{colors.orange.40}', _dark: '{colors.orange.
|
|
374
|
+
value: { base: '{colors.orange.40}', _dark: '{colors.orange.70}' },
|
|
371
375
|
},
|
|
372
376
|
subtle: {
|
|
373
|
-
value: { base: '{colors.orange.20}', _dark: '{colors.orange.
|
|
377
|
+
value: { base: '{colors.orange.20}', _dark: '{colors.orange.80}' },
|
|
374
378
|
},
|
|
375
379
|
subtlest: {
|
|
376
380
|
value: { base: '{colors.orange.10}', _dark: '{colors.orange.90}' },
|
|
@@ -381,10 +385,10 @@ export const colors = defineSemanticTokens.colors({
|
|
|
381
385
|
},
|
|
382
386
|
purple: {
|
|
383
387
|
DEFAULT: {
|
|
384
|
-
value: { base: '{colors.purple.40}', _dark: '{colors.purple.
|
|
388
|
+
value: { base: '{colors.purple.40}', _dark: '{colors.purple.70}' },
|
|
385
389
|
},
|
|
386
390
|
subtle: {
|
|
387
|
-
value: { base: '{colors.purple.20}', _dark: '{colors.purple.
|
|
391
|
+
value: { base: '{colors.purple.20}', _dark: '{colors.purple.80}' },
|
|
388
392
|
},
|
|
389
393
|
subtlest: {
|
|
390
394
|
value: { base: '{colors.purple.10}', _dark: '{colors.purple.90}' },
|
|
@@ -395,13 +399,13 @@ export const colors = defineSemanticTokens.colors({
|
|
|
395
399
|
},
|
|
396
400
|
red: {
|
|
397
401
|
DEFAULT: {
|
|
398
|
-
value: { base: '{colors.red.40}', _dark: '{colors.red.
|
|
402
|
+
value: { base: '{colors.red.40}', _dark: '{colors.red.70}' },
|
|
399
403
|
},
|
|
400
404
|
subtle: {
|
|
401
|
-
value: { base: '{colors.red.20}', _dark: '{colors.red.
|
|
405
|
+
value: { base: '{colors.red.20}', _dark: '{colors.red.80}' },
|
|
402
406
|
},
|
|
403
407
|
subtlest: {
|
|
404
|
-
value: { base: '{colors.red.10}', _dark: '{colors.red.
|
|
408
|
+
value: { base: '{colors.red.10}', _dark: '{colors.red.90}' },
|
|
405
409
|
},
|
|
406
410
|
bold: {
|
|
407
411
|
value: { base: '{colors.red.70}', _dark: '{colors.red.40}' },
|
|
@@ -409,10 +413,10 @@ export const colors = defineSemanticTokens.colors({
|
|
|
409
413
|
},
|
|
410
414
|
tan: {
|
|
411
415
|
DEFAULT: {
|
|
412
|
-
value: { base: '{colors.tan.40}', _dark: '{colors.tan.
|
|
416
|
+
value: { base: '{colors.tan.40}', _dark: '{colors.tan.70}' },
|
|
413
417
|
},
|
|
414
418
|
subtle: {
|
|
415
|
-
value: { base: '{colors.tan.20}', _dark: '{colors.tan.
|
|
419
|
+
value: { base: '{colors.tan.20}', _dark: '{colors.tan.80}' },
|
|
416
420
|
},
|
|
417
421
|
subtlest: {
|
|
418
422
|
value: { base: '{colors.tan.10}', _dark: '{colors.tan.90}' },
|
|
@@ -423,10 +427,10 @@ export const colors = defineSemanticTokens.colors({
|
|
|
423
427
|
},
|
|
424
428
|
teal: {
|
|
425
429
|
DEFAULT: {
|
|
426
|
-
value: { base: '{colors.teal.40}', _dark: '{colors.teal.
|
|
430
|
+
value: { base: '{colors.teal.40}', _dark: '{colors.teal.70}' },
|
|
427
431
|
},
|
|
428
432
|
subtle: {
|
|
429
|
-
value: { base: '{colors.teal.20}', _dark: '{colors.teal.
|
|
433
|
+
value: { base: '{colors.teal.20}', _dark: '{colors.teal.80}' },
|
|
430
434
|
},
|
|
431
435
|
subtlest: {
|
|
432
436
|
value: { base: '{colors.teal.10}', _dark: '{colors.teal.90}' },
|
|
@@ -464,10 +468,18 @@ export const colors = defineSemanticTokens.colors({
|
|
|
464
468
|
},
|
|
465
469
|
},
|
|
466
470
|
bold: {
|
|
467
|
-
value: { base: '{colors.neutral.
|
|
471
|
+
value: { base: '{colors.neutral.90}', _dark: '{colors.darkNeutral.90}' },
|
|
468
472
|
},
|
|
469
473
|
inverse: {
|
|
470
|
-
|
|
474
|
+
DEFAULT: {
|
|
475
|
+
value: { base: '{colors.neutral.0}', _dark: '{colors.darkNeutral.0}' },
|
|
476
|
+
},
|
|
477
|
+
focused: {
|
|
478
|
+
value: {
|
|
479
|
+
base: '{colors.darkNeutral.100}',
|
|
480
|
+
_dark: '{colors.neutral.90}',
|
|
481
|
+
},
|
|
482
|
+
},
|
|
471
483
|
},
|
|
472
484
|
disabled: {
|
|
473
485
|
value: {
|
|
@@ -484,17 +496,17 @@ export const colors = defineSemanticTokens.colors({
|
|
|
484
496
|
},
|
|
485
497
|
},
|
|
486
498
|
selected: {
|
|
487
|
-
value: { base: '{colors.blue.
|
|
499
|
+
value: { base: '{colors.blue.60}', _dark: '{colors.blue.40}' },
|
|
488
500
|
},
|
|
489
501
|
input: {
|
|
490
502
|
value: { base: '{colors.neutral.50}', _dark: '{colors.darkNeutral.60}' },
|
|
491
503
|
},
|
|
492
|
-
success: { value: { base: '{colors.lime.
|
|
504
|
+
success: { value: { base: '{colors.lime.50}', _dark: '{colors.lime.50}' } },
|
|
493
505
|
warning: {
|
|
494
|
-
value: { base: '{colors.orange.
|
|
506
|
+
value: { base: '{colors.orange.50}', _dark: '{colors.orange.50}' },
|
|
495
507
|
},
|
|
496
|
-
danger: { value: { base: '{colors.red.
|
|
497
|
-
info: { value: { base: '{colors.blue.
|
|
508
|
+
danger: { value: { base: '{colors.red.50}', _dark: '{colors.red.50}' } },
|
|
509
|
+
info: { value: { base: '{colors.blue.50}', _dark: '{colors.blue.50}' } },
|
|
498
510
|
},
|
|
499
511
|
icon: {
|
|
500
512
|
DEFAULT: {
|
|
@@ -513,7 +525,7 @@ export const colors = defineSemanticTokens.colors({
|
|
|
513
525
|
value: { base: '{colors.neutral.0}', _dark: '{colors.darkNeutral.10}' },
|
|
514
526
|
},
|
|
515
527
|
selected: {
|
|
516
|
-
value: { base: '{colors.blue.
|
|
528
|
+
value: { base: '{colors.blue.60}', _dark: '{colors.blue.40}' },
|
|
517
529
|
},
|
|
518
530
|
disabled: {
|
|
519
531
|
value: {
|
|
@@ -545,6 +557,12 @@ export const colors = defineSemanticTokens.colors({
|
|
|
545
557
|
},
|
|
546
558
|
},
|
|
547
559
|
},
|
|
560
|
+
subtle: {
|
|
561
|
+
value: {
|
|
562
|
+
base: '{colors.neutral.40}',
|
|
563
|
+
_dark: '{colors.darkNeutral.50}',
|
|
564
|
+
},
|
|
565
|
+
},
|
|
548
566
|
},
|
|
549
567
|
success: { value: { base: '{colors.lime.60}', _dark: '{colors.lime.50}' } },
|
|
550
568
|
warning: {
|
|
@@ -558,12 +576,15 @@ export const colors = defineSemanticTokens.colors({
|
|
|
558
576
|
},
|
|
559
577
|
},
|
|
560
578
|
},
|
|
561
|
-
danger: {
|
|
579
|
+
danger: {
|
|
580
|
+
DEFAULT: { value: { base: '{colors.red.70}', _dark: '{colors.red.50}' } },
|
|
581
|
+
inverse: { value: { base: '{colors.red.10}', _dark: '{colors.red.70}' } },
|
|
582
|
+
},
|
|
562
583
|
info: { value: { base: '{colors.blue.60}', _dark: '{colors.blue.50}' } },
|
|
563
584
|
},
|
|
564
585
|
link: {
|
|
565
|
-
DEFAULT: { value: { base: '{colors.blue.
|
|
566
|
-
pressed: { value: { base: '{colors.blue.
|
|
586
|
+
DEFAULT: { value: { base: '{colors.blue.50}', _dark: '{colors.blue.40}' } },
|
|
587
|
+
pressed: { value: { base: '{colors.blue.60}', _dark: '{colors.blue.50}' } },
|
|
567
588
|
},
|
|
568
589
|
surface: {
|
|
569
590
|
DEFAULT: {
|
|
@@ -578,6 +599,23 @@ export const colors = defineSemanticTokens.colors({
|
|
|
578
599
|
sunken: {
|
|
579
600
|
value: { base: '{colors.neutral.10}', _dark: '{colors.darkNeutral.0}' },
|
|
580
601
|
},
|
|
602
|
+
raised: {
|
|
603
|
+
DEFAULT: {
|
|
604
|
+
value: { base: '{colors.neutral.0}', _dark: '{colors.darkNeutral.0}' },
|
|
605
|
+
},
|
|
606
|
+
hovered: {
|
|
607
|
+
value: {
|
|
608
|
+
base: '{colors.neutral.20}',
|
|
609
|
+
_dark: '{colors.darkNeutral.25}',
|
|
610
|
+
},
|
|
611
|
+
},
|
|
612
|
+
pressed: {
|
|
613
|
+
value: {
|
|
614
|
+
base: '{colors.neutral.30}',
|
|
615
|
+
_dark: '{colors.darkNeutral.30}',
|
|
616
|
+
},
|
|
617
|
+
},
|
|
618
|
+
},
|
|
581
619
|
overlay: {
|
|
582
620
|
DEFAULT: {
|
|
583
621
|
value: { base: '{colors.neutral.0}', _dark: '{colors.darkNeutral.25}' },
|
|
@@ -595,20 +633,20 @@ export const colors = defineSemanticTokens.colors({
|
|
|
595
633
|
},
|
|
596
634
|
},
|
|
597
635
|
},
|
|
598
|
-
|
|
636
|
+
selected: {
|
|
599
637
|
DEFAULT: {
|
|
600
|
-
value: { base: '{colors.
|
|
638
|
+
value: { base: '{colors.blue.10}', _dark: '{colors.blue.70}' },
|
|
601
639
|
},
|
|
602
640
|
hovered: {
|
|
603
641
|
value: {
|
|
604
|
-
base: '{colors.
|
|
605
|
-
_dark: '{colors.
|
|
642
|
+
base: '{colors.blue.10}',
|
|
643
|
+
_dark: '{colors.blue.60}',
|
|
606
644
|
},
|
|
607
645
|
},
|
|
608
646
|
pressed: {
|
|
609
647
|
value: {
|
|
610
|
-
base: '{colors.
|
|
611
|
-
_dark: '{colors.
|
|
648
|
+
base: '{colors.blue.20}',
|
|
649
|
+
_dark: '{colors.blue.80}',
|
|
612
650
|
},
|
|
613
651
|
},
|
|
614
652
|
},
|
|
@@ -626,20 +664,28 @@ export const colors = defineSemanticTokens.colors({
|
|
|
626
664
|
subtlest: {
|
|
627
665
|
value: { base: '{colors.neutral.70}', _dark: '{colors.darkNeutral.70}' },
|
|
628
666
|
},
|
|
629
|
-
placeholder: {
|
|
630
|
-
value: { base: '{colors.neutral.50}', _dark: '{colors.darkNeutral.60}' },
|
|
631
|
-
},
|
|
632
667
|
bold: {
|
|
633
668
|
value: {
|
|
634
|
-
base: '{colors.neutral.
|
|
669
|
+
base: '{colors.neutral.110}',
|
|
635
670
|
_dark: '{colors.darkNeutral.110}',
|
|
636
671
|
},
|
|
637
672
|
},
|
|
638
673
|
inverse: {
|
|
639
|
-
|
|
674
|
+
DEFAULT: {
|
|
675
|
+
value: { base: '{colors.neutral.0}', _dark: '{colors.darkNeutral.10}' },
|
|
676
|
+
},
|
|
677
|
+
subtlest: {
|
|
678
|
+
value: {
|
|
679
|
+
base: '{colors.neutral.40}',
|
|
680
|
+
_dark: '{colors.darkNeutral.40}',
|
|
681
|
+
},
|
|
682
|
+
},
|
|
640
683
|
},
|
|
641
684
|
selected: {
|
|
642
|
-
value: { base: '{colors.blue.
|
|
685
|
+
value: { base: '{colors.blue.60}', _dark: '{colors.blue.40}' },
|
|
686
|
+
},
|
|
687
|
+
placeholder: {
|
|
688
|
+
value: { base: '{colors.neutral.40}', _dark: '{colors.darkNeutral.40}' },
|
|
643
689
|
},
|
|
644
690
|
disabled: {
|
|
645
691
|
value: {
|
|
@@ -647,20 +693,34 @@ export const colors = defineSemanticTokens.colors({
|
|
|
647
693
|
_dark: '{colors.darkNeutralA.40}',
|
|
648
694
|
},
|
|
649
695
|
},
|
|
650
|
-
success: {
|
|
696
|
+
success: {
|
|
697
|
+
DEFAULT: {
|
|
698
|
+
value: { base: '{colors.lime.50}', _dark: '{colors.lime.30}' },
|
|
699
|
+
},
|
|
700
|
+
inverse: {
|
|
701
|
+
value: { base: '{colors.lime.30}', _dark: '{colors.lime.50}' },
|
|
702
|
+
},
|
|
703
|
+
},
|
|
651
704
|
warning: {
|
|
652
705
|
DEFAULT: {
|
|
653
|
-
value: { base: '{colors.orange.
|
|
706
|
+
value: { base: '{colors.orange.60}', _dark: '{colors.orange.40}' },
|
|
654
707
|
},
|
|
655
708
|
inverse: {
|
|
656
|
-
value: {
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
709
|
+
value: { base: '{colors.orange.40}', _dark: '{colors.orange.60}' },
|
|
710
|
+
},
|
|
711
|
+
},
|
|
712
|
+
danger: {
|
|
713
|
+
DEFAULT: { value: { base: '{colors.red.50}', _dark: '{colors.red.30}' } },
|
|
714
|
+
inverse: { value: { base: '{colors.red.30}', _dark: '{colors.red.50}' } },
|
|
715
|
+
},
|
|
716
|
+
info: {
|
|
717
|
+
DEFAULT: {
|
|
718
|
+
value: { base: '{colors.blue.50}', _dark: '{colors.blue.40}' },
|
|
719
|
+
},
|
|
720
|
+
inverse: {
|
|
721
|
+
value: { base: '{colors.blue.40}', _dark: '{colors.blue.50}' },
|
|
660
722
|
},
|
|
661
723
|
},
|
|
662
|
-
danger: { value: { base: '{colors.red.80}', _dark: '{colors.red.30}' } },
|
|
663
|
-
info: { value: { base: '{colors.blue.80}', _dark: '{colors.blue.30}' } },
|
|
664
724
|
accent: {
|
|
665
725
|
neutral: {
|
|
666
726
|
DEFAULT: {
|
|
@@ -678,97 +738,92 @@ export const colors = defineSemanticTokens.colors({
|
|
|
678
738
|
},
|
|
679
739
|
red: {
|
|
680
740
|
DEFAULT: {
|
|
681
|
-
value: { base: '{colors.red.
|
|
741
|
+
value: { base: '{colors.red.50}', _dark: '{colors.red.30}' },
|
|
682
742
|
},
|
|
683
743
|
bold: {
|
|
684
|
-
value: { base: '{colors.red.
|
|
744
|
+
value: { base: '{colors.red.60}', _dark: '{colors.red.20}' },
|
|
685
745
|
},
|
|
686
746
|
},
|
|
687
747
|
orange: {
|
|
688
748
|
DEFAULT: {
|
|
689
|
-
value: { base: '{colors.orange.
|
|
749
|
+
value: { base: '{colors.orange.60}', _dark: '{colors.orange.50}' },
|
|
690
750
|
},
|
|
691
751
|
bold: {
|
|
692
|
-
value: { base: '{colors.orange.
|
|
752
|
+
value: { base: '{colors.orange.70}', _dark: '{colors.orange.30}' },
|
|
693
753
|
},
|
|
694
754
|
},
|
|
695
755
|
yellow: {
|
|
696
756
|
DEFAULT: {
|
|
697
|
-
value: { base: '{colors.yellow.
|
|
757
|
+
value: { base: '{colors.yellow.50}', _dark: '{colors.yellow.30}' },
|
|
698
758
|
},
|
|
699
759
|
bold: {
|
|
700
|
-
value: { base: '{colors.yellow.
|
|
760
|
+
value: { base: '{colors.yellow.60}', _dark: '{colors.yellow.20}' },
|
|
701
761
|
},
|
|
702
762
|
},
|
|
703
763
|
lime: {
|
|
704
764
|
DEFAULT: {
|
|
705
|
-
value: { base: '{colors.lime.
|
|
765
|
+
value: { base: '{colors.lime.50}', _dark: '{colors.lime.40}' },
|
|
706
766
|
},
|
|
707
767
|
bold: {
|
|
708
|
-
value: { base: '{colors.lime.
|
|
768
|
+
value: { base: '{colors.lime.60}', _dark: '{colors.lime.20}' },
|
|
709
769
|
},
|
|
710
770
|
},
|
|
711
771
|
green: {
|
|
712
772
|
DEFAULT: {
|
|
713
|
-
value: { base: '{colors.green.
|
|
773
|
+
value: { base: '{colors.green.50}', _dark: '{colors.green.40}' },
|
|
714
774
|
},
|
|
715
775
|
bold: {
|
|
716
|
-
value: { base: '{colors.green.
|
|
776
|
+
value: { base: '{colors.green.60}', _dark: '{colors.green.20}' },
|
|
717
777
|
},
|
|
718
778
|
},
|
|
719
779
|
teal: {
|
|
720
780
|
DEFAULT: {
|
|
721
|
-
value: { base: '{colors.teal.
|
|
781
|
+
value: { base: '{colors.teal.50}', _dark: '{colors.teal.40}' },
|
|
722
782
|
},
|
|
723
783
|
bold: {
|
|
724
|
-
value: { base: '{colors.teal.
|
|
784
|
+
value: { base: '{colors.teal.60}', _dark: '{colors.teal.20}' },
|
|
725
785
|
},
|
|
726
786
|
},
|
|
727
787
|
blue: {
|
|
728
788
|
DEFAULT: {
|
|
729
|
-
value: { base: '{colors.blue.
|
|
789
|
+
value: { base: '{colors.blue.50}', _dark: '{colors.blue.40}' },
|
|
730
790
|
},
|
|
731
791
|
bold: {
|
|
732
|
-
value: { base: '{colors.blue.
|
|
792
|
+
value: { base: '{colors.blue.60}', _dark: '{colors.blue.30}' },
|
|
733
793
|
},
|
|
734
794
|
},
|
|
735
795
|
indigo: {
|
|
736
796
|
DEFAULT: {
|
|
737
|
-
value: { base: '{colors.indigo.
|
|
797
|
+
value: { base: '{colors.indigo.40}', _dark: '{colors.indigo.20}' },
|
|
738
798
|
},
|
|
739
799
|
bold: {
|
|
740
|
-
value: { base: '{colors.indigo.
|
|
800
|
+
value: { base: '{colors.indigo.60}', _dark: '{colors.indigo.10}' },
|
|
741
801
|
},
|
|
742
802
|
},
|
|
743
803
|
purple: {
|
|
744
804
|
DEFAULT: {
|
|
745
|
-
value: { base: '{colors.purple.
|
|
805
|
+
value: { base: '{colors.purple.50}', _dark: '{colors.purple.40}' },
|
|
746
806
|
},
|
|
747
807
|
bold: {
|
|
748
|
-
value: { base: '{colors.purple.
|
|
808
|
+
value: { base: '{colors.purple.60}', _dark: '{colors.purple.30}' },
|
|
749
809
|
},
|
|
750
810
|
},
|
|
751
811
|
magenta: {
|
|
752
812
|
DEFAULT: {
|
|
753
|
-
value: { base: '{colors.magenta.
|
|
813
|
+
value: { base: '{colors.magenta.60}', _dark: '{colors.magenta.40}' },
|
|
754
814
|
},
|
|
755
815
|
bold: {
|
|
756
|
-
value: { base: '{colors.magenta.
|
|
816
|
+
value: { base: '{colors.magenta.70}', _dark: '{colors.magenta.30}' },
|
|
757
817
|
},
|
|
758
818
|
},
|
|
759
819
|
tan: {
|
|
760
820
|
DEFAULT: {
|
|
761
|
-
value: { base: '{colors.tan.
|
|
821
|
+
value: { base: '{colors.tan.50}', _dark: '{colors.tan.30}' },
|
|
762
822
|
},
|
|
763
823
|
bold: {
|
|
764
|
-
value: { base: '{colors.tan.
|
|
824
|
+
value: { base: '{colors.tan.60}', _dark: '{colors.tan.20}' },
|
|
765
825
|
},
|
|
766
826
|
},
|
|
767
827
|
},
|
|
768
828
|
},
|
|
769
|
-
utility: {
|
|
770
|
-
shadowColor: {
|
|
771
|
-
value: { base: '{colors.slate.90/20}', _dark: '{colors.slate.100/40}' },
|
|
772
|
-
},
|
|
773
|
-
},
|
|
774
829
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineSemanticTokens } from '@pandacss/dev';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Z-index elevation scale — mirrors shadow and surface naming:
|
|
5
|
+
* raised → shadows.raised / surface.raised (internal component stacking)
|
|
6
|
+
* elevated → shadows.elevated (menus, dropdowns)
|
|
7
|
+
* overlay → shadows.overlay / surface.overlay (modal backdrop)
|
|
8
|
+
* modal → (modal container, above backdrop)
|
|
9
|
+
* tooltip → (always on top)
|
|
10
|
+
*/
|
|
11
|
+
export const zIndex = defineSemanticTokens.zIndex({
|
|
12
|
+
base: { value: '{zIndex.0}' },
|
|
13
|
+
raised: { value: '{zIndex.1}' },
|
|
14
|
+
elevated: { value: '{zIndex.1000}' },
|
|
15
|
+
overlay: { value: '{zIndex.1100}' },
|
|
16
|
+
modal: { value: '{zIndex.1101}' },
|
|
17
|
+
tooltip: { value: '{zIndex.1200}' },
|
|
18
|
+
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export const breakpoints = {
|
|
2
|
-
xs: '
|
|
3
|
-
sm: '
|
|
4
|
-
md: '
|
|
5
|
-
lg: '
|
|
6
|
-
xl: '
|
|
7
|
-
'2xl': '
|
|
2
|
+
xs: '30rem', // 480px
|
|
3
|
+
sm: '40rem', // 640px
|
|
4
|
+
md: '48rem', // 768px
|
|
5
|
+
lg: '64rem', // 1024px
|
|
6
|
+
xl: '80rem', // 1280px
|
|
7
|
+
'2xl': '96rem', // 1536px
|
|
8
8
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
// Panda CSS treats these as distinct from tokens in the theme definition
|
|
2
|
+
|
|
1
3
|
export * from './breakpoints';
|
|
2
4
|
export * from './conditions';
|
|
3
5
|
export * from './containerSizes';
|
|
6
|
+
// Custom utilities we've added that are not part of Panda's core properties
|
|
4
7
|
export * from './filters';
|
|
5
8
|
export * from './globalStyle';
|
|
6
9
|
export * from './keyframes';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineStyles, defineTextStyles } from '@pandacss/dev';
|
|
2
2
|
|
|
3
3
|
const baseHeadingStyles = defineStyles({
|
|
4
4
|
value: {
|
|
@@ -18,6 +18,24 @@ const baseBodyTextStyles = defineStyles({
|
|
|
18
18
|
},
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
+
const baseSansTextStyles = defineStyles({
|
|
22
|
+
value: {
|
|
23
|
+
fontFamily: 'sans',
|
|
24
|
+
fontWeight: 'normal',
|
|
25
|
+
color: 'text.subtlest',
|
|
26
|
+
lineHeight: 'default',
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const baseSerifTextStyles = defineStyles({
|
|
31
|
+
value: {
|
|
32
|
+
fontFamily: 'serif',
|
|
33
|
+
fontWeight: 'normal',
|
|
34
|
+
color: 'text.subtlest',
|
|
35
|
+
lineHeight: 'default',
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
|
|
21
39
|
const baseMonoStyles = defineStyles({
|
|
22
40
|
value: {
|
|
23
41
|
fontFamily: 'mono',
|
|
@@ -106,6 +124,58 @@ export const textStyles = defineTextStyles({
|
|
|
106
124
|
},
|
|
107
125
|
},
|
|
108
126
|
},
|
|
127
|
+
sans: {
|
|
128
|
+
lg: {
|
|
129
|
+
value: {
|
|
130
|
+
...baseSansTextStyles,
|
|
131
|
+
fontSize: '20',
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
md: {
|
|
135
|
+
value: {
|
|
136
|
+
...baseSansTextStyles,
|
|
137
|
+
fontSize: '16',
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
sm: {
|
|
141
|
+
value: {
|
|
142
|
+
...baseSansTextStyles,
|
|
143
|
+
fontSize: '14',
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
xs: {
|
|
147
|
+
value: {
|
|
148
|
+
...baseSansTextStyles,
|
|
149
|
+
fontSize: '12',
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
serif: {
|
|
154
|
+
lg: {
|
|
155
|
+
value: {
|
|
156
|
+
...baseSerifTextStyles,
|
|
157
|
+
fontSize: '20',
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
md: {
|
|
161
|
+
value: {
|
|
162
|
+
...baseSerifTextStyles,
|
|
163
|
+
fontSize: '16',
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
sm: {
|
|
167
|
+
value: {
|
|
168
|
+
...baseSerifTextStyles,
|
|
169
|
+
fontSize: '14',
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
xs: {
|
|
173
|
+
value: {
|
|
174
|
+
...baseSerifTextStyles,
|
|
175
|
+
fontSize: '12',
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
},
|
|
109
179
|
mono: {
|
|
110
180
|
lg: {
|
|
111
181
|
value: {
|
package/src/utils/splitProps.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { splitCssProps } from '@styled-system/jsx';
|
|
2
1
|
import { css, cx } from '@styled-system/css';
|
|
2
|
+
import { splitCssProps } from '@styled-system/jsx';
|
|
3
|
+
|
|
4
|
+
type PropsRecord = Record<string, unknown>;
|
|
3
5
|
|
|
4
|
-
export const splitProps = (
|
|
5
|
-
props: Record<string, unknown>,
|
|
6
|
-
): [string, Record<string, unknown>] => {
|
|
6
|
+
export const splitProps = (props: PropsRecord): [string, PropsRecord] => {
|
|
7
7
|
const [cssProps, otherProps] = splitCssProps(props);
|
|
8
8
|
const { css: cssProp, ...styleProps } = cssProps;
|
|
9
9
|
|