@weasel-js/theme 1.9.1 → 1.9.3
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/{chunk-VUNWK7T2.js → chunk-7FYXA7TA.js} +212 -2
- package/dist/chunk-7FYXA7TA.js.map +1 -0
- package/dist/{definition-BQHKxPoy.d.ts → definition-DACR1H4A.d.ts} +43 -1
- package/dist/engine.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +2 -2
- package/dist/tokens.css +28 -0
- package/package.json +2 -2
- package/dist/chunk-VUNWK7T2.js.map +0 -1
|
@@ -49,6 +49,7 @@ var THEMES = {
|
|
|
49
49
|
"--wzl-space-8": "16px",
|
|
50
50
|
"--wzl-surface": "#181a1e",
|
|
51
51
|
"--wzl-surface-raised": "#25272c",
|
|
52
|
+
"--wzl-surface-popover": "#25272c",
|
|
52
53
|
"--wzl-surface-sunken": "#0e0f12",
|
|
53
54
|
"--wzl-fg": "#e6e7e9",
|
|
54
55
|
"--wzl-fg-muted": "rgb(from currentColor r g b / 0.7)",
|
|
@@ -61,6 +62,12 @@ var THEMES = {
|
|
|
61
62
|
"--wzl-secondary-fg": "#dc9d15",
|
|
62
63
|
"--wzl-fg-inverse": "#0e0f12",
|
|
63
64
|
"--wzl-shadow": "rgba(0, 0, 0, 0.6)",
|
|
65
|
+
"--wzl-code-keyword": "#955cf9",
|
|
66
|
+
"--wzl-code-string": "#48e628",
|
|
67
|
+
"--wzl-code-number": "#e69628",
|
|
68
|
+
"--wzl-code-constant": "#3ee1cb",
|
|
69
|
+
"--wzl-code-property": "#36bff2",
|
|
70
|
+
"--wzl-code-name": "#fa4590",
|
|
64
71
|
"--wzl-panel-surface": "#25272c",
|
|
65
72
|
"--wzl-panel-border-color": "#25272c",
|
|
66
73
|
"--wzl-panel-border-style": "solid",
|
|
@@ -220,6 +227,7 @@ var THEMES = {
|
|
|
220
227
|
"--wzl-space-8": "16px",
|
|
221
228
|
"--wzl-surface": "#181a1e",
|
|
222
229
|
"--wzl-surface-raised": "#25272c",
|
|
230
|
+
"--wzl-surface-popover": "#25272c",
|
|
223
231
|
"--wzl-surface-sunken": "#0e0f12",
|
|
224
232
|
"--wzl-fg": "#e6e7e9",
|
|
225
233
|
"--wzl-fg-muted": "rgb(from currentColor r g b / 0.7)",
|
|
@@ -232,6 +240,12 @@ var THEMES = {
|
|
|
232
240
|
"--wzl-secondary-fg": "#dc9d15",
|
|
233
241
|
"--wzl-fg-inverse": "#0e0f12",
|
|
234
242
|
"--wzl-shadow": "rgba(0, 0, 0, 0.6)",
|
|
243
|
+
"--wzl-code-keyword": "#955cf9",
|
|
244
|
+
"--wzl-code-string": "#48e628",
|
|
245
|
+
"--wzl-code-number": "#e69628",
|
|
246
|
+
"--wzl-code-constant": "#3ee1cb",
|
|
247
|
+
"--wzl-code-property": "#36bff2",
|
|
248
|
+
"--wzl-code-name": "#fa4590",
|
|
235
249
|
"--wzl-panel-surface": "#25272c",
|
|
236
250
|
"--wzl-panel-border-color": "#25272c",
|
|
237
251
|
"--wzl-panel-border-style": "solid",
|
|
@@ -391,6 +405,7 @@ var THEMES = {
|
|
|
391
405
|
"--wzl-space-8": "16px",
|
|
392
406
|
"--wzl-surface": "#181a1e",
|
|
393
407
|
"--wzl-surface-raised": "#25272c",
|
|
408
|
+
"--wzl-surface-popover": "#25272c",
|
|
394
409
|
"--wzl-surface-sunken": "#0e0f12",
|
|
395
410
|
"--wzl-fg": "#e6e7e9",
|
|
396
411
|
"--wzl-fg-muted": "rgb(from currentColor r g b / 0.7)",
|
|
@@ -403,6 +418,12 @@ var THEMES = {
|
|
|
403
418
|
"--wzl-secondary-fg": "#dc9d15",
|
|
404
419
|
"--wzl-fg-inverse": "#0e0f12",
|
|
405
420
|
"--wzl-shadow": "rgba(0, 0, 0, 0.6)",
|
|
421
|
+
"--wzl-code-keyword": "#955cf9",
|
|
422
|
+
"--wzl-code-string": "#48e628",
|
|
423
|
+
"--wzl-code-number": "#e69628",
|
|
424
|
+
"--wzl-code-constant": "#3ee1cb",
|
|
425
|
+
"--wzl-code-property": "#36bff2",
|
|
426
|
+
"--wzl-code-name": "#fa4590",
|
|
406
427
|
"--wzl-panel-surface": "#25272c",
|
|
407
428
|
"--wzl-panel-border-color": "#25272c",
|
|
408
429
|
"--wzl-panel-border-style": "solid",
|
|
@@ -562,6 +583,7 @@ var THEMES = {
|
|
|
562
583
|
"--wzl-space-8": "16px",
|
|
563
584
|
"--wzl-surface": "#f5f5f6",
|
|
564
585
|
"--wzl-surface-raised": "#e6e7e9",
|
|
586
|
+
"--wzl-surface-popover": "#e6e7e9",
|
|
565
587
|
"--wzl-surface-sunken": "#c9cbcf",
|
|
566
588
|
"--wzl-fg": "#0e0f12",
|
|
567
589
|
"--wzl-fg-muted": "rgb(from currentColor r g b / 0.78)",
|
|
@@ -574,6 +596,12 @@ var THEMES = {
|
|
|
574
596
|
"--wzl-secondary-fg": "#016458",
|
|
575
597
|
"--wzl-fg-inverse": "#f5f5f6",
|
|
576
598
|
"--wzl-shadow": "rgba(0, 0, 0, 0.18)",
|
|
599
|
+
"--wzl-code-keyword": "#6d28d9",
|
|
600
|
+
"--wzl-code-string": "#15803d",
|
|
601
|
+
"--wzl-code-number": "#b45309",
|
|
602
|
+
"--wzl-code-constant": "#0f766e",
|
|
603
|
+
"--wzl-code-property": "#0369a1",
|
|
604
|
+
"--wzl-code-name": "#be123c",
|
|
577
605
|
"--wzl-panel-surface": "#e6e7e9",
|
|
578
606
|
"--wzl-panel-border-color": "#c9cbcf",
|
|
579
607
|
"--wzl-panel-border-style": "solid",
|
|
@@ -733,6 +761,7 @@ var THEMES = {
|
|
|
733
761
|
"--wzl-space-8": "16px",
|
|
734
762
|
"--wzl-surface": "#f5f5f6",
|
|
735
763
|
"--wzl-surface-raised": "#e6e7e9",
|
|
764
|
+
"--wzl-surface-popover": "#e6e7e9",
|
|
736
765
|
"--wzl-surface-sunken": "#c9cbcf",
|
|
737
766
|
"--wzl-fg": "#0e0f12",
|
|
738
767
|
"--wzl-fg-muted": "rgb(from currentColor r g b / 0.78)",
|
|
@@ -745,6 +774,12 @@ var THEMES = {
|
|
|
745
774
|
"--wzl-secondary-fg": "#016458",
|
|
746
775
|
"--wzl-fg-inverse": "#f5f5f6",
|
|
747
776
|
"--wzl-shadow": "rgba(0, 0, 0, 0.18)",
|
|
777
|
+
"--wzl-code-keyword": "#6d28d9",
|
|
778
|
+
"--wzl-code-string": "#15803d",
|
|
779
|
+
"--wzl-code-number": "#b45309",
|
|
780
|
+
"--wzl-code-constant": "#0f766e",
|
|
781
|
+
"--wzl-code-property": "#0369a1",
|
|
782
|
+
"--wzl-code-name": "#be123c",
|
|
748
783
|
"--wzl-panel-surface": "#e6e7e9",
|
|
749
784
|
"--wzl-panel-border-color": "#c9cbcf",
|
|
750
785
|
"--wzl-panel-border-style": "solid",
|
|
@@ -904,6 +939,7 @@ var THEMES = {
|
|
|
904
939
|
"--wzl-space-8": "16px",
|
|
905
940
|
"--wzl-surface": "#f5f5f6",
|
|
906
941
|
"--wzl-surface-raised": "#e6e7e9",
|
|
942
|
+
"--wzl-surface-popover": "#e6e7e9",
|
|
907
943
|
"--wzl-surface-sunken": "#c9cbcf",
|
|
908
944
|
"--wzl-fg": "#0e0f12",
|
|
909
945
|
"--wzl-fg-muted": "rgb(from currentColor r g b / 0.78)",
|
|
@@ -916,6 +952,12 @@ var THEMES = {
|
|
|
916
952
|
"--wzl-secondary-fg": "#016458",
|
|
917
953
|
"--wzl-fg-inverse": "#f5f5f6",
|
|
918
954
|
"--wzl-shadow": "rgba(0, 0, 0, 0.18)",
|
|
955
|
+
"--wzl-code-keyword": "#6d28d9",
|
|
956
|
+
"--wzl-code-string": "#15803d",
|
|
957
|
+
"--wzl-code-number": "#b45309",
|
|
958
|
+
"--wzl-code-constant": "#0f766e",
|
|
959
|
+
"--wzl-code-property": "#0369a1",
|
|
960
|
+
"--wzl-code-name": "#be123c",
|
|
919
961
|
"--wzl-panel-surface": "#e6e7e9",
|
|
920
962
|
"--wzl-panel-border-color": "#c9cbcf",
|
|
921
963
|
"--wzl-panel-border-style": "solid",
|
|
@@ -1234,6 +1276,18 @@ var THEME_SOURCES = {
|
|
|
1234
1276
|
"type": "color"
|
|
1235
1277
|
}
|
|
1236
1278
|
},
|
|
1279
|
+
"surface-popover": {
|
|
1280
|
+
"by": "mode",
|
|
1281
|
+
"dark": {
|
|
1282
|
+
"ref": "surface-raised",
|
|
1283
|
+
"type": "color",
|
|
1284
|
+
"description": "Background of a dropdown, menu or other popover list. Follows surface-raised unless a theme needs floating lists to read differently from the panels beneath them."
|
|
1285
|
+
},
|
|
1286
|
+
"light": {
|
|
1287
|
+
"ref": "surface-raised",
|
|
1288
|
+
"type": "color"
|
|
1289
|
+
}
|
|
1290
|
+
},
|
|
1237
1291
|
"surface-sunken": {
|
|
1238
1292
|
"by": "mode",
|
|
1239
1293
|
"dark": {
|
|
@@ -1378,6 +1432,78 @@ var THEME_SOURCES = {
|
|
|
1378
1432
|
"value": "rgba(0, 0, 0, 0.18)",
|
|
1379
1433
|
"type": "color"
|
|
1380
1434
|
}
|
|
1435
|
+
},
|
|
1436
|
+
"code-keyword": {
|
|
1437
|
+
"by": "mode",
|
|
1438
|
+
"dark": {
|
|
1439
|
+
"ref": "swatch-violet",
|
|
1440
|
+
"type": "color",
|
|
1441
|
+
"description": "Keywords in highlighted code."
|
|
1442
|
+
},
|
|
1443
|
+
"light": {
|
|
1444
|
+
"value": "#6d28d9",
|
|
1445
|
+
"type": "color"
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1448
|
+
"code-string": {
|
|
1449
|
+
"by": "mode",
|
|
1450
|
+
"dark": {
|
|
1451
|
+
"ref": "swatch-green",
|
|
1452
|
+
"type": "color",
|
|
1453
|
+
"description": "String literals in highlighted code."
|
|
1454
|
+
},
|
|
1455
|
+
"light": {
|
|
1456
|
+
"value": "#15803d",
|
|
1457
|
+
"type": "color"
|
|
1458
|
+
}
|
|
1459
|
+
},
|
|
1460
|
+
"code-number": {
|
|
1461
|
+
"by": "mode",
|
|
1462
|
+
"dark": {
|
|
1463
|
+
"ref": "swatch-amber",
|
|
1464
|
+
"type": "color",
|
|
1465
|
+
"description": "Numbers in highlighted code."
|
|
1466
|
+
},
|
|
1467
|
+
"light": {
|
|
1468
|
+
"value": "#b45309",
|
|
1469
|
+
"type": "color"
|
|
1470
|
+
}
|
|
1471
|
+
},
|
|
1472
|
+
"code-constant": {
|
|
1473
|
+
"by": "mode",
|
|
1474
|
+
"dark": {
|
|
1475
|
+
"ref": "swatch-teal",
|
|
1476
|
+
"type": "color",
|
|
1477
|
+
"description": "true, false, null and undefined in highlighted code."
|
|
1478
|
+
},
|
|
1479
|
+
"light": {
|
|
1480
|
+
"value": "#0f766e",
|
|
1481
|
+
"type": "color"
|
|
1482
|
+
}
|
|
1483
|
+
},
|
|
1484
|
+
"code-property": {
|
|
1485
|
+
"by": "mode",
|
|
1486
|
+
"dark": {
|
|
1487
|
+
"ref": "swatch-sky",
|
|
1488
|
+
"type": "color",
|
|
1489
|
+
"description": "Property keys and attribute names in highlighted code."
|
|
1490
|
+
},
|
|
1491
|
+
"light": {
|
|
1492
|
+
"value": "#0369a1",
|
|
1493
|
+
"type": "color"
|
|
1494
|
+
}
|
|
1495
|
+
},
|
|
1496
|
+
"code-name": {
|
|
1497
|
+
"by": "mode",
|
|
1498
|
+
"dark": {
|
|
1499
|
+
"ref": "swatch-rose",
|
|
1500
|
+
"type": "color",
|
|
1501
|
+
"description": "Functions, classes and other names in highlighted code."
|
|
1502
|
+
},
|
|
1503
|
+
"light": {
|
|
1504
|
+
"value": "#be123c",
|
|
1505
|
+
"type": "color"
|
|
1506
|
+
}
|
|
1381
1507
|
}
|
|
1382
1508
|
},
|
|
1383
1509
|
"components": {
|
|
@@ -2467,6 +2593,18 @@ var BAKED_THEMES = {
|
|
|
2467
2593
|
"value": "{gray-100}"
|
|
2468
2594
|
}
|
|
2469
2595
|
},
|
|
2596
|
+
"surface-popover": {
|
|
2597
|
+
"by": "mode",
|
|
2598
|
+
"dark": {
|
|
2599
|
+
"type": "color",
|
|
2600
|
+
"value": "{surface-raised}",
|
|
2601
|
+
"description": "Background of a dropdown, menu or other popover list. Follows surface-raised unless a theme needs floating lists to read differently from the panels beneath them."
|
|
2602
|
+
},
|
|
2603
|
+
"light": {
|
|
2604
|
+
"type": "color",
|
|
2605
|
+
"value": "{surface-raised}"
|
|
2606
|
+
}
|
|
2607
|
+
},
|
|
2470
2608
|
"surface-sunken": {
|
|
2471
2609
|
"by": "mode",
|
|
2472
2610
|
"dark": {
|
|
@@ -2615,6 +2753,78 @@ var BAKED_THEMES = {
|
|
|
2615
2753
|
"value": "rgba(0, 0, 0, 0.18)"
|
|
2616
2754
|
}
|
|
2617
2755
|
},
|
|
2756
|
+
"code-keyword": {
|
|
2757
|
+
"by": "mode",
|
|
2758
|
+
"dark": {
|
|
2759
|
+
"type": "color",
|
|
2760
|
+
"value": "{swatch-violet}",
|
|
2761
|
+
"description": "Keywords in highlighted code."
|
|
2762
|
+
},
|
|
2763
|
+
"light": {
|
|
2764
|
+
"type": "color",
|
|
2765
|
+
"value": "#6d28d9"
|
|
2766
|
+
}
|
|
2767
|
+
},
|
|
2768
|
+
"code-string": {
|
|
2769
|
+
"by": "mode",
|
|
2770
|
+
"dark": {
|
|
2771
|
+
"type": "color",
|
|
2772
|
+
"value": "{swatch-green}",
|
|
2773
|
+
"description": "String literals in highlighted code."
|
|
2774
|
+
},
|
|
2775
|
+
"light": {
|
|
2776
|
+
"type": "color",
|
|
2777
|
+
"value": "#15803d"
|
|
2778
|
+
}
|
|
2779
|
+
},
|
|
2780
|
+
"code-number": {
|
|
2781
|
+
"by": "mode",
|
|
2782
|
+
"dark": {
|
|
2783
|
+
"type": "color",
|
|
2784
|
+
"value": "{swatch-amber}",
|
|
2785
|
+
"description": "Numbers in highlighted code."
|
|
2786
|
+
},
|
|
2787
|
+
"light": {
|
|
2788
|
+
"type": "color",
|
|
2789
|
+
"value": "#b45309"
|
|
2790
|
+
}
|
|
2791
|
+
},
|
|
2792
|
+
"code-constant": {
|
|
2793
|
+
"by": "mode",
|
|
2794
|
+
"dark": {
|
|
2795
|
+
"type": "color",
|
|
2796
|
+
"value": "{swatch-teal}",
|
|
2797
|
+
"description": "true, false, null and undefined in highlighted code."
|
|
2798
|
+
},
|
|
2799
|
+
"light": {
|
|
2800
|
+
"type": "color",
|
|
2801
|
+
"value": "#0f766e"
|
|
2802
|
+
}
|
|
2803
|
+
},
|
|
2804
|
+
"code-property": {
|
|
2805
|
+
"by": "mode",
|
|
2806
|
+
"dark": {
|
|
2807
|
+
"type": "color",
|
|
2808
|
+
"value": "{swatch-sky}",
|
|
2809
|
+
"description": "Property keys and attribute names in highlighted code."
|
|
2810
|
+
},
|
|
2811
|
+
"light": {
|
|
2812
|
+
"type": "color",
|
|
2813
|
+
"value": "#0369a1"
|
|
2814
|
+
}
|
|
2815
|
+
},
|
|
2816
|
+
"code-name": {
|
|
2817
|
+
"by": "mode",
|
|
2818
|
+
"dark": {
|
|
2819
|
+
"type": "color",
|
|
2820
|
+
"value": "{swatch-rose}",
|
|
2821
|
+
"description": "Functions, classes and other names in highlighted code."
|
|
2822
|
+
},
|
|
2823
|
+
"light": {
|
|
2824
|
+
"type": "color",
|
|
2825
|
+
"value": "#be123c"
|
|
2826
|
+
}
|
|
2827
|
+
},
|
|
2618
2828
|
"panel-surface": {
|
|
2619
2829
|
"type": "color",
|
|
2620
2830
|
"value": "{surface-raised}",
|
|
@@ -3419,5 +3629,5 @@ function colorCount(list, ctx = defaultContext()) {
|
|
|
3419
3629
|
}
|
|
3420
3630
|
|
|
3421
3631
|
export { BAKED_THEMES, THEMES, THEME_SOURCES, applyTheme, colorAt, colorCount, colorCssAt, defineTheme, isColorModePreference, rampSteps, themeTones, weaselTheme };
|
|
3422
|
-
//# sourceMappingURL=chunk-
|
|
3423
|
-
//# sourceMappingURL=chunk-
|
|
3632
|
+
//# sourceMappingURL=chunk-7FYXA7TA.js.map
|
|
3633
|
+
//# sourceMappingURL=chunk-7FYXA7TA.js.map
|