@stackoverflow/stacks 2.0.2 → 2.0.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/css/stacks.css +77 -77
- package/dist/css/stacks.min.css +1 -1
- package/lib/components/label/label.a11y.test.ts +48 -0
- package/lib/components/label/label.less +1 -0
- package/lib/components/label/label.visual.test.ts +66 -0
- package/lib/components/menu/menu.a11y.test.ts +40 -0
- package/lib/components/menu/menu.visual.test.ts +40 -0
- package/lib/components/tag/tag.less +3 -3
- package/lib/exports/__snapshots__/color.less.test.ts.snap +74 -74
- package/lib/exports/color-sets.less +44 -39
- package/package.json +1 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { html } from "@open-wc/testing";
|
|
2
|
+
import { runComponentTests } from "../../test/test-utils";
|
|
3
|
+
import "../../index";
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
const labelTemplate = ({ component, testid }: any) => {
|
|
7
|
+
return html`
|
|
8
|
+
<fieldset data-testid="${testid}" class="p8 ws3">${component}</fieldset>
|
|
9
|
+
`;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13
|
+
const getChildren = (status?: any) => {
|
|
14
|
+
const typeClass =
|
|
15
|
+
status && status !== "base" ? `s-label--status__${status}` : "";
|
|
16
|
+
return `
|
|
17
|
+
Example label
|
|
18
|
+
${
|
|
19
|
+
status
|
|
20
|
+
? `
|
|
21
|
+
<span class="s-label--status ${typeClass}">${
|
|
22
|
+
status ?? "no type"
|
|
23
|
+
}</span>
|
|
24
|
+
`
|
|
25
|
+
: ""
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
describe("label", () => {
|
|
31
|
+
runComponentTests({
|
|
32
|
+
type: "a11y",
|
|
33
|
+
baseClass: `s-label`,
|
|
34
|
+
modifiers: {
|
|
35
|
+
primary: ["sm", "md", "lg", "xl"],
|
|
36
|
+
},
|
|
37
|
+
children: {
|
|
38
|
+
"default": getChildren(),
|
|
39
|
+
"status": getChildren("base"),
|
|
40
|
+
"status-beta": getChildren("beta"),
|
|
41
|
+
"status-new": getChildren("new"),
|
|
42
|
+
"status-required": getChildren("required"),
|
|
43
|
+
},
|
|
44
|
+
tag: "label",
|
|
45
|
+
template: ({ component, testid }) =>
|
|
46
|
+
labelTemplate({ component, testid }),
|
|
47
|
+
});
|
|
48
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { html } from "@open-wc/testing";
|
|
2
|
+
import { runComponentTests } from "../../test/test-utils";
|
|
3
|
+
import "../../index";
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
const labelTemplate = ({ component, testid, isDisabled }: any) => {
|
|
7
|
+
return html`
|
|
8
|
+
<fieldset
|
|
9
|
+
data-testid="${testid}"
|
|
10
|
+
class="p8 ws3"
|
|
11
|
+
?disabled="${isDisabled}"
|
|
12
|
+
>
|
|
13
|
+
${component}
|
|
14
|
+
</fieldset>
|
|
15
|
+
`;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
|
+
const getChildren = (text: string, status?: any) => {
|
|
20
|
+
const typeClass =
|
|
21
|
+
status && status !== "base" ? `s-label--status__${status}` : "";
|
|
22
|
+
return `
|
|
23
|
+
${text}
|
|
24
|
+
${
|
|
25
|
+
status
|
|
26
|
+
? `
|
|
27
|
+
<span class="s-label--status ${typeClass}">${
|
|
28
|
+
status ?? "no type"
|
|
29
|
+
}</span>
|
|
30
|
+
`
|
|
31
|
+
: ""
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
describe("label", () => {
|
|
37
|
+
[true, false].forEach((isDisabled) => {
|
|
38
|
+
const text = isDisabled ? "Disabled label" : "Example label";
|
|
39
|
+
|
|
40
|
+
runComponentTests({
|
|
41
|
+
type: "visual",
|
|
42
|
+
baseClass: `s-label`,
|
|
43
|
+
modifiers: {
|
|
44
|
+
primary: ["sm", "md", "lg", "xl"],
|
|
45
|
+
},
|
|
46
|
+
children: isDisabled
|
|
47
|
+
? {
|
|
48
|
+
"disabled": getChildren(text),
|
|
49
|
+
"disabled-status": getChildren(text, "base"),
|
|
50
|
+
"disabled-status-beta": getChildren(text, "beta"),
|
|
51
|
+
"disabled-status-new": getChildren(text, "new"),
|
|
52
|
+
"disabled-status-required": getChildren(text, "required"),
|
|
53
|
+
}
|
|
54
|
+
: {
|
|
55
|
+
"default": getChildren(text),
|
|
56
|
+
"status": getChildren(text, "base"),
|
|
57
|
+
"status-beta": getChildren(text, "beta"),
|
|
58
|
+
"status-new": getChildren(text, "new"),
|
|
59
|
+
"status-required": getChildren(text, "required"),
|
|
60
|
+
},
|
|
61
|
+
tag: "label",
|
|
62
|
+
template: ({ component, testid }) =>
|
|
63
|
+
labelTemplate({ component, testid, isDisabled }),
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { html } from "@open-wc/testing";
|
|
2
|
+
import { runComponentTests } from "../../test/test-utils";
|
|
3
|
+
import "../../index";
|
|
4
|
+
|
|
5
|
+
describe("menu", () => {
|
|
6
|
+
runComponentTests({
|
|
7
|
+
type: "a11y",
|
|
8
|
+
baseClass: `s-menu`,
|
|
9
|
+
children: {
|
|
10
|
+
default: `
|
|
11
|
+
<li class="s-menu--title" role="separator">Title 1</li>
|
|
12
|
+
<li role="menuitem">
|
|
13
|
+
<a href="#" class="s-block-link">Example li</a>
|
|
14
|
+
</li>
|
|
15
|
+
<li class="s-menu--title" role="separator">Title 2</li>
|
|
16
|
+
<li role="menuitem">
|
|
17
|
+
<a href="#" class="s-block-link s-block-link__left is-selected">Selected link</a>
|
|
18
|
+
</li>
|
|
19
|
+
<li role="menuitem">
|
|
20
|
+
<a href="#" class="s-block-link">Example li</a>
|
|
21
|
+
</li>
|
|
22
|
+
<li role="menuitem" class="s-menu--label">Example label</li>
|
|
23
|
+
<li role="menuitem">
|
|
24
|
+
<a href="#" class="s-block-link">Block link</a>
|
|
25
|
+
</li>
|
|
26
|
+
<li class="s-menu--divider" role="separator"></li>
|
|
27
|
+
<li role="menuitem">
|
|
28
|
+
<a href="…" class="s-block-link s-block-link__danger">Danger link</a>
|
|
29
|
+
</li>
|
|
30
|
+
`,
|
|
31
|
+
},
|
|
32
|
+
tag: "ul",
|
|
33
|
+
attributes: {
|
|
34
|
+
role: "menu",
|
|
35
|
+
},
|
|
36
|
+
template: ({ component, testid }) => html`
|
|
37
|
+
<div class="ws2" data-testid="${testid}">${component}</div>
|
|
38
|
+
`,
|
|
39
|
+
});
|
|
40
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { html } from "@open-wc/testing";
|
|
2
|
+
import { runComponentTests } from "../../test/test-utils";
|
|
3
|
+
import "../../index";
|
|
4
|
+
|
|
5
|
+
describe("menu", () => {
|
|
6
|
+
runComponentTests({
|
|
7
|
+
type: "visual",
|
|
8
|
+
baseClass: `s-menu`,
|
|
9
|
+
children: {
|
|
10
|
+
default: `
|
|
11
|
+
<li class="s-menu--title" role="separator">Title 1</li>
|
|
12
|
+
<li role="menuitem">
|
|
13
|
+
<a href="#" class="s-block-link">Example li</a>
|
|
14
|
+
</li>
|
|
15
|
+
<li class="s-menu--title" role="separator">Title 2</li>
|
|
16
|
+
<li role="menuitem">
|
|
17
|
+
<a href="#" class="s-block-link s-block-link__left is-selected">Selected link</a>
|
|
18
|
+
</li>
|
|
19
|
+
<li role="menuitem">
|
|
20
|
+
<a href="#" class="s-block-link">Example li</a>
|
|
21
|
+
</li>
|
|
22
|
+
<li role="menuitem" class="s-menu--label">Example label</li>
|
|
23
|
+
<li role="menuitem">
|
|
24
|
+
<a href="#" class="s-block-link">Block link</a>
|
|
25
|
+
</li>
|
|
26
|
+
<li class="s-menu--divider" role="separator"></li>
|
|
27
|
+
<li role="menuitem">
|
|
28
|
+
<a href="…" class="s-block-link s-block-link__danger">Danger link</a>
|
|
29
|
+
</li>
|
|
30
|
+
`,
|
|
31
|
+
},
|
|
32
|
+
tag: "ul",
|
|
33
|
+
attributes: {
|
|
34
|
+
role: "menu",
|
|
35
|
+
},
|
|
36
|
+
template: ({ component, testid }) => html`
|
|
37
|
+
<div class="ws2" data-testid="${testid}">${component}</div>
|
|
38
|
+
`,
|
|
39
|
+
});
|
|
40
|
+
});
|
|
@@ -109,9 +109,9 @@
|
|
|
109
109
|
--_ta-bg-selected: var(--orange-500);
|
|
110
110
|
});
|
|
111
111
|
|
|
112
|
-
--_ta-bc: var(--orange-
|
|
112
|
+
--_ta-bc: var(--orange-300);
|
|
113
113
|
--_ta-bg: var(--orange-100);
|
|
114
|
-
--_ta-fc: var(--orange-
|
|
114
|
+
--_ta-fc: var(--orange-600);
|
|
115
115
|
--_ta-bc-hover: var(--orange-300);
|
|
116
116
|
--_ta-bg-hover: var(--orange-200);
|
|
117
117
|
--_ta-fc-hover: var(--orange-600);
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
--_ta-bc-selected: var(--theme-tag-required-selected-border-color, transparent);
|
|
143
143
|
// Background color
|
|
144
144
|
--_ta-bg: var(--theme-tag-required-background-color, var(--theme-secondary-500));
|
|
145
|
-
--_ta-bg-hover: var(--theme-tag-required-hover-background-color var(--theme-secondary-400));
|
|
145
|
+
--_ta-bg-hover: var(--theme-tag-required-hover-background-color, var(--theme-secondary-400));
|
|
146
146
|
--_ta-bg-selected: var(--theme-tag-required-selected-background-color, var(--theme-secondary-600));
|
|
147
147
|
// Color
|
|
148
148
|
--_ta-fc: var(--theme-tag-required-color, var(--white));
|
|
@@ -211,42 +211,42 @@ body:not(.theme-highcontrast):not(.theme-dark) .theme-dark__forced .themed {
|
|
|
211
211
|
--black-500: hsl(210, 8%, 90%);
|
|
212
212
|
--black-600: hsl(210, 11%, 98%);
|
|
213
213
|
--black: hsl(0, 0%, 100%);
|
|
214
|
-
--orange-100: hsl(27,
|
|
215
|
-
--orange-200: hsl(27,
|
|
216
|
-
--orange-300: hsl(27,
|
|
217
|
-
--orange-400: hsl(27,
|
|
218
|
-
--orange-500: hsl(27,
|
|
219
|
-
--orange-600: hsl(27,
|
|
220
|
-
--blue-100: hsl(
|
|
221
|
-
--blue-200: hsl(210,
|
|
222
|
-
--blue-300: hsl(210,
|
|
223
|
-
--blue-400: hsl(210,
|
|
224
|
-
--blue-500: hsl(210,
|
|
225
|
-
--blue-600: hsl(210,
|
|
226
|
-
--green-100: hsl(
|
|
227
|
-
--green-200: hsl(
|
|
228
|
-
--green-300: hsl(
|
|
229
|
-
--green-400: hsl(
|
|
230
|
-
--green-500: hsl(
|
|
231
|
-
--green-600: hsl(
|
|
232
|
-
--red-100: hsl(
|
|
233
|
-
--red-200: hsl(0,
|
|
234
|
-
--red-300: hsl(0,
|
|
235
|
-
--red-400: hsl(0,
|
|
236
|
-
--red-500: hsl(0,
|
|
237
|
-
--red-600: hsl(0,
|
|
238
|
-
--yellow-100: hsl(43,
|
|
239
|
-
--yellow-200: hsl(43,
|
|
240
|
-
--yellow-300: hsl(43,
|
|
241
|
-
--yellow-400: hsl(43,
|
|
242
|
-
--yellow-500: hsl(43,
|
|
243
|
-
--yellow-600: hsl(43,
|
|
244
|
-
--purple-100: hsl(237,
|
|
245
|
-
--purple-200: hsl(237,
|
|
246
|
-
--purple-300: hsl(237,
|
|
247
|
-
--purple-400: hsl(237,
|
|
248
|
-
--purple-500: hsl(237,
|
|
249
|
-
--purple-600: hsl(237,
|
|
214
|
+
--orange-100: hsl(27, 55%, 20%);
|
|
215
|
+
--orange-200: hsl(27, 50%, 33%);
|
|
216
|
+
--orange-300: hsl(27, 50%, 43%);
|
|
217
|
+
--orange-400: hsl(27, 90%, 68%);
|
|
218
|
+
--orange-500: hsl(27, 90%, 80%);
|
|
219
|
+
--orange-600: hsl(27, 90%, 90%);
|
|
220
|
+
--blue-100: hsl(210, 50%, 22%);
|
|
221
|
+
--blue-200: hsl(210, 50%, 36%);
|
|
222
|
+
--blue-300: hsl(210, 50%, 48%);
|
|
223
|
+
--blue-400: hsl(210, 89%, 77%);
|
|
224
|
+
--blue-500: hsl(210, 89%, 84%);
|
|
225
|
+
--blue-600: hsl(210, 89%, 92%);
|
|
226
|
+
--green-100: hsl(149, 51%, 15%);
|
|
227
|
+
--green-200: hsl(149, 51%, 25%);
|
|
228
|
+
--green-300: hsl(149, 51%, 36%);
|
|
229
|
+
--green-400: hsl(149, 50%, 62%);
|
|
230
|
+
--green-500: hsl(149, 50%, 74%);
|
|
231
|
+
--green-600: hsl(149, 50%, 88%);
|
|
232
|
+
--red-100: hsl(0, 43%, 22%);
|
|
233
|
+
--red-200: hsl(0, 43%, 41%);
|
|
234
|
+
--red-300: hsl(0, 43%, 56%);
|
|
235
|
+
--red-400: hsl(0, 90%, 81%);
|
|
236
|
+
--red-500: hsl(0, 90%, 88%);
|
|
237
|
+
--red-600: hsl(0, 90%, 94%);
|
|
238
|
+
--yellow-100: hsl(43, 50%, 17%);
|
|
239
|
+
--yellow-200: hsl(43, 50%, 28%);
|
|
240
|
+
--yellow-300: hsl(43, 50%, 39%);
|
|
241
|
+
--yellow-400: hsl(43, 90%, 75%);
|
|
242
|
+
--yellow-500: hsl(43, 90%, 82%);
|
|
243
|
+
--yellow-600: hsl(43, 90%, 91%);
|
|
244
|
+
--purple-100: hsl(237, 43%, 37%);
|
|
245
|
+
--purple-200: hsl(237, 51%, 52%);
|
|
246
|
+
--purple-300: hsl(237, 63%, 62%);
|
|
247
|
+
--purple-400: hsl(237, 89%, 83%);
|
|
248
|
+
--purple-500: hsl(237, 89%, 89%);
|
|
249
|
+
--purple-600: hsl(237, 89%, 94%);
|
|
250
250
|
--gold-100: hsl(45, 29%, 24%);
|
|
251
251
|
--gold-200: hsl(45, 47%, 37%);
|
|
252
252
|
--gold-300: hsl(45, 92%, 62%);
|
|
@@ -286,7 +286,7 @@ body:not(.theme-highcontrast):not(.theme-dark) .theme-dark__forced .themed {
|
|
|
286
286
|
--highlight-punctuation: hsl(0, 0%, 80%);
|
|
287
287
|
--highlight-symbol: hsl(306, 43%, 69%);
|
|
288
288
|
--highlight-variable: hsl(65.5, 39%, 57.5%);
|
|
289
|
-
--scrollbar: hsla(0, 0%,
|
|
289
|
+
--scrollbar: hsla(0, 0%, 100%, 0.2);
|
|
290
290
|
--theme-primary: var(--theme-dark-primary-custom, var(--orange-400));
|
|
291
291
|
--theme-primary-100: var(--theme-dark-primary-custom-100, var(--orange-100));
|
|
292
292
|
--theme-primary-200: var(--theme-dark-primary-custom-200, var(--orange-200));
|
|
@@ -336,42 +336,42 @@ body:not(.theme-highcontrast):not(.theme-dark) .theme-dark__forced .themed {
|
|
|
336
336
|
--black-500: hsl(210, 8%, 90%);
|
|
337
337
|
--black-600: hsl(210, 11%, 98%);
|
|
338
338
|
--black: hsl(0, 0%, 100%);
|
|
339
|
-
--orange-100: hsl(27,
|
|
340
|
-
--orange-200: hsl(27,
|
|
341
|
-
--orange-300: hsl(27,
|
|
342
|
-
--orange-400: hsl(27,
|
|
343
|
-
--orange-500: hsl(27,
|
|
344
|
-
--orange-600: hsl(27,
|
|
345
|
-
--blue-100: hsl(
|
|
346
|
-
--blue-200: hsl(210,
|
|
347
|
-
--blue-300: hsl(210,
|
|
348
|
-
--blue-400: hsl(210,
|
|
349
|
-
--blue-500: hsl(210,
|
|
350
|
-
--blue-600: hsl(210,
|
|
351
|
-
--green-100: hsl(
|
|
352
|
-
--green-200: hsl(
|
|
353
|
-
--green-300: hsl(
|
|
354
|
-
--green-400: hsl(
|
|
355
|
-
--green-500: hsl(
|
|
356
|
-
--green-600: hsl(
|
|
357
|
-
--red-100: hsl(
|
|
358
|
-
--red-200: hsl(0,
|
|
359
|
-
--red-300: hsl(0,
|
|
360
|
-
--red-400: hsl(0,
|
|
361
|
-
--red-500: hsl(0,
|
|
362
|
-
--red-600: hsl(0,
|
|
363
|
-
--yellow-100: hsl(43,
|
|
364
|
-
--yellow-200: hsl(43,
|
|
365
|
-
--yellow-300: hsl(43,
|
|
366
|
-
--yellow-400: hsl(43,
|
|
367
|
-
--yellow-500: hsl(43,
|
|
368
|
-
--yellow-600: hsl(43,
|
|
369
|
-
--purple-100: hsl(237,
|
|
370
|
-
--purple-200: hsl(237,
|
|
371
|
-
--purple-300: hsl(237,
|
|
372
|
-
--purple-400: hsl(237,
|
|
373
|
-
--purple-500: hsl(237,
|
|
374
|
-
--purple-600: hsl(237,
|
|
339
|
+
--orange-100: hsl(27, 55%, 20%);
|
|
340
|
+
--orange-200: hsl(27, 50%, 33%);
|
|
341
|
+
--orange-300: hsl(27, 50%, 43%);
|
|
342
|
+
--orange-400: hsl(27, 90%, 68%);
|
|
343
|
+
--orange-500: hsl(27, 90%, 80%);
|
|
344
|
+
--orange-600: hsl(27, 90%, 90%);
|
|
345
|
+
--blue-100: hsl(210, 50%, 22%);
|
|
346
|
+
--blue-200: hsl(210, 50%, 36%);
|
|
347
|
+
--blue-300: hsl(210, 50%, 48%);
|
|
348
|
+
--blue-400: hsl(210, 89%, 77%);
|
|
349
|
+
--blue-500: hsl(210, 89%, 84%);
|
|
350
|
+
--blue-600: hsl(210, 89%, 92%);
|
|
351
|
+
--green-100: hsl(149, 51%, 15%);
|
|
352
|
+
--green-200: hsl(149, 51%, 25%);
|
|
353
|
+
--green-300: hsl(149, 51%, 36%);
|
|
354
|
+
--green-400: hsl(149, 50%, 62%);
|
|
355
|
+
--green-500: hsl(149, 50%, 74%);
|
|
356
|
+
--green-600: hsl(149, 50%, 88%);
|
|
357
|
+
--red-100: hsl(0, 43%, 22%);
|
|
358
|
+
--red-200: hsl(0, 43%, 41%);
|
|
359
|
+
--red-300: hsl(0, 43%, 56%);
|
|
360
|
+
--red-400: hsl(0, 90%, 81%);
|
|
361
|
+
--red-500: hsl(0, 90%, 88%);
|
|
362
|
+
--red-600: hsl(0, 90%, 94%);
|
|
363
|
+
--yellow-100: hsl(43, 50%, 17%);
|
|
364
|
+
--yellow-200: hsl(43, 50%, 28%);
|
|
365
|
+
--yellow-300: hsl(43, 50%, 39%);
|
|
366
|
+
--yellow-400: hsl(43, 90%, 75%);
|
|
367
|
+
--yellow-500: hsl(43, 90%, 82%);
|
|
368
|
+
--yellow-600: hsl(43, 90%, 91%);
|
|
369
|
+
--purple-100: hsl(237, 43%, 37%);
|
|
370
|
+
--purple-200: hsl(237, 51%, 52%);
|
|
371
|
+
--purple-300: hsl(237, 63%, 62%);
|
|
372
|
+
--purple-400: hsl(237, 89%, 83%);
|
|
373
|
+
--purple-500: hsl(237, 89%, 89%);
|
|
374
|
+
--purple-600: hsl(237, 89%, 94%);
|
|
375
375
|
--gold-100: hsl(45, 29%, 24%);
|
|
376
376
|
--gold-200: hsl(45, 47%, 37%);
|
|
377
377
|
--gold-300: hsl(45, 92%, 62%);
|
|
@@ -411,7 +411,7 @@ body:not(.theme-highcontrast):not(.theme-dark) .theme-dark__forced .themed {
|
|
|
411
411
|
--highlight-punctuation: hsl(0, 0%, 80%);
|
|
412
412
|
--highlight-symbol: hsl(306, 43%, 69%);
|
|
413
413
|
--highlight-variable: hsl(65.5, 39%, 57.5%);
|
|
414
|
-
--scrollbar: hsla(0, 0%,
|
|
414
|
+
--scrollbar: hsla(0, 0%, 100%, 0.2);
|
|
415
415
|
--theme-primary: var(--theme-dark-primary-custom, var(--orange-400));
|
|
416
416
|
--theme-primary-100: var(--theme-dark-primary-custom-100, var(--orange-100));
|
|
417
417
|
--theme-primary-200: var(--theme-dark-primary-custom-200, var(--orange-200));
|
|
@@ -94,12 +94,12 @@
|
|
|
94
94
|
600: hsl(27, 80%, 29%);
|
|
95
95
|
}
|
|
96
96
|
.set-orange-dark() {
|
|
97
|
-
100: hsl(27,
|
|
98
|
-
200: hsl(27,
|
|
99
|
-
300: hsl(27,
|
|
100
|
-
400: hsl(27,
|
|
101
|
-
500: hsl(27,
|
|
102
|
-
600: hsl(27,
|
|
97
|
+
100: hsl(27, 55%, 20%);
|
|
98
|
+
200: hsl(27, 50%, 33%);
|
|
99
|
+
300: hsl(27, 50%, 43%);
|
|
100
|
+
400: hsl(27, 90%, 68%);
|
|
101
|
+
500: hsl(27, 90%, 80%);
|
|
102
|
+
600: hsl(27, 90%, 90%);
|
|
103
103
|
}
|
|
104
104
|
.set-orange-hc() {
|
|
105
105
|
100: hsl(23, 87%, 97%);
|
|
@@ -128,12 +128,12 @@
|
|
|
128
128
|
600: hsl(210, 80%, 23%);
|
|
129
129
|
}
|
|
130
130
|
.set-blue-dark() {
|
|
131
|
-
100: hsl(
|
|
132
|
-
200: hsl(210,
|
|
133
|
-
300: hsl(210,
|
|
134
|
-
400: hsl(210,
|
|
135
|
-
500: hsl(210,
|
|
136
|
-
600: hsl(210,
|
|
131
|
+
100: hsl(210, 50%, 22%);
|
|
132
|
+
200: hsl(210, 50%, 36%);
|
|
133
|
+
300: hsl(210, 50%, 48%);
|
|
134
|
+
400: hsl(210, 89%, 77%);
|
|
135
|
+
500: hsl(210, 89%, 84%);
|
|
136
|
+
600: hsl(210, 89%, 92%);
|
|
137
137
|
}
|
|
138
138
|
.set-blue-hc() {
|
|
139
139
|
100: hsl(210, 80%, 96%);
|
|
@@ -162,12 +162,12 @@
|
|
|
162
162
|
600: hsl(148, 75%, 15%);
|
|
163
163
|
}
|
|
164
164
|
.set-green-dark() {
|
|
165
|
-
100: hsl(
|
|
166
|
-
200: hsl(
|
|
167
|
-
300: hsl(
|
|
168
|
-
400: hsl(
|
|
169
|
-
500: hsl(
|
|
170
|
-
600: hsl(
|
|
165
|
+
100: hsl(149, 51%, 15%);
|
|
166
|
+
200: hsl(149, 51%, 25%);
|
|
167
|
+
300: hsl(149, 51%, 36%);
|
|
168
|
+
400: hsl(149, 50%, 62%);
|
|
169
|
+
500: hsl(149, 50%, 74%);
|
|
170
|
+
600: hsl(149, 50%, 88%);
|
|
171
171
|
}
|
|
172
172
|
.set-green-hc() {
|
|
173
173
|
100: hsl(147, 36%, 95%);
|
|
@@ -196,12 +196,12 @@
|
|
|
196
196
|
600: hsl(0, 65%, 22%);
|
|
197
197
|
}
|
|
198
198
|
.set-red-dark() {
|
|
199
|
-
100: hsl(
|
|
200
|
-
200: hsl(0,
|
|
201
|
-
300: hsl(0,
|
|
202
|
-
400: hsl(0,
|
|
203
|
-
500: hsl(0,
|
|
204
|
-
600: hsl(0,
|
|
199
|
+
100: hsl(0, 43%, 22%);
|
|
200
|
+
200: hsl(0, 43%, 41%);
|
|
201
|
+
300: hsl(0, 43%, 56%);
|
|
202
|
+
400: hsl(0, 90%, 81%);
|
|
203
|
+
500: hsl(0, 90%, 88%);
|
|
204
|
+
600: hsl(0, 90%, 94%);
|
|
205
205
|
}
|
|
206
206
|
.set-red-hc() {
|
|
207
207
|
100: hsl(0, 80%, 96%);
|
|
@@ -230,12 +230,12 @@
|
|
|
230
230
|
600: hsl(43, 84%, 18%);
|
|
231
231
|
}
|
|
232
232
|
.set-yellow-dark() {
|
|
233
|
-
100: hsl(43,
|
|
234
|
-
200: hsl(43,
|
|
235
|
-
300: hsl(43,
|
|
236
|
-
400: hsl(43,
|
|
237
|
-
500: hsl(43,
|
|
238
|
-
600: hsl(43,
|
|
233
|
+
100: hsl(43, 50%, 17%);
|
|
234
|
+
200: hsl(43, 50%, 28%);
|
|
235
|
+
300: hsl(43, 50%, 39%);
|
|
236
|
+
400: hsl(43, 90%, 75%);
|
|
237
|
+
500: hsl(43, 90%, 82%);
|
|
238
|
+
600: hsl(43, 90%, 91%);
|
|
239
239
|
}
|
|
240
240
|
.set-yellow-hc() {
|
|
241
241
|
100: hsl(41, 80%, 96%);
|
|
@@ -264,12 +264,12 @@
|
|
|
264
264
|
600: hsl(237, 50%, 32%);
|
|
265
265
|
}
|
|
266
266
|
.set-purple-dark() {
|
|
267
|
-
100: hsl(237,
|
|
268
|
-
200: hsl(237,
|
|
269
|
-
300: hsl(237,
|
|
270
|
-
400: hsl(237,
|
|
271
|
-
500: hsl(237,
|
|
272
|
-
600: hsl(237,
|
|
267
|
+
100: hsl(237, 43%, 37%);
|
|
268
|
+
200: hsl(237, 51%, 52%);
|
|
269
|
+
300: hsl(237, 63%, 62%);
|
|
270
|
+
400: hsl(237, 89%, 83%);
|
|
271
|
+
500: hsl(237, 89%, 89%);
|
|
272
|
+
600: hsl(237, 89%, 94%);
|
|
273
273
|
}
|
|
274
274
|
.set-purple-hc() {
|
|
275
275
|
100: hsl(237, 83%, 98%);
|
|
@@ -512,13 +512,18 @@
|
|
|
512
512
|
variable: hsl(62, 71%, 81%);
|
|
513
513
|
}
|
|
514
514
|
|
|
515
|
-
// Scrollbar (sets represents both light and dark mode)
|
|
516
515
|
.set-scrollbar() {
|
|
517
516
|
default: hsla(0, 0%, 0%, 0.2);
|
|
518
517
|
}
|
|
518
|
+
.set-scrollbar-dark() {
|
|
519
|
+
default: hsla(0, 0%, 100%, 0.2);
|
|
520
|
+
}
|
|
519
521
|
.set-scrollbar-hc() {
|
|
520
522
|
default: var(--black);
|
|
521
523
|
}
|
|
524
|
+
.set-scrollbar-hc-dark() {
|
|
525
|
+
default: var(--black);
|
|
526
|
+
}
|
|
522
527
|
|
|
523
528
|
// Color sets
|
|
524
529
|
.sets-mode() {
|
|
@@ -612,7 +617,7 @@
|
|
|
612
617
|
bs: .set-bs-dark();
|
|
613
618
|
focus-ring: .set-focus-dark();
|
|
614
619
|
highlight: .set-highlight-dark();
|
|
615
|
-
scrollbar: .set-scrollbar();
|
|
620
|
+
scrollbar: .set-scrollbar-dark();
|
|
616
621
|
}
|
|
617
622
|
|
|
618
623
|
.sets-utility-hc() {
|
|
@@ -628,7 +633,7 @@
|
|
|
628
633
|
bs: .set-bs-hc-dark();
|
|
629
634
|
focus-ring: .set-focus-hc();
|
|
630
635
|
highlight: .set-highlight-hc-dark();
|
|
631
|
-
scrollbar: .set-scrollbar-hc();
|
|
636
|
+
scrollbar: .set-scrollbar-hc-dark();
|
|
632
637
|
}
|
|
633
638
|
|
|
634
639
|
// Theme values
|