@oscarpalmer/oui 0.6.0 → 0.7.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.
@@ -1,476 +1,102 @@
1
1
  :root {
2
- --oui-absolute: white;
3
- }
4
- :root {
5
- --oui-blue-0: #f4f8fd;
6
- --oui-blue-1: color-mix(
7
- in srgb,
8
- var(--oui-blue-0),
9
- var(--oui-blue-6) 5%
10
- );
11
- --oui-blue-2: color-mix(
12
- in srgb,
13
- var(--oui-blue-0),
14
- var(--oui-blue-6) 15%
15
- );
16
- --oui-blue-3: color-mix(
17
- in srgb,
18
- var(--oui-blue-0),
19
- var(--oui-blue-6) 30%
20
- );
21
- --oui-blue-4: color-mix(
22
- in srgb,
23
- var(--oui-blue-0),
24
- var(--oui-blue-6) 50%
25
- );
26
- --oui-blue-5: color-mix(
27
- in srgb,
28
- var(--oui-blue-0),
29
- var(--oui-blue-6) 75%
30
- );
31
- --oui-blue-6: #48d;
32
- --oui-blue-7: color-mix(
33
- in srgb,
34
- var(--oui-blue-10),
35
- var(--oui-blue-6) 75%
36
- );
37
- --oui-blue-8: color-mix(
38
- in srgb,
39
- var(--oui-blue-10),
40
- var(--oui-blue-6) 50%
41
- );
42
- --oui-blue-9: color-mix(
43
- in srgb,
44
- var(--oui-blue-10),
45
- var(--oui-blue-6) 25%
46
- );
47
- --oui-blue-10: #123;
48
- }
49
- @media (prefers-color-scheme: dark) {
50
- :root {
51
- --oui-blue-0: #012;
52
- --oui-blue-6: #15a;
53
- --oui-blue-10: #d1d5da;
54
- }
55
- }
56
- :root {
57
- --oui-green-0: #f4fbf5;
58
- --oui-green-1: color-mix(
59
- in srgb,
60
- var(--oui-green-0),
61
- var(--oui-green-6) 5%
62
- );
63
- --oui-green-2: color-mix(
64
- in srgb,
65
- var(--oui-green-0),
66
- var(--oui-green-6) 15%
67
- );
68
- --oui-green-3: color-mix(
69
- in srgb,
70
- var(--oui-green-0),
71
- var(--oui-green-6) 30%
72
- );
73
- --oui-green-4: color-mix(
74
- in srgb,
75
- var(--oui-green-0),
76
- var(--oui-green-6) 50%
77
- );
78
- --oui-green-5: color-mix(
79
- in srgb,
80
- var(--oui-green-0),
81
- var(--oui-green-6) 75%
82
- );
83
- --oui-green-6: #4b5;
84
- --oui-green-7: color-mix(
85
- in srgb,
86
- var(--oui-green-10),
87
- var(--oui-green-6) 75%
88
- );
89
- --oui-green-8: color-mix(
90
- in srgb,
91
- var(--oui-green-10),
92
- var(--oui-green-6) 50%
93
- );
94
- --oui-green-9: color-mix(
95
- in srgb,
96
- var(--oui-green-10),
97
- var(--oui-green-6) 25%
98
- );
99
- --oui-green-10: #231;
100
- }
101
- @media (prefers-color-scheme: dark) {
102
- :root {
103
- --oui-green-0: #0a1a0a;
104
- --oui-green-6: #182;
105
- --oui-green-10: #d1d8d2;
106
- }
107
- }
108
- :root {
109
- --oui-grey-0: #f8f8f8;
110
- --oui-grey-1: color-mix(
111
- in srgb,
112
- var(--oui-grey-0),
113
- var(--oui-grey-6) 5%
114
- );
115
- --oui-grey-2: color-mix(
116
- in srgb,
117
- var(--oui-grey-0),
118
- var(--oui-grey-6) 15%
119
- );
120
- --oui-grey-3: color-mix(
121
- in srgb,
122
- var(--oui-grey-0),
123
- var(--oui-grey-6) 30%
124
- );
125
- --oui-grey-4: color-mix(
126
- in srgb,
127
- var(--oui-grey-0),
128
- var(--oui-grey-6) 50%
129
- );
130
- --oui-grey-5: color-mix(
131
- in srgb,
132
- var(--oui-grey-0),
133
- var(--oui-grey-6) 75%
134
- );
135
- --oui-grey-6: #888;
136
- --oui-grey-7: color-mix(
137
- in srgb,
138
- var(--oui-grey-10),
139
- var(--oui-grey-6) 75%
140
- );
141
- --oui-grey-8: color-mix(
142
- in srgb,
143
- var(--oui-grey-10),
144
- var(--oui-grey-6) 50%
145
- );
146
- --oui-grey-9: color-mix(
147
- in srgb,
148
- var(--oui-grey-10),
149
- var(--oui-grey-6) 25%
150
- );
151
- --oui-grey-10: #222;
152
- }
153
- @media (prefers-color-scheme: dark) {
154
- :root {
155
- --oui-grey-0: #111;
156
- --oui-grey-6: #555;
157
- --oui-grey-10: #d8d8d8;
158
- }
159
- }
160
- :root {
161
- --oui-orange-0: #fef7f2;
162
- --oui-orange-1: color-mix(
163
- in srgb,
164
- var(--oui-orange-0),
165
- var(--oui-orange-6) 5%
166
- );
167
- --oui-orange-2: color-mix(
168
- in srgb,
169
- var(--oui-orange-0),
170
- var(--oui-orange-6) 15%
171
- );
172
- --oui-orange-3: color-mix(
173
- in srgb,
174
- var(--oui-orange-0),
175
- var(--oui-orange-6) 30%
176
- );
177
- --oui-orange-4: color-mix(
178
- in srgb,
179
- var(--oui-orange-0),
180
- var(--oui-orange-6) 50%
181
- );
182
- --oui-orange-5: color-mix(
183
- in srgb,
184
- var(--oui-orange-0),
185
- var(--oui-orange-6) 75%
186
- );
187
- --oui-orange-6: #e72;
188
- --oui-orange-7: color-mix(
189
- in srgb,
190
- var(--oui-orange-10),
191
- var(--oui-orange-6) 75%
192
- );
193
- --oui-orange-8: color-mix(
194
- in srgb,
195
- var(--oui-orange-10),
196
- var(--oui-orange-6) 50%
197
- );
198
- --oui-orange-9: color-mix(
199
- in srgb,
200
- var(--oui-orange-10),
201
- var(--oui-orange-6) 25%
202
- );
203
- --oui-orange-10: #420;
204
- }
205
- @media (prefers-color-scheme: dark) {
206
- :root {
207
- --oui-orange-0: #2a1500;
208
- --oui-orange-6: #b40;
209
- --oui-orange-10: #dbd4d0;
210
- }
211
- }
212
- :root {
213
- --oui-purple-0: #fcf7fb;
214
- --oui-purple-1: color-mix(
215
- in srgb,
216
- var(--oui-purple-0),
217
- var(--oui-purple-6) 5%
218
- );
219
- --oui-purple-2: color-mix(
220
- in srgb,
221
- var(--oui-purple-0),
222
- var(--oui-purple-6) 15%
223
- );
224
- --oui-purple-3: color-mix(
225
- in srgb,
226
- var(--oui-purple-0),
227
- var(--oui-purple-6) 30%
228
- );
229
- --oui-purple-4: color-mix(
230
- in srgb,
231
- var(--oui-purple-0),
232
- var(--oui-purple-6) 50%
233
- );
234
- --oui-purple-5: color-mix(
235
- in srgb,
236
- var(--oui-purple-0),
237
- var(--oui-purple-6) 75%
238
- );
239
- --oui-purple-6: #c7b;
240
- --oui-purple-7: color-mix(
241
- in srgb,
242
- var(--oui-purple-10),
243
- var(--oui-purple-6) 75%
244
- );
245
- --oui-purple-8: color-mix(
246
- in srgb,
247
- var(--oui-purple-10),
248
- var(--oui-purple-6) 50%
249
- );
250
- --oui-purple-9: color-mix(
251
- in srgb,
252
- var(--oui-purple-10),
253
- var(--oui-purple-6) 25%
254
- );
255
- --oui-purple-10: #313;
256
- }
257
- @media (prefers-color-scheme: dark) {
258
- :root {
259
- --oui-purple-0: #1a0a1a;
260
- --oui-purple-6: #94a;
261
- --oui-purple-10: #d9d4da;
262
- }
263
- }
264
- :root {
265
- --oui-slate-0: #f6f7f8;
266
- --oui-slate-1: color-mix(
267
- in srgb,
268
- var(--oui-slate-0),
269
- var(--oui-slate-6) 5%
270
- );
271
- --oui-slate-2: color-mix(
272
- in srgb,
273
- var(--oui-slate-0),
274
- var(--oui-slate-6) 15%
275
- );
276
- --oui-slate-3: color-mix(
277
- in srgb,
278
- var(--oui-slate-0),
279
- var(--oui-slate-6) 30%
280
- );
281
- --oui-slate-4: color-mix(
282
- in srgb,
283
- var(--oui-slate-0),
284
- var(--oui-slate-6) 50%
285
- );
286
- --oui-slate-5: color-mix(
287
- in srgb,
288
- var(--oui-slate-0),
289
- var(--oui-slate-6) 75%
290
- );
291
- --oui-slate-6: #708090;
292
- --oui-slate-7: color-mix(
293
- in srgb,
294
- var(--oui-slate-10),
295
- var(--oui-slate-6) 75%
296
- );
297
- --oui-slate-8: color-mix(
298
- in srgb,
299
- var(--oui-slate-10),
300
- var(--oui-slate-6) 50%
301
- );
302
- --oui-slate-9: color-mix(
303
- in srgb,
304
- var(--oui-slate-10),
305
- var(--oui-slate-6) 25%
306
- );
307
- --oui-slate-10: #242f2f;
308
- }
309
- @media (prefers-color-scheme: dark) {
310
- :root {
311
- --oui-slate-0: #011;
312
- --oui-slate-6: #405060;
313
- --oui-slate-10: #d6d7d8;
314
- }
315
- }
316
- :root {
317
- --oui-stone-0: #f8f8f6;
318
- --oui-stone-1: color-mix(
319
- in srgb,
320
- var(--oui-stone-0),
321
- var(--oui-stone-6) 5%
322
- );
323
- --oui-stone-2: color-mix(
324
- in srgb,
325
- var(--oui-stone-0),
326
- var(--oui-stone-6) 15%
327
- );
328
- --oui-stone-3: color-mix(
329
- in srgb,
330
- var(--oui-stone-0),
331
- var(--oui-stone-6) 30%
332
- );
333
- --oui-stone-4: color-mix(
334
- in srgb,
335
- var(--oui-stone-0),
336
- var(--oui-stone-6) 50%
337
- );
338
- --oui-stone-5: color-mix(
339
- in srgb,
340
- var(--oui-stone-0),
341
- var(--oui-stone-6) 75%
342
- );
343
- --oui-stone-6: #928e85;
344
- --oui-stone-7: color-mix(
345
- in srgb,
346
- var(--oui-stone-10),
347
- var(--oui-stone-6) 75%
348
- );
349
- --oui-stone-8: color-mix(
350
- in srgb,
351
- var(--oui-stone-10),
352
- var(--oui-stone-6) 50%
353
- );
354
- --oui-stone-9: color-mix(
355
- in srgb,
356
- var(--oui-stone-10),
357
- var(--oui-stone-6) 25%
358
- );
359
- --oui-stone-10: #2f2f24;
360
- }
361
- @media (prefers-color-scheme: dark) {
362
- :root {
363
- --oui-stone-0: #110;
364
- --oui-stone-6: #625e55;
365
- --oui-stone-10: #d8d8d6;
366
- }
367
- }
368
- :root {
369
- --oui-red-0: #fdf4f4;
370
- --oui-red-1: color-mix(
371
- in srgb,
372
- var(--oui-red-0),
373
- var(--oui-red-6) 5%
374
- );
375
- --oui-red-2: color-mix(
376
- in srgb,
377
- var(--oui-red-0),
378
- var(--oui-red-6) 15%
379
- );
380
- --oui-red-3: color-mix(
381
- in srgb,
382
- var(--oui-red-0),
383
- var(--oui-red-6) 30%
384
- );
385
- --oui-red-4: color-mix(
386
- in srgb,
387
- var(--oui-red-0),
388
- var(--oui-red-6) 50%
389
- );
390
- --oui-red-5: color-mix(
391
- in srgb,
392
- var(--oui-red-0),
393
- var(--oui-red-6) 75%
394
- );
395
- --oui-red-6: #d44;
396
- --oui-red-7: color-mix(
397
- in srgb,
398
- var(--oui-red-10),
399
- var(--oui-red-6) 75%
400
- );
401
- --oui-red-8: color-mix(
402
- in srgb,
403
- var(--oui-red-10),
404
- var(--oui-red-6) 50%
405
- );
406
- --oui-red-9: color-mix(
407
- in srgb,
408
- var(--oui-red-10),
409
- var(--oui-red-6) 25%
410
- );
411
- --oui-red-10: #422;
412
- }
413
- @media (prefers-color-scheme: dark) {
414
- :root {
415
- --oui-red-0: #200;
416
- --oui-red-6: #a11;
417
- --oui-red-10: #dad1d1;
418
- }
419
- }
420
- :root {
421
- --oui-yellow-0: #fefbf0;
422
- --oui-yellow-1: color-mix(
423
- in srgb,
424
- var(--oui-yellow-0),
425
- var(--oui-yellow-6) 5%
426
- );
427
- --oui-yellow-2: color-mix(
428
- in srgb,
429
- var(--oui-yellow-0),
430
- var(--oui-yellow-6) 15%
431
- );
432
- --oui-yellow-3: color-mix(
433
- in srgb,
434
- var(--oui-yellow-0),
435
- var(--oui-yellow-6) 30%
436
- );
437
- --oui-yellow-4: color-mix(
438
- in srgb,
439
- var(--oui-yellow-0),
440
- var(--oui-yellow-6) 50%
441
- );
442
- --oui-yellow-5: color-mix(
443
- in srgb,
444
- var(--oui-yellow-0),
445
- var(--oui-yellow-6) 75%
446
- );
447
- --oui-yellow-6: #eb0;
448
- --oui-yellow-7: color-mix(
449
- in srgb,
450
- var(--oui-yellow-10),
451
- var(--oui-yellow-6) 75%
452
- );
453
- --oui-yellow-8: color-mix(
454
- in srgb,
455
- var(--oui-yellow-10),
456
- var(--oui-yellow-6) 50%
457
- );
458
- --oui-yellow-9: color-mix(
459
- in srgb,
460
- var(--oui-yellow-10),
461
- var(--oui-yellow-6) 25%
462
- );
463
- --oui-yellow-10: #320;
464
- }
465
- @media (prefers-color-scheme: dark) {
466
- :root {
467
- --oui-yellow-0: #281f00;
468
- --oui-yellow-6: #b80;
469
- --oui-yellow-10: #dbd8d0;
470
- }
471
- }
472
- @media (prefers-color-scheme: dark) {
473
- :root {
474
- --oui-absolute: black;
475
- }
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));
476
102
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "devDependencies": {
8
8
  "@biomejs/biome": "^1.9",
9
9
  "sass": "^1.83",
10
- "stylelint": "^16.12"
10
+ "stylelint": "^16.14"
11
11
  },
