@weasel-js/theme 1.8.0 → 1.8.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/dist/{chunk-BOC4EQ5K.js → chunk-VUNWK7T2.js} +66 -2
- package/dist/chunk-VUNWK7T2.js.map +1 -0
- package/dist/{definition-CcRjppVZ.d.ts → definition-BQHKxPoy.d.ts} +13 -1
- package/dist/engine.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -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 +8 -0
- package/package.json +2 -2
- package/dist/chunk-BOC4EQ5K.js.map +0 -1
|
@@ -53,6 +53,8 @@ var THEMES = {
|
|
|
53
53
|
"--wzl-fg": "#e6e7e9",
|
|
54
54
|
"--wzl-fg-muted": "rgb(from currentColor r g b / 0.7)",
|
|
55
55
|
"--wzl-fg-subtle": "rgb(from currentColor r g b / 0.54)",
|
|
56
|
+
"--wzl-fg-muted-on-accent": "rgb(from currentColor r g b / 0.98)",
|
|
57
|
+
"--wzl-fg-subtle-on-accent": "rgb(from currentColor r g b / 0.96)",
|
|
56
58
|
"--wzl-border": "#25272c",
|
|
57
59
|
"--wzl-border-strong": "#6f737b",
|
|
58
60
|
"--wzl-accent-fg": "#8c94ee",
|
|
@@ -222,6 +224,8 @@ var THEMES = {
|
|
|
222
224
|
"--wzl-fg": "#e6e7e9",
|
|
223
225
|
"--wzl-fg-muted": "rgb(from currentColor r g b / 0.7)",
|
|
224
226
|
"--wzl-fg-subtle": "rgb(from currentColor r g b / 0.54)",
|
|
227
|
+
"--wzl-fg-muted-on-accent": "rgb(from currentColor r g b / 0.98)",
|
|
228
|
+
"--wzl-fg-subtle-on-accent": "rgb(from currentColor r g b / 0.96)",
|
|
225
229
|
"--wzl-border": "#25272c",
|
|
226
230
|
"--wzl-border-strong": "#6f737b",
|
|
227
231
|
"--wzl-accent-fg": "#8c94ee",
|
|
@@ -391,6 +395,8 @@ var THEMES = {
|
|
|
391
395
|
"--wzl-fg": "#e6e7e9",
|
|
392
396
|
"--wzl-fg-muted": "rgb(from currentColor r g b / 0.7)",
|
|
393
397
|
"--wzl-fg-subtle": "rgb(from currentColor r g b / 0.54)",
|
|
398
|
+
"--wzl-fg-muted-on-accent": "rgb(from currentColor r g b / 0.98)",
|
|
399
|
+
"--wzl-fg-subtle-on-accent": "rgb(from currentColor r g b / 0.96)",
|
|
394
400
|
"--wzl-border": "#25272c",
|
|
395
401
|
"--wzl-border-strong": "#6f737b",
|
|
396
402
|
"--wzl-accent-fg": "#8c94ee",
|
|
@@ -560,6 +566,8 @@ var THEMES = {
|
|
|
560
566
|
"--wzl-fg": "#0e0f12",
|
|
561
567
|
"--wzl-fg-muted": "rgb(from currentColor r g b / 0.78)",
|
|
562
568
|
"--wzl-fg-subtle": "rgb(from currentColor r g b / 0.64)",
|
|
569
|
+
"--wzl-fg-muted-on-accent": "rgb(from currentColor r g b / 0.78)",
|
|
570
|
+
"--wzl-fg-subtle-on-accent": "rgb(from currentColor r g b / 0.73)",
|
|
563
571
|
"--wzl-border": "#c9cbcf",
|
|
564
572
|
"--wzl-border-strong": "#4d5058",
|
|
565
573
|
"--wzl-accent-fg": "#4338ca",
|
|
@@ -729,6 +737,8 @@ var THEMES = {
|
|
|
729
737
|
"--wzl-fg": "#0e0f12",
|
|
730
738
|
"--wzl-fg-muted": "rgb(from currentColor r g b / 0.78)",
|
|
731
739
|
"--wzl-fg-subtle": "rgb(from currentColor r g b / 0.64)",
|
|
740
|
+
"--wzl-fg-muted-on-accent": "rgb(from currentColor r g b / 0.78)",
|
|
741
|
+
"--wzl-fg-subtle-on-accent": "rgb(from currentColor r g b / 0.73)",
|
|
732
742
|
"--wzl-border": "#c9cbcf",
|
|
733
743
|
"--wzl-border-strong": "#4d5058",
|
|
734
744
|
"--wzl-accent-fg": "#4338ca",
|
|
@@ -898,6 +908,8 @@ var THEMES = {
|
|
|
898
908
|
"--wzl-fg": "#0e0f12",
|
|
899
909
|
"--wzl-fg-muted": "rgb(from currentColor r g b / 0.78)",
|
|
900
910
|
"--wzl-fg-subtle": "rgb(from currentColor r g b / 0.64)",
|
|
911
|
+
"--wzl-fg-muted-on-accent": "rgb(from currentColor r g b / 0.78)",
|
|
912
|
+
"--wzl-fg-subtle-on-accent": "rgb(from currentColor r g b / 0.73)",
|
|
901
913
|
"--wzl-border": "#c9cbcf",
|
|
902
914
|
"--wzl-border-strong": "#4d5058",
|
|
903
915
|
"--wzl-accent-fg": "#4338ca",
|
|
@@ -1270,6 +1282,32 @@ var THEME_SOURCES = {
|
|
|
1270
1282
|
"description": "Tertiary text: a further step down from the text color in effect, by the same rule as fg-muted. Under fg it clears WCAG 4.5:1 on surface, surface-raised, and surface-sunken in both modes."
|
|
1271
1283
|
}
|
|
1272
1284
|
},
|
|
1285
|
+
"fg-muted-on-accent": {
|
|
1286
|
+
"by": "mode",
|
|
1287
|
+
"dark": {
|
|
1288
|
+
"value": "rgb(from currentColor r g b / 0.98)",
|
|
1289
|
+
"type": "color",
|
|
1290
|
+
"description": "Secondary text on an accent fill. Every rule that sets --wzl-fg-on-accent text redirects --wzl-fg-muted here (npm run check:on-accent), because the general step falls below WCAG 4.5:1 on the accent. In dark mode that leaves almost no step to show."
|
|
1291
|
+
},
|
|
1292
|
+
"light": {
|
|
1293
|
+
"value": "rgb(from currentColor r g b / 0.78)",
|
|
1294
|
+
"type": "color",
|
|
1295
|
+
"description": "Secondary text on an accent fill. Every rule that sets --wzl-fg-on-accent text redirects --wzl-fg-muted here (npm run check:on-accent), because the general step falls below WCAG 4.5:1 on the accent. In dark mode that leaves almost no step to show."
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1298
|
+
"fg-subtle-on-accent": {
|
|
1299
|
+
"by": "mode",
|
|
1300
|
+
"dark": {
|
|
1301
|
+
"value": "rgb(from currentColor r g b / 0.96)",
|
|
1302
|
+
"type": "color",
|
|
1303
|
+
"description": "Tertiary text on an accent fill, redirected from --wzl-fg-subtle by the same rule as fg-muted-on-accent. Clears WCAG 4.5:1 on the accent in both modes."
|
|
1304
|
+
},
|
|
1305
|
+
"light": {
|
|
1306
|
+
"value": "rgb(from currentColor r g b / 0.73)",
|
|
1307
|
+
"type": "color",
|
|
1308
|
+
"description": "Tertiary text on an accent fill, redirected from --wzl-fg-subtle by the same rule as fg-muted-on-accent. Clears WCAG 4.5:1 on the accent in both modes."
|
|
1309
|
+
}
|
|
1310
|
+
},
|
|
1273
1311
|
"border": {
|
|
1274
1312
|
"by": "mode",
|
|
1275
1313
|
"dark": {
|
|
@@ -2477,6 +2515,32 @@ var BAKED_THEMES = {
|
|
|
2477
2515
|
"description": "Tertiary text: a further step down from the text color in effect, by the same rule as fg-muted. Under fg it clears WCAG 4.5:1 on surface, surface-raised, and surface-sunken in both modes."
|
|
2478
2516
|
}
|
|
2479
2517
|
},
|
|
2518
|
+
"fg-muted-on-accent": {
|
|
2519
|
+
"by": "mode",
|
|
2520
|
+
"dark": {
|
|
2521
|
+
"type": "color",
|
|
2522
|
+
"value": "rgb(from currentColor r g b / 0.98)",
|
|
2523
|
+
"description": "Secondary text on an accent fill. Every rule that sets --wzl-fg-on-accent text redirects --wzl-fg-muted here (npm run check:on-accent), because the general step falls below WCAG 4.5:1 on the accent. In dark mode that leaves almost no step to show."
|
|
2524
|
+
},
|
|
2525
|
+
"light": {
|
|
2526
|
+
"type": "color",
|
|
2527
|
+
"value": "rgb(from currentColor r g b / 0.78)",
|
|
2528
|
+
"description": "Secondary text on an accent fill. Every rule that sets --wzl-fg-on-accent text redirects --wzl-fg-muted here (npm run check:on-accent), because the general step falls below WCAG 4.5:1 on the accent. In dark mode that leaves almost no step to show."
|
|
2529
|
+
}
|
|
2530
|
+
},
|
|
2531
|
+
"fg-subtle-on-accent": {
|
|
2532
|
+
"by": "mode",
|
|
2533
|
+
"dark": {
|
|
2534
|
+
"type": "color",
|
|
2535
|
+
"value": "rgb(from currentColor r g b / 0.96)",
|
|
2536
|
+
"description": "Tertiary text on an accent fill, redirected from --wzl-fg-subtle by the same rule as fg-muted-on-accent. Clears WCAG 4.5:1 on the accent in both modes."
|
|
2537
|
+
},
|
|
2538
|
+
"light": {
|
|
2539
|
+
"type": "color",
|
|
2540
|
+
"value": "rgb(from currentColor r g b / 0.73)",
|
|
2541
|
+
"description": "Tertiary text on an accent fill, redirected from --wzl-fg-subtle by the same rule as fg-muted-on-accent. Clears WCAG 4.5:1 on the accent in both modes."
|
|
2542
|
+
}
|
|
2543
|
+
},
|
|
2480
2544
|
"border": {
|
|
2481
2545
|
"by": "mode",
|
|
2482
2546
|
"dark": {
|
|
@@ -3355,5 +3419,5 @@ function colorCount(list, ctx = defaultContext()) {
|
|
|
3355
3419
|
}
|
|
3356
3420
|
|
|
3357
3421
|
export { BAKED_THEMES, THEMES, THEME_SOURCES, applyTheme, colorAt, colorCount, colorCssAt, defineTheme, isColorModePreference, rampSteps, themeTones, weaselTheme };
|
|
3358
|
-
//# sourceMappingURL=chunk-
|
|
3359
|
-
//# sourceMappingURL=chunk-
|
|
3422
|
+
//# sourceMappingURL=chunk-VUNWK7T2.js.map
|
|
3423
|
+
//# sourceMappingURL=chunk-VUNWK7T2.js.map
|