@oscarpalmer/oui 0.7.0 → 0.9.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/css/{badges.css → badge.css} +9 -9
- package/dist/css/color.css +102 -0
- package/dist/css/form.css +26 -23
- package/dist/css/message.css +4 -4
- package/dist/css/table.css +8 -8
- package/dist/js/focus-trap.cjs +147 -0
- package/dist/js/focus-trap.js +146 -0
- package/dist/js/index.cjs +2 -0
- package/dist/js/index.js +1 -0
- package/package.json +49 -9
- package/src/css/{badges.scss → badge.scss} +9 -9
- package/src/css/color.scss +113 -0
- package/src/css/form.scss +26 -23
- package/src/css/message.scss +4 -4
- package/src/css/mixins.scss +0 -56
- package/src/css/table.scss +8 -8
- package/src/js/focus-trap.ts +181 -0
- package/src/js/index.ts +1 -0
- package/types/focus-trap.d.cts +3 -0
- package/types/focus-trap.d.ts +1 -0
- package/types/index.d.cts +3 -0
- package/types/index.d.ts +1 -0
- package/dist/css/colours.css +0 -102
- package/src/css/colours.scss +0 -113
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import {clamp} from '@oscarpalmer/atoms/number';
|
|
2
|
+
import {on} from '@oscarpalmer/toretto/event';
|
|
3
|
+
import {findAncestor} from '@oscarpalmer/toretto/find';
|
|
4
|
+
import {getFocusable} from '@oscarpalmer/toretto/focusable';
|
|
5
|
+
|
|
6
|
+
class FocusTrap {
|
|
7
|
+
active = true;
|
|
8
|
+
|
|
9
|
+
constructor(private element: HTMLElement) {
|
|
10
|
+
element.setAttribute('aria-modal', 'true');
|
|
11
|
+
element.setAttribute('tabindex', '-1');
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
activate() {
|
|
15
|
+
this.element.setAttribute('aria-modal', 'true');
|
|
16
|
+
|
|
17
|
+
this.active = true;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
destroy() {
|
|
21
|
+
this.active = false;
|
|
22
|
+
this.element = undefined as never;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
inactivate() {
|
|
26
|
+
this.element.setAttribute('aria-modal', 'false');
|
|
27
|
+
|
|
28
|
+
this.active = false;
|
|
29
|
+
|
|
30
|
+
inactive.add(this);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function addFocusTraps(nodes: Node[] | NodeList): void {
|
|
35
|
+
const elements = [...nodes].filter(
|
|
36
|
+
node => node instanceof HTMLElement,
|
|
37
|
+
) as HTMLElement[];
|
|
38
|
+
|
|
39
|
+
const {length} = elements;
|
|
40
|
+
|
|
41
|
+
for (let index = 0; index < length; index += 1) {
|
|
42
|
+
const element = elements[index];
|
|
43
|
+
|
|
44
|
+
if (element.hasAttribute(selector)) {
|
|
45
|
+
focusTraps.set(element, new FocusTrap(element));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function onEscape(event: KeyboardEvent): void {
|
|
51
|
+
if (event.key !== 'Escape') {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const element = findAncestor(
|
|
56
|
+
document.activeElement as never,
|
|
57
|
+
`[${selector}]`,
|
|
58
|
+
) as HTMLElement;
|
|
59
|
+
|
|
60
|
+
focusTraps.get(element)?.inactivate();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function onFocusOut(): void {
|
|
64
|
+
if (inactive.size === 0) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
setTimeout(() => {
|
|
69
|
+
const element = findAncestor(
|
|
70
|
+
document.activeElement as never,
|
|
71
|
+
`[${selector}]`,
|
|
72
|
+
) as HTMLElement;
|
|
73
|
+
|
|
74
|
+
if (!focusTraps.has(element)) {
|
|
75
|
+
for (const focusTrap of inactive) {
|
|
76
|
+
focusTrap.activate();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}, 0);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function onTab(event: KeyboardEvent): void {
|
|
83
|
+
if (event.key !== 'Tab') {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const element = findAncestor(
|
|
88
|
+
event.target as never,
|
|
89
|
+
`[${selector}]`,
|
|
90
|
+
) as HTMLElement;
|
|
91
|
+
|
|
92
|
+
if (!(focusTraps.get(element)?.active ?? false)) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
event.preventDefault();
|
|
97
|
+
|
|
98
|
+
const elements = getFocusable(element);
|
|
99
|
+
const {length} = elements;
|
|
100
|
+
|
|
101
|
+
const index = elements.indexOf(event.target as HTMLElement);
|
|
102
|
+
|
|
103
|
+
if (index === -1 || length === 0) {
|
|
104
|
+
if (length === 0) {
|
|
105
|
+
element.focus();
|
|
106
|
+
} else {
|
|
107
|
+
(elements[0] as HTMLElement).focus();
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const next = clamp(index + (event.shiftKey ? -1 : 1), 0, length - 1, true);
|
|
114
|
+
|
|
115
|
+
if (next !== index) {
|
|
116
|
+
(elements[next] as HTMLElement).focus();
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function removeFocusTraps(nodes: Node[] | NodeList): void {
|
|
121
|
+
const elements = [...nodes].filter(
|
|
122
|
+
node => node instanceof HTMLElement,
|
|
123
|
+
) as HTMLElement[];
|
|
124
|
+
|
|
125
|
+
const {length} = elements;
|
|
126
|
+
|
|
127
|
+
for (let index = 0; index < length; index += 1) {
|
|
128
|
+
const element = elements[index];
|
|
129
|
+
|
|
130
|
+
focusTraps.get(element)?.destroy();
|
|
131
|
+
focusTraps.delete(element);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
const focusTraps = new WeakMap<HTMLElement, FocusTrap>();
|
|
136
|
+
const inactive = new Set<FocusTrap>();
|
|
137
|
+
|
|
138
|
+
const observer = new MutationObserver(entries => {
|
|
139
|
+
const {length} = entries;
|
|
140
|
+
|
|
141
|
+
for (let index = 0; index < length; index += 1) {
|
|
142
|
+
const entry = entries[index];
|
|
143
|
+
|
|
144
|
+
if (entry.type === 'attributes' && entry.target instanceof HTMLElement) {
|
|
145
|
+
if (entry.target.hasAttribute(selector)) {
|
|
146
|
+
addFocusTraps([entry.target]);
|
|
147
|
+
} else {
|
|
148
|
+
removeFocusTraps([entry.target]);
|
|
149
|
+
}
|
|
150
|
+
} else if (entry.type === 'childList') {
|
|
151
|
+
addFocusTraps(entry.addedNodes);
|
|
152
|
+
removeFocusTraps(entry.removedNodes);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
const selector = 'oui-focus-trap';
|
|
158
|
+
|
|
159
|
+
observer.observe(document, {
|
|
160
|
+
attributeFilter: [selector],
|
|
161
|
+
attributes: true,
|
|
162
|
+
childList: true,
|
|
163
|
+
subtree: true,
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
setTimeout(() => {
|
|
167
|
+
addFocusTraps(document.querySelectorAll(`[${selector}]`));
|
|
168
|
+
|
|
169
|
+
on(document, 'focusout', onFocusOut, {
|
|
170
|
+
capture: true,
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
on(document, 'keydown', onTab, {
|
|
174
|
+
capture: true,
|
|
175
|
+
passive: false,
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
on(document, 'keydown', onEscape, {
|
|
179
|
+
passive: false,
|
|
180
|
+
});
|
|
181
|
+
}, 0);
|
package/src/js/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './focus-trap';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './focus-trap';
|
package/dist/css/colours.css
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--oui-absolute: light-dark(white, black);
|
|
3
|
-
--oui-blue-0: light-dark(oklch(0.97 0.01 260), oklch(0.18 0.1 250));
|
|
4
|
-
--oui-blue-1: light-dark(oklch(0.94 0.03 259), oklch(0.24 0.12 251));
|
|
5
|
-
--oui-blue-2: light-dark(oklch(0.88 0.05 258), oklch(0.36 0.14 252));
|
|
6
|
-
--oui-blue-3: light-dark(oklch(0.82 0.07 257), oklch(0.48 0.18 253));
|
|
7
|
-
--oui-blue-4: light-dark(oklch(0.75 0.09 256), oklch(0.58 0.18 254));
|
|
8
|
-
--oui-blue-5: light-dark(oklch(0.67 0.11 255), oklch(0.67 0.14 255));
|
|
9
|
-
--oui-blue-6: light-dark(oklch(0.58 0.14 254), oklch(0.75 0.11 256));
|
|
10
|
-
--oui-blue-7: light-dark(oklch(0.48 0.18 253), oklch(0.82 0.09 257));
|
|
11
|
-
--oui-blue-8: light-dark(oklch(0.36 0.14 252), oklch(0.88 0.07 258));
|
|
12
|
-
--oui-blue-9: light-dark(oklch(0.24 0.12 251), oklch(0.94 0.05 259));
|
|
13
|
-
--oui-blue-10: light-dark(oklch(0.18 0.1 250), oklch(0.97 0.03 260));
|
|
14
|
-
--oui-green-0: light-dark(oklch(0.97 0.01 150), oklch(0.18 0.1 140));
|
|
15
|
-
--oui-green-1: light-dark(oklch(0.94 0.03 149), oklch(0.24 0.12 141));
|
|
16
|
-
--oui-green-2: light-dark(oklch(0.88 0.05 148), oklch(0.36 0.14 142));
|
|
17
|
-
--oui-green-3: light-dark(oklch(0.82 0.07 147), oklch(0.48 0.16 143));
|
|
18
|
-
--oui-green-4: light-dark(oklch(0.75 0.09 146), oklch(0.58 0.14 144));
|
|
19
|
-
--oui-green-5: light-dark(oklch(0.67 0.11 145), oklch(0.67 0.13 145));
|
|
20
|
-
--oui-green-6: light-dark(oklch(0.58 0.14 144), oklch(0.75 0.11 146));
|
|
21
|
-
--oui-green-7: light-dark(oklch(0.48 0.16 143), oklch(0.82 0.07 147));
|
|
22
|
-
--oui-green-8: light-dark(oklch(0.36 0.14 142), oklch(0.88 0.05 148));
|
|
23
|
-
--oui-green-9: light-dark(oklch(0.24 0.12 141), oklch(0.94 0.03 149));
|
|
24
|
-
--oui-green-10: light-dark(oklch(0.18 0.1 140), oklch(0.97 0.01 150));
|
|
25
|
-
--oui-orange-0: light-dark(oklch(0.975 0.02 60), oklch(0.1875 0.1 50));
|
|
26
|
-
--oui-orange-1: light-dark(oklch(0.94 0.03 59), oklch(0.255 0.125 51));
|
|
27
|
-
--oui-orange-2: light-dark(oklch(0.88 0.05 58), oklch(0.385 0.15 52));
|
|
28
|
-
--oui-orange-3: light-dark(oklch(0.82 0.08 57), oklch(0.515 0.18 53));
|
|
29
|
-
--oui-orange-4: light-dark(oklch(0.75 0.11 56), oklch(0.635 0.2 54));
|
|
30
|
-
--oui-orange-5: light-dark(oklch(0.67 0.13 55), oklch(0.735 0.18 55));
|
|
31
|
-
--oui-orange-6: light-dark(oklch(0.57 0.16 54), oklch(0.795 0.14 56));
|
|
32
|
-
--oui-orange-7: light-dark(oklch(0.46 0.15 53), oklch(0.855 0.12 57));
|
|
33
|
-
--oui-orange-8: light-dark(oklch(0.34 0.12 53), oklch(0.905 0.08 58));
|
|
34
|
-
--oui-orange-9: light-dark(oklch(0.24 0.11 51), oklch(0.945 0.04 59));
|
|
35
|
-
--oui-orange-10: light-dark(oklch(0.18 0.1 50), oklch(0.975 0.02 60));
|
|
36
|
-
--oui-purple-0: light-dark(oklch(0.97 0.01 300), oklch(0.18 0.1 290));
|
|
37
|
-
--oui-purple-1: light-dark(oklch(0.94 0.03 299), oklch(0.24 0.12 291));
|
|
38
|
-
--oui-purple-2: light-dark(oklch(0.88 0.05 298), oklch(0.36 0.13 292));
|
|
39
|
-
--oui-purple-3: light-dark(oklch(0.82 0.07 297), oklch(0.48 0.15 293));
|
|
40
|
-
--oui-purple-4: light-dark(oklch(0.75 0.09 296), oklch(0.58 0.13 294));
|
|
41
|
-
--oui-purple-5: light-dark(oklch(0.67 0.11 295), oklch(0.67 0.11 295));
|
|
42
|
-
--oui-purple-6: light-dark(oklch(0.58 0.13 294), oklch(0.75 0.09 296));
|
|
43
|
-
--oui-purple-7: light-dark(oklch(0.48 0.15 293), oklch(0.82 0.07 297));
|
|
44
|
-
--oui-purple-8: light-dark(oklch(0.36 0.13 292), oklch(0.88 0.05 298));
|
|
45
|
-
--oui-purple-9: light-dark(oklch(0.24 0.12 291), oklch(0.94 0.03 299));
|
|
46
|
-
--oui-purple-10: light-dark(oklch(0.18 0.1 290), oklch(0.97 0.01 300));
|
|
47
|
-
--oui-red-0: light-dark(oklch(0.97 0.01 15), oklch(0.18 0.1 25));
|
|
48
|
-
--oui-red-1: light-dark(oklch(0.94 0.03 16), oklch(0.24 0.125 24));
|
|
49
|
-
--oui-red-2: light-dark(oklch(0.88 0.05 17), oklch(0.36 0.15 23));
|
|
50
|
-
--oui-red-3: light-dark(oklch(0.82 0.07 18), oklch(0.48 0.18 22));
|
|
51
|
-
--oui-red-4: light-dark(oklch(0.75 0.09 19), oklch(0.58 0.14 21));
|
|
52
|
-
--oui-red-5: light-dark(oklch(0.67 0.11 20), oklch(0.67 0.11 20));
|
|
53
|
-
--oui-red-6: light-dark(oklch(0.58 0.14 21), oklch(0.75 0.09 19));
|
|
54
|
-
--oui-red-7: light-dark(oklch(0.48 0.18 22), oklch(0.82 0.07 18));
|
|
55
|
-
--oui-red-8: light-dark(oklch(0.36 0.15 23), oklch(0.88 0.05 17));
|
|
56
|
-
--oui-red-9: light-dark(oklch(0.24 0.125 24), oklch(0.94 0.03 16));
|
|
57
|
-
--oui-red-10: light-dark(oklch(0.18 0.1 25), oklch(0.97 0.01 15));
|
|
58
|
-
--oui-yellow-0: light-dark(oklch(0.975 0.02 100), oklch(0.1875 0.1 90));
|
|
59
|
-
--oui-yellow-1: light-dark(oklch(0.945 0.04 99), oklch(0.255 0.125 91));
|
|
60
|
-
--oui-yellow-2: light-dark(oklch(0.905 0.08 98), oklch(0.385 0.15 92));
|
|
61
|
-
--oui-yellow-3: light-dark(oklch(0.855 0.12 97), oklch(0.515 0.18 93));
|
|
62
|
-
--oui-yellow-4: light-dark(oklch(0.795 0.14 96), oklch(0.635 0.2 94));
|
|
63
|
-
--oui-yellow-5: light-dark(oklch(0.735 0.18 95), oklch(0.735 0.18 95));
|
|
64
|
-
--oui-yellow-6: light-dark(oklch(0.635 0.2 94), oklch(0.795 0.14 96));
|
|
65
|
-
--oui-yellow-7: light-dark(oklch(0.515 0.18 93), oklch(0.855 0.12 97));
|
|
66
|
-
--oui-yellow-8: light-dark(oklch(0.385 0.15 92), oklch(0.905 0.08 98));
|
|
67
|
-
--oui-yellow-9: light-dark(oklch(0.255 0.125 91), oklch(0.945 0.04 99));
|
|
68
|
-
--oui-yellow-10: light-dark(oklch(0.1875 0.1 90), oklch(0.975 0.02 100));
|
|
69
|
-
--oui-grey-0: light-dark(oklch(0.97 0 0), oklch(0.18 0 0));
|
|
70
|
-
--oui-grey-1: light-dark(oklch(0.94 0 0), oklch(0.24 0 0));
|
|
71
|
-
--oui-grey-2: light-dark(oklch(0.88 0 0), oklch(0.36 0 0));
|
|
72
|
-
--oui-grey-3: light-dark(oklch(0.82 0 0), oklch(0.48 0 0));
|
|
73
|
-
--oui-grey-4: light-dark(oklch(0.75 0 0), oklch(0.58 0 0));
|
|
74
|
-
--oui-grey-5: light-dark(oklch(0.67 0 0), oklch(0.67 0 0));
|
|
75
|
-
--oui-grey-6: light-dark(oklch(0.58 0 0), oklch(0.75 0 0));
|
|
76
|
-
--oui-grey-7: light-dark(oklch(0.48 0 0), oklch(0.82 0 0));
|
|
77
|
-
--oui-grey-8: light-dark(oklch(0.36 0 0), oklch(0.88 0 0));
|
|
78
|
-
--oui-grey-9: light-dark(oklch(0.24 0 0), oklch(0.94 0 0));
|
|
79
|
-
--oui-grey-10: light-dark(oklch(0.18 0 0), oklch(0.97 0 0));
|
|
80
|
-
--oui-slate-0: light-dark(oklch(0.97 0.005 255), oklch(0.18 0.005 255));
|
|
81
|
-
--oui-slate-1: light-dark(oklch(0.94 0.005 255), oklch(0.24 0.005 255));
|
|
82
|
-
--oui-slate-2: light-dark(oklch(0.88 0.01 255), oklch(0.36 0.01 255));
|
|
83
|
-
--oui-slate-3: light-dark(oklch(0.82 0.01 255), oklch(0.48 0.01 255));
|
|
84
|
-
--oui-slate-4: light-dark(oklch(0.75 0.02 255), oklch(0.58 0.02 255));
|
|
85
|
-
--oui-slate-5: light-dark(oklch(0.67 0.02 255), oklch(0.67 0.02 255));
|
|
86
|
-
--oui-slate-6: light-dark(oklch(0.58 0.02 255), oklch(0.75 0.02 255));
|
|
87
|
-
--oui-slate-7: light-dark(oklch(0.48 0.01 255), oklch(0.82 0.01 255));
|
|
88
|
-
--oui-slate-8: light-dark(oklch(0.36 0.01 255), oklch(0.88 0.01 255));
|
|
89
|
-
--oui-slate-9: light-dark(oklch(0.24 0.005 255), oklch(0.94 0.005 255));
|
|
90
|
-
--oui-slate-10: light-dark(oklch(0.18 0.005 255), oklch(0.97 0.005 255));
|
|
91
|
-
--oui-stone-0: light-dark(oklch(0.97 0.005 95), oklch(0.18 0.005 95));
|
|
92
|
-
--oui-stone-1: light-dark(oklch(0.94 0.005 95), oklch(0.24 0.005 95));
|
|
93
|
-
--oui-stone-2: light-dark(oklch(0.9 0.01 95), oklch(0.36 0.01 95));
|
|
94
|
-
--oui-stone-3: light-dark(oklch(0.82 0.01 95), oklch(0.48 0.01 95));
|
|
95
|
-
--oui-stone-4: light-dark(oklch(0.75 0.02 95), oklch(0.58 0.02 95));
|
|
96
|
-
--oui-stone-5: light-dark(oklch(0.67 0.02 95), oklch(0.67 0.02 95));
|
|
97
|
-
--oui-stone-6: light-dark(oklch(0.58 0.02 95), oklch(0.75 0.02 95));
|
|
98
|
-
--oui-stone-7: light-dark(oklch(0.48 0.01 95), oklch(0.82 0.01 95));
|
|
99
|
-
--oui-stone-8: light-dark(oklch(0.36 0.01 95), oklch(0.9 0.01 95));
|
|
100
|
-
--oui-stone-9: light-dark(oklch(0.24 0.005 95), oklch(0.94 0.005 95));
|
|
101
|
-
--oui-stone-10: light-dark(oklch(0.18 0.005 95), oklch(0.97 0.005 95));
|
|
102
|
-
}
|
package/src/css/colours.scss
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
@use './mixins' as mixins;
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
--oui-absolute: light-dark(white, black);
|
|
5
|
-
|
|
6
|
-
--oui-blue-0: light-dark(oklch(0.97 0.01 260), oklch(0.18 0.1 250));
|
|
7
|
-
--oui-blue-1: light-dark(oklch(0.94 0.03 259), oklch(0.24 0.12 251));
|
|
8
|
-
--oui-blue-2: light-dark(oklch(0.88 0.05 258), oklch(0.36 0.14 252));
|
|
9
|
-
--oui-blue-3: light-dark(oklch(0.82 0.07 257), oklch(0.48 0.18 253));
|
|
10
|
-
--oui-blue-4: light-dark(oklch(0.75 0.09 256), oklch(0.58 0.18 254));
|
|
11
|
-
--oui-blue-5: light-dark(oklch(0.67 0.11 255), oklch(0.67 0.14 255));
|
|
12
|
-
--oui-blue-6: light-dark(oklch(0.58 0.14 254), oklch(0.75 0.11 256));
|
|
13
|
-
--oui-blue-7: light-dark(oklch(0.48 0.18 253), oklch(0.82 0.09 257));
|
|
14
|
-
--oui-blue-8: light-dark(oklch(0.36 0.14 252), oklch(0.88 0.07 258));
|
|
15
|
-
--oui-blue-9: light-dark(oklch(0.24 0.12 251), oklch(0.94 0.05 259));
|
|
16
|
-
--oui-blue-10: light-dark(oklch(0.18 0.1 250), oklch(0.97 0.03 260));
|
|
17
|
-
|
|
18
|
-
--oui-green-0: light-dark(oklch(0.97 0.01 150), oklch(0.18 0.1 140));
|
|
19
|
-
--oui-green-1: light-dark(oklch(0.94 0.03 149), oklch(0.24 0.12 141));
|
|
20
|
-
--oui-green-2: light-dark(oklch(0.88 0.05 148), oklch(0.36 0.14 142));
|
|
21
|
-
--oui-green-3: light-dark(oklch(0.82 0.07 147), oklch(0.48 0.16 143));
|
|
22
|
-
--oui-green-4: light-dark(oklch(0.75 0.09 146), oklch(0.58 0.14 144));
|
|
23
|
-
--oui-green-5: light-dark(oklch(0.67 0.11 145), oklch(0.67 0.13 145));
|
|
24
|
-
--oui-green-6: light-dark(oklch(0.58 0.14 144), oklch(0.75 0.11 146));
|
|
25
|
-
--oui-green-7: light-dark(oklch(0.48 0.16 143), oklch(0.82 0.07 147));
|
|
26
|
-
--oui-green-8: light-dark(oklch(0.36 0.14 142), oklch(0.88 0.05 148));
|
|
27
|
-
--oui-green-9: light-dark(oklch(0.24 0.12 141), oklch(0.94 0.03 149));
|
|
28
|
-
--oui-green-10: light-dark(oklch(0.18 0.1 140), oklch(0.97 0.01 150));
|
|
29
|
-
|
|
30
|
-
--oui-orange-0: light-dark(oklch(0.975 0.02 60), oklch(0.1875 0.1 50));
|
|
31
|
-
--oui-orange-1: light-dark(oklch(0.94 0.03 59), oklch(0.255 0.125 51));
|
|
32
|
-
--oui-orange-2: light-dark(oklch(0.88 0.05 58), oklch(0.385 0.15 52));
|
|
33
|
-
--oui-orange-3: light-dark(oklch(0.82 0.08 57), oklch(0.515 0.18 53));
|
|
34
|
-
--oui-orange-4: light-dark(oklch(0.75 0.11 56), oklch(0.635 0.2 54));
|
|
35
|
-
--oui-orange-5: light-dark(oklch(0.67 0.13 55), oklch(0.735 0.18 55));
|
|
36
|
-
--oui-orange-6: light-dark(oklch(0.57 0.16 54), oklch(0.795 0.14 56));
|
|
37
|
-
--oui-orange-7: light-dark(oklch(0.46 0.15 53), oklch(0.855 0.12 57));
|
|
38
|
-
--oui-orange-8: light-dark(oklch(0.34 0.12 53), oklch(0.905 0.08 58));
|
|
39
|
-
--oui-orange-9: light-dark(oklch(0.24 0.11 51), oklch(0.945 0.04 59));
|
|
40
|
-
--oui-orange-10: light-dark(oklch(0.18 0.1 50), oklch(0.975 0.02 60));
|
|
41
|
-
|
|
42
|
-
--oui-purple-0: light-dark(oklch(0.97 0.01 300), oklch(0.18 0.1 290));
|
|
43
|
-
--oui-purple-1: light-dark(oklch(0.94 0.03 299), oklch(0.24 0.12 291));
|
|
44
|
-
--oui-purple-2: light-dark(oklch(0.88 0.05 298), oklch(0.36 0.13 292));
|
|
45
|
-
--oui-purple-3: light-dark(oklch(0.82 0.07 297), oklch(0.48 0.15 293));
|
|
46
|
-
--oui-purple-4: light-dark(oklch(0.75 0.09 296), oklch(0.58 0.13 294));
|
|
47
|
-
--oui-purple-5: light-dark(oklch(0.67 0.11 295), oklch(0.67 0.11 295));
|
|
48
|
-
--oui-purple-6: light-dark(oklch(0.58 0.13 294), oklch(0.75 0.09 296));
|
|
49
|
-
--oui-purple-7: light-dark(oklch(0.48 0.15 293), oklch(0.82 0.07 297));
|
|
50
|
-
--oui-purple-8: light-dark(oklch(0.36 0.13 292), oklch(0.88 0.05 298));
|
|
51
|
-
--oui-purple-9: light-dark(oklch(0.24 0.12 291), oklch(0.94 0.03 299));
|
|
52
|
-
--oui-purple-10: light-dark(oklch(0.18 0.1 290), oklch(0.97 0.01 300));
|
|
53
|
-
|
|
54
|
-
--oui-red-0: light-dark(oklch(0.97 0.01 15), oklch(0.18 0.1 25));
|
|
55
|
-
--oui-red-1: light-dark(oklch(0.94 0.03 16), oklch(0.24 0.125 24));
|
|
56
|
-
--oui-red-2: light-dark(oklch(0.88 0.05 17), oklch(0.36 0.15 23));
|
|
57
|
-
--oui-red-3: light-dark(oklch(0.82 0.07 18), oklch(0.48 0.18 22));
|
|
58
|
-
--oui-red-4: light-dark(oklch(0.75 0.09 19), oklch(0.58 0.14 21));
|
|
59
|
-
--oui-red-5: light-dark(oklch(0.67 0.11 20), oklch(0.67 0.11 20));
|
|
60
|
-
--oui-red-6: light-dark(oklch(0.58 0.14 21), oklch(0.75 0.09 19));
|
|
61
|
-
--oui-red-7: light-dark(oklch(0.48 0.18 22), oklch(0.82 0.07 18));
|
|
62
|
-
--oui-red-8: light-dark(oklch(0.36 0.15 23), oklch(0.88 0.05 17));
|
|
63
|
-
--oui-red-9: light-dark(oklch(0.24 0.125 24), oklch(0.94 0.03 16));
|
|
64
|
-
--oui-red-10: light-dark(oklch(0.18 0.1 25), oklch(0.97 0.01 15));
|
|
65
|
-
|
|
66
|
-
--oui-yellow-0: light-dark(oklch(0.975 0.02 100), oklch(0.1875 0.1 90));
|
|
67
|
-
--oui-yellow-1: light-dark(oklch(0.945 0.04 99), oklch(0.255 0.125 91));
|
|
68
|
-
--oui-yellow-2: light-dark(oklch(0.905 0.08 98), oklch(0.385 0.15 92));
|
|
69
|
-
--oui-yellow-3: light-dark(oklch(0.855 0.12 97), oklch(0.515 0.18 93));
|
|
70
|
-
--oui-yellow-4: light-dark(oklch(0.795 0.14 96), oklch(0.635 0.2 94));
|
|
71
|
-
--oui-yellow-5: light-dark(oklch(0.735 0.18 95), oklch(0.735 0.18 95));
|
|
72
|
-
--oui-yellow-6: light-dark(oklch(0.635 0.2 94), oklch(0.795 0.14 96));
|
|
73
|
-
--oui-yellow-7: light-dark(oklch(0.515 0.18 93), oklch(0.855 0.12 97));
|
|
74
|
-
--oui-yellow-8: light-dark(oklch(0.385 0.15 92), oklch(0.905 0.08 98));
|
|
75
|
-
--oui-yellow-9: light-dark(oklch(0.255 0.125 91), oklch(0.945 0.04 99));
|
|
76
|
-
--oui-yellow-10: light-dark(oklch(0.1875 0.1 90), oklch(0.975 0.02 100));
|
|
77
|
-
|
|
78
|
-
--oui-grey-0: light-dark(oklch(0.97 0 0), oklch(0.18 0 0));
|
|
79
|
-
--oui-grey-1: light-dark(oklch(0.94 0 0), oklch(0.24 0 0));
|
|
80
|
-
--oui-grey-2: light-dark(oklch(0.88 0 0), oklch(0.36 0 0));
|
|
81
|
-
--oui-grey-3: light-dark(oklch(0.82 0 0), oklch(0.48 0 0));
|
|
82
|
-
--oui-grey-4: light-dark(oklch(0.75 0 0), oklch(0.58 0 0));
|
|
83
|
-
--oui-grey-5: light-dark(oklch(0.67 0 0), oklch(0.67 0 0));
|
|
84
|
-
--oui-grey-6: light-dark(oklch(0.58 0 0), oklch(0.75 0 0));
|
|
85
|
-
--oui-grey-7: light-dark(oklch(0.48 0 0), oklch(0.82 0 0));
|
|
86
|
-
--oui-grey-8: light-dark(oklch(0.36 0 0), oklch(0.88 0 0));
|
|
87
|
-
--oui-grey-9: light-dark(oklch(0.24 0 0), oklch(0.94 0 0));
|
|
88
|
-
--oui-grey-10: light-dark(oklch(0.18 0 0), oklch(0.97 0 0));
|
|
89
|
-
|
|
90
|
-
--oui-slate-0: light-dark(oklch(0.97 0.005 255), oklch(0.18 0.005 255));
|
|
91
|
-
--oui-slate-1: light-dark(oklch(0.94 0.005 255), oklch(0.24 0.005 255));
|
|
92
|
-
--oui-slate-2: light-dark(oklch(0.88 0.01 255), oklch(0.36 0.01 255));
|
|
93
|
-
--oui-slate-3: light-dark(oklch(0.82 0.01 255), oklch(0.48 0.01 255));
|
|
94
|
-
--oui-slate-4: light-dark(oklch(0.75 0.02 255), oklch(0.58 0.02 255));
|
|
95
|
-
--oui-slate-5: light-dark(oklch(0.67 0.02 255), oklch(0.67 0.02 255));
|
|
96
|
-
--oui-slate-6: light-dark(oklch(0.58 0.02 255), oklch(0.75 0.02 255));
|
|
97
|
-
--oui-slate-7: light-dark(oklch(0.48 0.01 255), oklch(0.82 0.01 255));
|
|
98
|
-
--oui-slate-8: light-dark(oklch(0.36 0.01 255), oklch(0.88 0.01 255));
|
|
99
|
-
--oui-slate-9: light-dark(oklch(0.24 0.005 255), oklch(0.94 0.005 255));
|
|
100
|
-
--oui-slate-10: light-dark(oklch(0.18 0.005 255), oklch(0.97 0.005 255));
|
|
101
|
-
|
|
102
|
-
--oui-stone-0: light-dark(oklch(0.97 0.005 95), oklch(0.18 0.005 95));
|
|
103
|
-
--oui-stone-1: light-dark(oklch(0.94 0.005 95), oklch(0.24 0.005 95));
|
|
104
|
-
--oui-stone-2: light-dark(oklch(0.9 0.01 95), oklch(0.36 0.01 95));
|
|
105
|
-
--oui-stone-3: light-dark(oklch(0.82 0.01 95), oklch(0.48 0.01 95));
|
|
106
|
-
--oui-stone-4: light-dark(oklch(0.75 0.02 95), oklch(0.58 0.02 95));
|
|
107
|
-
--oui-stone-5: light-dark(oklch(0.67 0.02 95), oklch(0.67 0.02 95));
|
|
108
|
-
--oui-stone-6: light-dark(oklch(0.58 0.02 95), oklch(0.75 0.02 95));
|
|
109
|
-
--oui-stone-7: light-dark(oklch(0.48 0.01 95), oklch(0.82 0.01 95));
|
|
110
|
-
--oui-stone-8: light-dark(oklch(0.36 0.01 95), oklch(0.9 0.01 95));
|
|
111
|
-
--oui-stone-9: light-dark(oklch(0.24 0.005 95), oklch(0.94 0.005 95));
|
|
112
|
-
--oui-stone-10: light-dark(oklch(0.18 0.005 95), oklch(0.97 0.005 95));
|
|
113
|
-
}
|