@stackoverflow/stacks 2.0.0-rc.13 → 2.0.0-rc.15
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/css/stacks.css +36 -31
- package/dist/css/stacks.min.css +1 -1
- package/lib/components/tag/tag.less +7 -1
- package/lib/exports/__snapshots__/color-mixins.less.test.ts.snap +50 -50
- package/lib/exports/__snapshots__/color.less.test.ts.snap +30 -30
- package/lib/exports/color-mixins.less +15 -15
- package/lib/exports/mixins.less +0 -38
- package/package.json +4 -4
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
// CONTEXTUAL STYLES
|
|
19
19
|
.highcontrast-mode({
|
|
20
20
|
--_ta-bc: currentColor;
|
|
21
|
+
--_ta-bg-selected: var(--theme-secondary-400);
|
|
21
22
|
|
|
22
23
|
text-decoration: none;
|
|
23
24
|
});
|
|
@@ -30,7 +31,8 @@
|
|
|
30
31
|
a&:hover,
|
|
31
32
|
a&:focus {
|
|
32
33
|
.highcontrast-mode({
|
|
33
|
-
|
|
34
|
+
--_ta-bc-selected: transparent;
|
|
35
|
+
--_ta-fc-selected: var(--white);
|
|
34
36
|
});
|
|
35
37
|
|
|
36
38
|
background-color: var(--_ta-bg-selected);
|
|
@@ -99,6 +101,10 @@
|
|
|
99
101
|
|
|
100
102
|
// moderator overrides other muted and required, required overrides muted
|
|
101
103
|
&&__moderator {
|
|
104
|
+
.highcontrast-mode({
|
|
105
|
+
--_ta-bg-selected: var(--orange-500);
|
|
106
|
+
});
|
|
107
|
+
|
|
102
108
|
--_ta-bc: transparent;
|
|
103
109
|
--_ta-bg: var(--orange-100);
|
|
104
110
|
--_ta-fc: var(--orange-500);
|
|
@@ -386,19 +386,19 @@ body .themed {
|
|
|
386
386
|
--theme-secondary-400: var(--theme-secondary-custom-400, var(--blue-400));
|
|
387
387
|
--theme-secondary-500: var(--theme-secondary-custom-500, var(--blue-500));
|
|
388
388
|
--theme-secondary-600: var(--theme-secondary-custom-600, var(--blue-600));
|
|
389
|
-
--theme-primary-custom-100: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
390
|
-
--theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
391
|
-
--theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
389
|
+
--theme-primary-custom-100: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9)));
|
|
390
|
+
--theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75)));
|
|
391
|
+
--theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5)));
|
|
392
392
|
--theme-primary-custom-400: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l));
|
|
393
|
-
--theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
394
|
-
--theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
393
|
+
--theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3)));
|
|
394
|
+
--theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6)));
|
|
395
395
|
--theme-primary-custom: var(--theme-primary-custom-400);
|
|
396
|
-
--theme-secondary-custom-100: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
397
|
-
--theme-secondary-custom-200: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
398
|
-
--theme-secondary-custom-300: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
396
|
+
--theme-secondary-custom-100: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + ((100% - var(--theme-base-secondary-color-l)) * .9)));
|
|
397
|
+
--theme-secondary-custom-200: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + ((100% - var(--theme-base-secondary-color-l)) * .75)));
|
|
398
|
+
--theme-secondary-custom-300: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + ((100% - var(--theme-base-secondary-color-l)) * .5)));
|
|
399
399
|
--theme-secondary-custom-400: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), var(--theme-base-secondary-color-l));
|
|
400
|
-
--theme-secondary-custom-500: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
401
|
-
--theme-secondary-custom-600: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
400
|
+
--theme-secondary-custom-500: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + (var(--theme-base-secondary-color-l) * -.3)));
|
|
401
|
+
--theme-secondary-custom-600: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + (var(--theme-base-secondary-color-l) * -.6)));
|
|
402
402
|
--theme-secondary-custom: var(--theme-secondary-custom-400);
|
|
403
403
|
--theme-secondary-custom-focus-ring: hsla(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), var(--theme-base-secondary-color-l), 0.15);
|
|
404
404
|
color: var(--theme-body-font-color, var(--black-600));
|
|
@@ -411,12 +411,12 @@ exports[`color-mixins > theming > create-custom-theme-hsl-rgb-variables 1`] = `
|
|
|
411
411
|
--theme-base-primary-color-h: 4;
|
|
412
412
|
--theme-base-primary-color-s: 100%;
|
|
413
413
|
--theme-base-primary-color-l: 50%;
|
|
414
|
-
--theme-primary-custom-100: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
415
|
-
--theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
416
|
-
--theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
414
|
+
--theme-primary-custom-100: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9)));
|
|
415
|
+
--theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75)));
|
|
416
|
+
--theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5)));
|
|
417
417
|
--theme-primary-custom-400: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l));
|
|
418
|
-
--theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
419
|
-
--theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
418
|
+
--theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3)));
|
|
419
|
+
--theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6)));
|
|
420
420
|
--theme-primary-custom: var(--theme-primary-custom-400);
|
|
421
421
|
}
|
|
422
422
|
|
|
@@ -424,12 +424,12 @@ create-custom-theme-hsl-rgb-variables(#29ff53, secondary, base) {
|
|
|
424
424
|
--theme-base-secondary-color-h: 131.77570093;
|
|
425
425
|
--theme-base-secondary-color-s: 100%;
|
|
426
426
|
--theme-base-secondary-color-l: 58.03921569%;
|
|
427
|
-
--theme-secondary-custom-100: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
428
|
-
--theme-secondary-custom-200: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
429
|
-
--theme-secondary-custom-300: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
427
|
+
--theme-secondary-custom-100: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + ((100% - var(--theme-base-secondary-color-l)) * .9)));
|
|
428
|
+
--theme-secondary-custom-200: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + ((100% - var(--theme-base-secondary-color-l)) * .75)));
|
|
429
|
+
--theme-secondary-custom-300: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + ((100% - var(--theme-base-secondary-color-l)) * .5)));
|
|
430
430
|
--theme-secondary-custom-400: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), var(--theme-base-secondary-color-l));
|
|
431
|
-
--theme-secondary-custom-500: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
432
|
-
--theme-secondary-custom-600: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
431
|
+
--theme-secondary-custom-500: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + (var(--theme-base-secondary-color-l) * -.3)));
|
|
432
|
+
--theme-secondary-custom-600: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + (var(--theme-base-secondary-color-l) * -.6)));
|
|
433
433
|
--theme-secondary-custom: var(--theme-secondary-custom-400);
|
|
434
434
|
--theme-secondary-custom-focus-ring: hsla(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), var(--theme-base-secondary-color-l), 0.15);
|
|
435
435
|
}
|
|
@@ -438,12 +438,12 @@ create-custom-theme-hsl-rgb-variables(#1c091d, primary, dark) {
|
|
|
438
438
|
--theme-dark-primary-color-h: 297;
|
|
439
439
|
--theme-dark-primary-color-s: 52.63157895%;
|
|
440
440
|
--theme-dark-primary-color-l: 7.45098039%;
|
|
441
|
-
--theme-dark-primary-custom-100: hsl(var(--theme-dark-primary-color-h),
|
|
442
|
-
--theme-dark-primary-custom-200: hsl(var(--theme-dark-primary-color-h),
|
|
443
|
-
--theme-dark-primary-custom-300: hsl(var(--theme-dark-primary-color-h),
|
|
441
|
+
--theme-dark-primary-custom-100: hsl(var(--theme-dark-primary-color-h), calc(var(--theme-dark-primary-color-s) + (var(--theme-dark-primary-color-s) * -.6)), calc(var(--theme-dark-primary-color-l) + (var(--theme-dark-primary-color-l) * -.7)));
|
|
442
|
+
--theme-dark-primary-custom-200: hsl(var(--theme-dark-primary-color-h), calc(var(--theme-dark-primary-color-s) + (var(--theme-dark-primary-color-s) * -.4)), calc(var(--theme-dark-primary-color-l) + (var(--theme-dark-primary-color-l) * -.5)));
|
|
443
|
+
--theme-dark-primary-custom-300: hsl(var(--theme-dark-primary-color-h), calc(var(--theme-dark-primary-color-s) + (var(--theme-dark-primary-color-s) * -.3)), calc(var(--theme-dark-primary-color-l) + (var(--theme-dark-primary-color-l) * -.2)));
|
|
444
444
|
--theme-dark-primary-custom-400: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s), var(--theme-dark-primary-color-l));
|
|
445
|
-
--theme-dark-primary-custom-500: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s),
|
|
446
|
-
--theme-dark-primary-custom-600: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s),
|
|
445
|
+
--theme-dark-primary-custom-500: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s), calc(var(--theme-dark-primary-color-l) + ((100% - var(--theme-dark-primary-color-l)) * .5)));
|
|
446
|
+
--theme-dark-primary-custom-600: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s), calc(var(--theme-dark-primary-color-l) + ((100% - var(--theme-dark-primary-color-l)) * .8)));
|
|
447
447
|
--theme-dark-primary-custom: var(--theme-dark-primary-custom-400);
|
|
448
448
|
}
|
|
449
449
|
|
|
@@ -451,12 +451,12 @@ create-custom-theme-hsl-rgb-variables(#49281f, secondary, dark) {
|
|
|
451
451
|
--theme-dark-secondary-color-h: 12.85714286;
|
|
452
452
|
--theme-dark-secondary-color-s: 40.38461538%;
|
|
453
453
|
--theme-dark-secondary-color-l: 20.39215686%;
|
|
454
|
-
--theme-dark-secondary-custom-100: hsl(var(--theme-dark-secondary-color-h),
|
|
455
|
-
--theme-dark-secondary-custom-200: hsl(var(--theme-dark-secondary-color-h),
|
|
456
|
-
--theme-dark-secondary-custom-300: hsl(var(--theme-dark-secondary-color-h),
|
|
454
|
+
--theme-dark-secondary-custom-100: hsl(var(--theme-dark-secondary-color-h), calc(var(--theme-dark-secondary-color-s) + (var(--theme-dark-secondary-color-s) * -.6)), calc(var(--theme-dark-secondary-color-l) + (var(--theme-dark-secondary-color-l) * -.7)));
|
|
455
|
+
--theme-dark-secondary-custom-200: hsl(var(--theme-dark-secondary-color-h), calc(var(--theme-dark-secondary-color-s) + (var(--theme-dark-secondary-color-s) * -.4)), calc(var(--theme-dark-secondary-color-l) + (var(--theme-dark-secondary-color-l) * -.5)));
|
|
456
|
+
--theme-dark-secondary-custom-300: hsl(var(--theme-dark-secondary-color-h), calc(var(--theme-dark-secondary-color-s) + (var(--theme-dark-secondary-color-s) * -.3)), calc(var(--theme-dark-secondary-color-l) + (var(--theme-dark-secondary-color-l) * -.2)));
|
|
457
457
|
--theme-dark-secondary-custom-400: hsl(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), var(--theme-dark-secondary-color-l));
|
|
458
|
-
--theme-dark-secondary-custom-500: hsl(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s),
|
|
459
|
-
--theme-dark-secondary-custom-600: hsl(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s),
|
|
458
|
+
--theme-dark-secondary-custom-500: hsl(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), calc(var(--theme-dark-secondary-color-l) + ((100% - var(--theme-dark-secondary-color-l)) * .5)));
|
|
459
|
+
--theme-dark-secondary-custom-600: hsl(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), calc(var(--theme-dark-secondary-color-l) + ((100% - var(--theme-dark-secondary-color-l)) * .8)));
|
|
460
460
|
--theme-dark-secondary-custom: var(--theme-dark-secondary-custom-400);
|
|
461
461
|
--theme-dark-secondary-custom-focus-ring: hsla(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), var(--theme-dark-secondary-color-l), 0.25);
|
|
462
462
|
}
|
|
@@ -465,43 +465,43 @@ create-custom-theme-hsl-rgb-variables(#49281f, secondary, dark) {
|
|
|
465
465
|
|
|
466
466
|
exports[`color-mixins > theming > create-custom-theme-variables 1`] = `
|
|
467
467
|
"create-custom-theme-variables(primary, base) {
|
|
468
|
-
--theme-primary-custom-100: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
469
|
-
--theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
470
|
-
--theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
468
|
+
--theme-primary-custom-100: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9)));
|
|
469
|
+
--theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75)));
|
|
470
|
+
--theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5)));
|
|
471
471
|
--theme-primary-custom-400: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l));
|
|
472
|
-
--theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
473
|
-
--theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
472
|
+
--theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3)));
|
|
473
|
+
--theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6)));
|
|
474
474
|
--theme-primary-custom: var(--theme-primary-custom-400);
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
create-custom-theme-variables(primary, dark) {
|
|
478
|
-
--theme-dark-primary-custom-100: hsl(var(--theme-dark-primary-color-h),
|
|
479
|
-
--theme-dark-primary-custom-200: hsl(var(--theme-dark-primary-color-h),
|
|
480
|
-
--theme-dark-primary-custom-300: hsl(var(--theme-dark-primary-color-h),
|
|
478
|
+
--theme-dark-primary-custom-100: hsl(var(--theme-dark-primary-color-h), calc(var(--theme-dark-primary-color-s) + (var(--theme-dark-primary-color-s) * -.6)), calc(var(--theme-dark-primary-color-l) + (var(--theme-dark-primary-color-l) * -.7)));
|
|
479
|
+
--theme-dark-primary-custom-200: hsl(var(--theme-dark-primary-color-h), calc(var(--theme-dark-primary-color-s) + (var(--theme-dark-primary-color-s) * -.4)), calc(var(--theme-dark-primary-color-l) + (var(--theme-dark-primary-color-l) * -.5)));
|
|
480
|
+
--theme-dark-primary-custom-300: hsl(var(--theme-dark-primary-color-h), calc(var(--theme-dark-primary-color-s) + (var(--theme-dark-primary-color-s) * -.3)), calc(var(--theme-dark-primary-color-l) + (var(--theme-dark-primary-color-l) * -.2)));
|
|
481
481
|
--theme-dark-primary-custom-400: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s), var(--theme-dark-primary-color-l));
|
|
482
|
-
--theme-dark-primary-custom-500: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s),
|
|
483
|
-
--theme-dark-primary-custom-600: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s),
|
|
482
|
+
--theme-dark-primary-custom-500: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s), calc(var(--theme-dark-primary-color-l) + ((100% - var(--theme-dark-primary-color-l)) * .5)));
|
|
483
|
+
--theme-dark-primary-custom-600: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s), calc(var(--theme-dark-primary-color-l) + ((100% - var(--theme-dark-primary-color-l)) * .8)));
|
|
484
484
|
--theme-dark-primary-custom: var(--theme-dark-primary-custom-400);
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
create-custom-theme-variables(secondary, base) {
|
|
488
|
-
--theme-secondary-custom-100: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
489
|
-
--theme-secondary-custom-200: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
490
|
-
--theme-secondary-custom-300: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
488
|
+
--theme-secondary-custom-100: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + ((100% - var(--theme-base-secondary-color-l)) * .9)));
|
|
489
|
+
--theme-secondary-custom-200: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + ((100% - var(--theme-base-secondary-color-l)) * .75)));
|
|
490
|
+
--theme-secondary-custom-300: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + ((100% - var(--theme-base-secondary-color-l)) * .5)));
|
|
491
491
|
--theme-secondary-custom-400: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), var(--theme-base-secondary-color-l));
|
|
492
|
-
--theme-secondary-custom-500: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
493
|
-
--theme-secondary-custom-600: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
492
|
+
--theme-secondary-custom-500: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + (var(--theme-base-secondary-color-l) * -.3)));
|
|
493
|
+
--theme-secondary-custom-600: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + (var(--theme-base-secondary-color-l) * -.6)));
|
|
494
494
|
--theme-secondary-custom: var(--theme-secondary-custom-400);
|
|
495
495
|
--theme-secondary-custom-focus-ring: hsla(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), var(--theme-base-secondary-color-l), 0.15);
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
create-custom-theme-variables(secondary, base) {
|
|
499
|
-
--theme-secondary-custom-100: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
500
|
-
--theme-secondary-custom-200: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
501
|
-
--theme-secondary-custom-300: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
499
|
+
--theme-secondary-custom-100: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + ((100% - var(--theme-base-secondary-color-l)) * .9)));
|
|
500
|
+
--theme-secondary-custom-200: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + ((100% - var(--theme-base-secondary-color-l)) * .75)));
|
|
501
|
+
--theme-secondary-custom-300: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + ((100% - var(--theme-base-secondary-color-l)) * .5)));
|
|
502
502
|
--theme-secondary-custom-400: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), var(--theme-base-secondary-color-l));
|
|
503
|
-
--theme-secondary-custom-500: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
504
|
-
--theme-secondary-custom-600: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
503
|
+
--theme-secondary-custom-500: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + (var(--theme-base-secondary-color-l) * -.3)));
|
|
504
|
+
--theme-secondary-custom-600: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + (var(--theme-base-secondary-color-l) * -.6)));
|
|
505
505
|
--theme-secondary-custom: var(--theme-secondary-custom-400);
|
|
506
506
|
--theme-secondary-custom-focus-ring: hsla(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), var(--theme-base-secondary-color-l), 0.15);
|
|
507
507
|
}
|
|
@@ -174,19 +174,19 @@ body:not(.theme-highcontrast).theme-system .theme-light__forced .themed {
|
|
|
174
174
|
--theme-secondary-400: var(--theme-secondary-custom-400, var(--blue-400));
|
|
175
175
|
--theme-secondary-500: var(--theme-secondary-custom-500, var(--blue-500));
|
|
176
176
|
--theme-secondary-600: var(--theme-secondary-custom-600, var(--blue-600));
|
|
177
|
-
--theme-primary-custom-100: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
178
|
-
--theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
179
|
-
--theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
177
|
+
--theme-primary-custom-100: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9)));
|
|
178
|
+
--theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75)));
|
|
179
|
+
--theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5)));
|
|
180
180
|
--theme-primary-custom-400: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l));
|
|
181
|
-
--theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
182
|
-
--theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s),
|
|
181
|
+
--theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3)));
|
|
182
|
+
--theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6)));
|
|
183
183
|
--theme-primary-custom: var(--theme-primary-custom-400);
|
|
184
|
-
--theme-secondary-custom-100: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
185
|
-
--theme-secondary-custom-200: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
186
|
-
--theme-secondary-custom-300: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
184
|
+
--theme-secondary-custom-100: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + ((100% - var(--theme-base-secondary-color-l)) * .9)));
|
|
185
|
+
--theme-secondary-custom-200: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + ((100% - var(--theme-base-secondary-color-l)) * .75)));
|
|
186
|
+
--theme-secondary-custom-300: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + ((100% - var(--theme-base-secondary-color-l)) * .5)));
|
|
187
187
|
--theme-secondary-custom-400: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), var(--theme-base-secondary-color-l));
|
|
188
|
-
--theme-secondary-custom-500: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
189
|
-
--theme-secondary-custom-600: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s),
|
|
188
|
+
--theme-secondary-custom-500: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + (var(--theme-base-secondary-color-l) * -.3)));
|
|
189
|
+
--theme-secondary-custom-600: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + (var(--theme-base-secondary-color-l) * -.6)));
|
|
190
190
|
--theme-secondary-custom: var(--theme-secondary-custom-400);
|
|
191
191
|
--theme-secondary-custom-focus-ring: hsla(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), var(--theme-base-secondary-color-l), 0.15);
|
|
192
192
|
color: var(--theme-body-font-color, var(--black-600));
|
|
@@ -301,19 +301,19 @@ body:not(.theme-highcontrast):not(.theme-dark) .theme-dark__forced .themed {
|
|
|
301
301
|
--theme-secondary-400: var(--theme-dark-secondary-custom-400, var(--blue-400));
|
|
302
302
|
--theme-secondary-500: var(--theme-dark-secondary-custom-500, var(--blue-500));
|
|
303
303
|
--theme-secondary-600: var(--theme-dark-secondary-custom-600, var(--blue-600));
|
|
304
|
-
--theme-dark-primary-custom-100: hsl(var(--theme-dark-primary-color-h),
|
|
305
|
-
--theme-dark-primary-custom-200: hsl(var(--theme-dark-primary-color-h),
|
|
306
|
-
--theme-dark-primary-custom-300: hsl(var(--theme-dark-primary-color-h),
|
|
304
|
+
--theme-dark-primary-custom-100: hsl(var(--theme-dark-primary-color-h), calc(var(--theme-dark-primary-color-s) + (var(--theme-dark-primary-color-s) * -.6)), calc(var(--theme-dark-primary-color-l) + (var(--theme-dark-primary-color-l) * -.7)));
|
|
305
|
+
--theme-dark-primary-custom-200: hsl(var(--theme-dark-primary-color-h), calc(var(--theme-dark-primary-color-s) + (var(--theme-dark-primary-color-s) * -.4)), calc(var(--theme-dark-primary-color-l) + (var(--theme-dark-primary-color-l) * -.5)));
|
|
306
|
+
--theme-dark-primary-custom-300: hsl(var(--theme-dark-primary-color-h), calc(var(--theme-dark-primary-color-s) + (var(--theme-dark-primary-color-s) * -.3)), calc(var(--theme-dark-primary-color-l) + (var(--theme-dark-primary-color-l) * -.2)));
|
|
307
307
|
--theme-dark-primary-custom-400: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s), var(--theme-dark-primary-color-l));
|
|
308
|
-
--theme-dark-primary-custom-500: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s),
|
|
309
|
-
--theme-dark-primary-custom-600: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s),
|
|
308
|
+
--theme-dark-primary-custom-500: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s), calc(var(--theme-dark-primary-color-l) + ((100% - var(--theme-dark-primary-color-l)) * .5)));
|
|
309
|
+
--theme-dark-primary-custom-600: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s), calc(var(--theme-dark-primary-color-l) + ((100% - var(--theme-dark-primary-color-l)) * .8)));
|
|
310
310
|
--theme-dark-primary-custom: var(--theme-dark-primary-custom-400);
|
|
311
|
-
--theme-dark-secondary-custom-100: hsl(var(--theme-dark-secondary-color-h),
|
|
312
|
-
--theme-dark-secondary-custom-200: hsl(var(--theme-dark-secondary-color-h),
|
|
313
|
-
--theme-dark-secondary-custom-300: hsl(var(--theme-dark-secondary-color-h),
|
|
311
|
+
--theme-dark-secondary-custom-100: hsl(var(--theme-dark-secondary-color-h), calc(var(--theme-dark-secondary-color-s) + (var(--theme-dark-secondary-color-s) * -.6)), calc(var(--theme-dark-secondary-color-l) + (var(--theme-dark-secondary-color-l) * -.7)));
|
|
312
|
+
--theme-dark-secondary-custom-200: hsl(var(--theme-dark-secondary-color-h), calc(var(--theme-dark-secondary-color-s) + (var(--theme-dark-secondary-color-s) * -.4)), calc(var(--theme-dark-secondary-color-l) + (var(--theme-dark-secondary-color-l) * -.5)));
|
|
313
|
+
--theme-dark-secondary-custom-300: hsl(var(--theme-dark-secondary-color-h), calc(var(--theme-dark-secondary-color-s) + (var(--theme-dark-secondary-color-s) * -.3)), calc(var(--theme-dark-secondary-color-l) + (var(--theme-dark-secondary-color-l) * -.2)));
|
|
314
314
|
--theme-dark-secondary-custom-400: hsl(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), var(--theme-dark-secondary-color-l));
|
|
315
|
-
--theme-dark-secondary-custom-500: hsl(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s),
|
|
316
|
-
--theme-dark-secondary-custom-600: hsl(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s),
|
|
315
|
+
--theme-dark-secondary-custom-500: hsl(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), calc(var(--theme-dark-secondary-color-l) + ((100% - var(--theme-dark-secondary-color-l)) * .5)));
|
|
316
|
+
--theme-dark-secondary-custom-600: hsl(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), calc(var(--theme-dark-secondary-color-l) + ((100% - var(--theme-dark-secondary-color-l)) * .8)));
|
|
317
317
|
--theme-dark-secondary-custom: var(--theme-dark-secondary-custom-400);
|
|
318
318
|
--theme-dark-secondary-custom-focus-ring: hsla(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), var(--theme-dark-secondary-color-l), 0.25);
|
|
319
319
|
color: var(--theme-body-font-color, var(--black-600));
|
|
@@ -426,19 +426,19 @@ body:not(.theme-highcontrast):not(.theme-dark) .theme-dark__forced .themed {
|
|
|
426
426
|
--theme-secondary-400: var(--theme-dark-secondary-custom-400, var(--blue-400));
|
|
427
427
|
--theme-secondary-500: var(--theme-dark-secondary-custom-500, var(--blue-500));
|
|
428
428
|
--theme-secondary-600: var(--theme-dark-secondary-custom-600, var(--blue-600));
|
|
429
|
-
--theme-dark-primary-custom-100: hsl(var(--theme-dark-primary-color-h),
|
|
430
|
-
--theme-dark-primary-custom-200: hsl(var(--theme-dark-primary-color-h),
|
|
431
|
-
--theme-dark-primary-custom-300: hsl(var(--theme-dark-primary-color-h),
|
|
429
|
+
--theme-dark-primary-custom-100: hsl(var(--theme-dark-primary-color-h), calc(var(--theme-dark-primary-color-s) + (var(--theme-dark-primary-color-s) * -.6)), calc(var(--theme-dark-primary-color-l) + (var(--theme-dark-primary-color-l) * -.7)));
|
|
430
|
+
--theme-dark-primary-custom-200: hsl(var(--theme-dark-primary-color-h), calc(var(--theme-dark-primary-color-s) + (var(--theme-dark-primary-color-s) * -.4)), calc(var(--theme-dark-primary-color-l) + (var(--theme-dark-primary-color-l) * -.5)));
|
|
431
|
+
--theme-dark-primary-custom-300: hsl(var(--theme-dark-primary-color-h), calc(var(--theme-dark-primary-color-s) + (var(--theme-dark-primary-color-s) * -.3)), calc(var(--theme-dark-primary-color-l) + (var(--theme-dark-primary-color-l) * -.2)));
|
|
432
432
|
--theme-dark-primary-custom-400: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s), var(--theme-dark-primary-color-l));
|
|
433
|
-
--theme-dark-primary-custom-500: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s),
|
|
434
|
-
--theme-dark-primary-custom-600: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s),
|
|
433
|
+
--theme-dark-primary-custom-500: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s), calc(var(--theme-dark-primary-color-l) + ((100% - var(--theme-dark-primary-color-l)) * .5)));
|
|
434
|
+
--theme-dark-primary-custom-600: hsl(var(--theme-dark-primary-color-h), var(--theme-dark-primary-color-s), calc(var(--theme-dark-primary-color-l) + ((100% - var(--theme-dark-primary-color-l)) * .8)));
|
|
435
435
|
--theme-dark-primary-custom: var(--theme-dark-primary-custom-400);
|
|
436
|
-
--theme-dark-secondary-custom-100: hsl(var(--theme-dark-secondary-color-h),
|
|
437
|
-
--theme-dark-secondary-custom-200: hsl(var(--theme-dark-secondary-color-h),
|
|
438
|
-
--theme-dark-secondary-custom-300: hsl(var(--theme-dark-secondary-color-h),
|
|
436
|
+
--theme-dark-secondary-custom-100: hsl(var(--theme-dark-secondary-color-h), calc(var(--theme-dark-secondary-color-s) + (var(--theme-dark-secondary-color-s) * -.6)), calc(var(--theme-dark-secondary-color-l) + (var(--theme-dark-secondary-color-l) * -.7)));
|
|
437
|
+
--theme-dark-secondary-custom-200: hsl(var(--theme-dark-secondary-color-h), calc(var(--theme-dark-secondary-color-s) + (var(--theme-dark-secondary-color-s) * -.4)), calc(var(--theme-dark-secondary-color-l) + (var(--theme-dark-secondary-color-l) * -.5)));
|
|
438
|
+
--theme-dark-secondary-custom-300: hsl(var(--theme-dark-secondary-color-h), calc(var(--theme-dark-secondary-color-s) + (var(--theme-dark-secondary-color-s) * -.3)), calc(var(--theme-dark-secondary-color-l) + (var(--theme-dark-secondary-color-l) * -.2)));
|
|
439
439
|
--theme-dark-secondary-custom-400: hsl(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), var(--theme-dark-secondary-color-l));
|
|
440
|
-
--theme-dark-secondary-custom-500: hsl(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s),
|
|
441
|
-
--theme-dark-secondary-custom-600: hsl(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s),
|
|
440
|
+
--theme-dark-secondary-custom-500: hsl(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), calc(var(--theme-dark-secondary-color-l) + ((100% - var(--theme-dark-secondary-color-l)) * .5)));
|
|
441
|
+
--theme-dark-secondary-custom-600: hsl(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), calc(var(--theme-dark-secondary-color-l) + ((100% - var(--theme-dark-secondary-color-l)) * .8)));
|
|
442
442
|
--theme-dark-secondary-custom: var(--theme-dark-secondary-custom-400);
|
|
443
443
|
--theme-dark-secondary-custom-focus-ring: hsla(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), var(--theme-dark-secondary-color-l), 0.25);
|
|
444
444
|
color: var(--theme-body-font-color, var(--black-600));
|
|
@@ -210,20 +210,20 @@
|
|
|
210
210
|
.create-custom-theme-variables(@tier: primary, @modeCustom: base) {
|
|
211
211
|
@valueVar: ~"theme-@{modeCustom}-@{tier}-color";
|
|
212
212
|
@focusRingHSLVars: ~"var(--@{valueVar}-h), var(--@{valueVar}-s), var(--@{valueVar}-l)";
|
|
213
|
-
@
|
|
214
|
-
@
|
|
215
|
-
@
|
|
213
|
+
@h: var(~"--@{valueVar}-h");
|
|
214
|
+
@s: var(~"--@{valueVar}-s");
|
|
215
|
+
@l: var(~"--@{valueVar}-l");
|
|
216
216
|
|
|
217
217
|
// TODO verify color stops with design
|
|
218
218
|
& when (@modeCustom = base) {
|
|
219
219
|
@varBase: ~"--theme-@{tier}-custom";
|
|
220
220
|
|
|
221
|
-
@{varBase}-100: ~"hsl(@{
|
|
222
|
-
@{varBase}-200: ~"hsl(@{
|
|
223
|
-
@{varBase}-300: ~"hsl(@{
|
|
224
|
-
@{varBase}-400: ~"hsl(@{
|
|
225
|
-
@{varBase}-500: ~"hsl(@{
|
|
226
|
-
@{varBase}-600: ~"hsl(@{
|
|
221
|
+
@{varBase}-100: ~"hsl(@{h}, @{s}, calc(@{l} + ((100% - @{l}) * .9)))";
|
|
222
|
+
@{varBase}-200: ~"hsl(@{h}, @{s}, calc(@{l} + ((100% - @{l}) * .75)))";
|
|
223
|
+
@{varBase}-300: ~"hsl(@{h}, @{s}, calc(@{l} + ((100% - @{l}) * .5)))";
|
|
224
|
+
@{varBase}-400: ~"hsl(@{h}, @{s}, @{l})";
|
|
225
|
+
@{varBase}-500: ~"hsl(@{h}, @{s}, calc(@{l} + (@{l} * -.3)))";
|
|
226
|
+
@{varBase}-600: ~"hsl(@{h}, @{s}, calc(@{l} + (@{l} * -.6)))";
|
|
227
227
|
@{varBase}: ~"var(@{varBase}-400)";
|
|
228
228
|
|
|
229
229
|
& when (@tier = secondary) {
|
|
@@ -234,12 +234,12 @@
|
|
|
234
234
|
& when (@modeCustom = dark) {
|
|
235
235
|
@varBaseDark: ~"--theme-@{modeCustom}-@{tier}-custom";
|
|
236
236
|
|
|
237
|
-
@{varBaseDark}-100: ~"hsl(@{
|
|
238
|
-
@{varBaseDark}-200: ~"hsl(@{
|
|
239
|
-
@{varBaseDark}-300: ~"hsl(@{
|
|
240
|
-
@{varBaseDark}-400: ~"hsl(@{
|
|
241
|
-
@{varBaseDark}-500: ~"hsl(@{
|
|
242
|
-
@{varBaseDark}-600: ~"hsl(@{
|
|
237
|
+
@{varBaseDark}-100: ~"hsl(@{h}, calc(@{s} + (@{s} * -.6)), calc(@{l} + (@{l} * -.7)))";
|
|
238
|
+
@{varBaseDark}-200: ~"hsl(@{h}, calc(@{s} + (@{s} * -.4)), calc(@{l} + (@{l} * -.5)))";
|
|
239
|
+
@{varBaseDark}-300: ~"hsl(@{h}, calc(@{s} + (@{s} * -.3)), calc(@{l} + (@{l} * -.2)))";
|
|
240
|
+
@{varBaseDark}-400: ~"hsl(@{h}, @{s}, @{l})";
|
|
241
|
+
@{varBaseDark}-500: ~"hsl(@{h}, @{s}, calc(@{l} + ((100% - @{l}) * .5)))";
|
|
242
|
+
@{varBaseDark}-600: ~"hsl(@{h}, @{s}, calc(@{l} + ((100% - @{l}) * .8)))";
|
|
243
243
|
@{varBaseDark}: ~"var(@{varBaseDark}-400)";
|
|
244
244
|
|
|
245
245
|
& when (@tier = secondary) {
|
package/lib/exports/mixins.less
CHANGED
|
@@ -138,44 +138,6 @@
|
|
|
138
138
|
calc(var(~"--@{color-prefix}-l") + @amountPercentage));
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
|
|
142
|
-
.alter-hsl-var(@baseAmount, @change: 0%, @max: 100%) {
|
|
143
|
-
& when (@change > 0) {
|
|
144
|
-
calc(@baseAmount + ((@max - @baseAmount) * @change));
|
|
145
|
-
}
|
|
146
|
-
& when(@change < 0) {
|
|
147
|
-
calc(@baseAmount + (@baseAmount * @change));
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
// Alter the lightness of a color in the HSL color space
|
|
153
|
-
.native-lightness(@color-prefix, @lMod: 0) {
|
|
154
|
-
@result: hsl(
|
|
155
|
-
var(~"--@{color-prefix}-h"),
|
|
156
|
-
var(~"--@{color-prefix}-s"),
|
|
157
|
-
calc(
|
|
158
|
-
var(~"--@{color-prefix}-l") +
|
|
159
|
-
((100% - var(~"--@{color-prefix}-l")) * @lMod)
|
|
160
|
-
)
|
|
161
|
-
);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
// Alter the saturation and lightness of a color in the HSL color space
|
|
165
|
-
.native-saturation-lightness(@color-prefix, @sMod: 0, @lMod: 0) {
|
|
166
|
-
@result: hsl(
|
|
167
|
-
var(~"--@{color-prefix}-h"),
|
|
168
|
-
calc(
|
|
169
|
-
var(~"--@{color-prefix}-s") +
|
|
170
|
-
((100% - var(~"--@{color-prefix}-s")) * @sMod)
|
|
171
|
-
),
|
|
172
|
-
calc(
|
|
173
|
-
var(~"--@{color-prefix}-l") +
|
|
174
|
-
((100% - var(~"--@{color-prefix}-l")) * @lMod)
|
|
175
|
-
)
|
|
176
|
-
);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
141
|
// Decrease the lightness and saturation of a color in the HSL color space by absolute amounts.
|
|
180
142
|
.native-darken-desaturate(@color-prefix, @darken-amount, @desaturate-amount) {
|
|
181
143
|
@darkenAmountPercentage: .load-color-variables(@darken-amount)[@amountPercentage];
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/StackExchange/Stacks.git"
|
|
7
7
|
},
|
|
8
|
-
"version": "2.0.0-rc.
|
|
8
|
+
"version": "2.0.0-rc.15",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
11
|
"lib"
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"@open-wc/testing": "^3.2.0",
|
|
49
49
|
"@rollup/plugin-commonjs": "^25.0.4",
|
|
50
50
|
"@rollup/plugin-replace": "^5.0.2",
|
|
51
|
-
"@stackoverflow/stacks-editor": "^0.8.
|
|
51
|
+
"@stackoverflow/stacks-editor": "^0.8.9",
|
|
52
52
|
"@stackoverflow/stacks-icons": "^5.5.0",
|
|
53
53
|
"@testing-library/dom": "^9.3.3",
|
|
54
54
|
"@testing-library/user-event": "^14.5.1",
|
|
55
55
|
"@types/cssbeautify": "^0.3.2",
|
|
56
56
|
"@types/less": "^3.0.3",
|
|
57
|
-
"@typescript-eslint/eslint-plugin": "^6.7.
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "^6.7.3",
|
|
58
58
|
"@typescript-eslint/parser": "^6.7.2",
|
|
59
59
|
"@web/dev-server-esbuild": "^0.4.1",
|
|
60
60
|
"@web/dev-server-rollup": "^0.5.2",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"docsearch.js": "^2.6.3",
|
|
70
70
|
"eleventy-plugin-highlightjs": "^1.1.0",
|
|
71
71
|
"eleventy-plugin-nesting-toc": "^1.3.0",
|
|
72
|
-
"eslint": "^8.
|
|
72
|
+
"eslint": "^8.50.0",
|
|
73
73
|
"eslint-config-prettier": "^9.0.0",
|
|
74
74
|
"eslint-plugin-no-unsanitized": "^4.0.2",
|
|
75
75
|
"jquery": "^3.7.1",
|