12
12
  "exports": {
13
13
  "./css/a11y": "./dist/css/a11y.css",
@@ -36,5 +36,5 @@
36
36
  "watch": "npx sass ./src/css:./dist/css --no-source-map --watch"
37
37
  },
38
38
  "type": "module",
39
- "version": "0.6.0"
39
+ "version": "0.7.0"
40
40
  }
@@ -1,19 +1,113 @@
1
1
  @use './mixins' as mixins;
2
2
 
3
3
  :root {
4
- --oui-absolute: white;
5
-
6
- @include mixins.colour('blue', '#f4f8fd', '#48d', '#123', '#012', '#15a', '#d1d5da');
7
- @include mixins.colour('green', '#f4fbf5', '#4b5', '#231', '#0a1a0a', '#182', '#d1d8d2');
8
- @include mixins.colour('grey', '#f8f8f8', '#888', '#222', '#111', '#555', '#d8d8d8');
9
- @include mixins.colour('orange', '#fef7f2', '#e72', '#420', '#2a1500', '#b40', '#dbd4d0');
10
- @include mixins.colour('purple', '#fcf7fb', '#c7b', '#313', '#1a0a1a', '#94a', '#d9d4da');
11
- @include mixins.colour('slate', '#f6f7f8', '#708090', '#242f2f', '#011', '#405060', '#d6d7d8');
12
- @include mixins.colour('stone', '#f8f8f6', '#928e85', '#2f2f24', '#110', '#625e55', '#d8d8d6');
13
- @include mixins.colour('red', '#fdf4f4', '#d44', '#422', '#200', '#a11', '#dad1d1');
14
- @include mixins.colour('yellow', '#fefbf0', '#eb0', '#320', '#281f00', '#b80', '#dbd8d0');
15
-
16
- @media (prefers-color-scheme: dark) {
17
- --oui-absolute: black;
18
- }
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));
19
113
  }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- class SwitchComponent extends HTMLElement {
4
- }
5
- customElements.define("oui-switch", SwitchComponent);
6
- exports.SwitchComponent = SwitchComponent;
@@ -1,6 +0,0 @@
1
- class SwitchComponent extends HTMLElement {
2
- }
3
- customElements.define("oui-switch", SwitchComponent);
4
- export {
5
- SwitchComponent
6
- };