@oscarpalmer/oui 0.18.0 → 0.19.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.
Files changed (44) hide show
  1. package/dist/css/badge.css +10 -10
  2. package/dist/css/button.css +9 -9
  3. package/dist/css/color.css +99 -99
  4. package/dist/css/content.css +1 -1
  5. package/dist/css/flex.css +39 -39
  6. package/dist/css/form.css +29 -56
  7. package/dist/css/message.css +6 -6
  8. package/dist/css/reset.css +3 -2
  9. package/dist/css/table.css +4 -4
  10. package/dist/css/tooltip.css +18 -1
  11. package/dist/js/attributable.full.js +29 -41
  12. package/dist/js/floatable.full.js +322 -337
  13. package/dist/js/focus-trap/embedded.full.js +252 -195
  14. package/dist/js/focus-trap/standalone.full.js +283 -238
  15. package/dist/js/index.js +3 -3
  16. package/dist/js/oui.full.js +1170 -1193
  17. package/dist/js/popover.full.js +568 -630
  18. package/dist/js/popover.js +1 -1
  19. package/dist/js/splitter.full.js +533 -369
  20. package/dist/js/splitter.js +2 -2
  21. package/dist/js/tooltip.full.js +488 -554
  22. package/dist/js/tooltip.js +1 -1
  23. package/package.json +19 -19
  24. package/src/css/a11y.scss +1 -1
  25. package/src/css/badge.scss +23 -19
  26. package/src/css/button.scss +9 -9
  27. package/src/css/color.scss +99 -99
  28. package/src/css/content.scss +6 -8
  29. package/src/css/flex.scss +21 -20
  30. package/src/css/form.scss +37 -60
  31. package/src/css/message.scss +8 -12
  32. package/src/css/mixins.scss +11 -12
  33. package/src/css/popover.scss +2 -2
  34. package/src/css/reset.scss +14 -14
  35. package/src/css/splitter.scss +15 -13
  36. package/src/css/table.scss +11 -11
  37. package/src/css/tooltip.scss +25 -4
  38. package/src/js/attributable.ts +3 -10
  39. package/src/js/floatable.ts +7 -25
  40. package/src/js/focus-trap/embedded.ts +6 -24
  41. package/src/js/popover.ts +3 -3
  42. package/src/js/splitter.ts +9 -39
  43. package/src/js/tooltip.ts +5 -17
  44. package/dist/css/value.css +0 -1
@@ -22,48 +22,48 @@
22
22
  border-radius: 0.25em;
23
23
  padding: 0.5em 0.75em;
24
24
  }
25
- :where(.oui-pill-small, .oui-tag-small) {
25
+ :where(.oui-pill--small, .oui-tag--small) {
26
26
  font-size: 0.875em;
27
27
  }
28
- :where(.oui-pill-tiny, .oui-tag-tiny) {
28
+ :where(.oui-pill--tiny, .oui-tag--tiny) {
29
29
  color: color-mix(in oklab, var(--oui-foreground, var(--oui-gray-8)), transparent 12.5%);
30
30
  font-size: 0.75em;
31
31
  }
32
- :where(.oui-pill-tiny) {
32
+ :where(.oui-pill--tiny) {
33
33
  padding: 0.25em 0.75em;
34
34
  }
35
- :where(.oui-tag-tiny) {
35
+ :where(.oui-tag--tiny) {
36
36
  padding: 0.25em 0.5em;
37
37
  }
38
38
  .oui {
39
39
  /* Colors*/
40
40
  }
41
- :where(.oui-pill-blue, .oui-tag-blue) {
41
+ :where(.oui-pill--blue, .oui-tag--blue) {
42
42
  --oui-background: var(--oui-blue-0);
43
43
  --oui-foreground: var(--oui-blue-8);
44
44
  --oui-shadow: var(--oui-blue-6);
45
45
  }
46
- :where(.oui-pill-green, .oui-tag-green) {
46
+ :where(.oui-pill--green, .oui-tag--green) {
47
47
  --oui-background: var(--oui-green-0);
48
48
  --oui-foreground: var(--oui-green-8);
49
49
  --oui-shadow: var(--oui-green-6);
50
50
  }
51
- :where(.oui-pill-orange, .oui-tag-orange) {
51
+ :where(.oui-pill--orange, .oui-tag--orange) {
52
52
  --oui-background: var(--oui-orange-0);
53
53
  --oui-foreground: var(--oui-orange-8);
54
54
  --oui-shadow: var(--oui-orange-6);
55
55
  }
56
- :where(.oui-pill-purple, .oui-tag-purple) {
56
+ :where(.oui-pill--purple, .oui-tag--purple) {
57
57
  --oui-background: var(--oui-purple-0);
58
58
  --oui-foreground: var(--oui-purple-8);
59
59
  --oui-shadow: var(--oui-purple-6);
60
60
  }
61
- :where(.oui-pill-red, .oui-tag-red) {
61
+ :where(.oui-pill--red, .oui-tag--red) {
62
62
  --oui-background: var(--oui-red-0);
63
63
  --oui-foreground: var(--oui-red-8);
64
64
  --oui-shadow: var(--oui-red-6);
65
65
  }
66
- :where(.oui-pill-yellow, .oui-tag-yellow) {
66
+ :where(.oui-pill--yellow, .oui-tag--yellow) {
67
67
  --oui-background: var(--oui-yellow-0);
68
68
  --oui-foreground: var(--oui-yellow-8);
69
69
  --oui-shadow: var(--oui-yellow-6);
@@ -25,46 +25,46 @@
25
25
  line-height: 1.25;
26
26
  transition: 0.125s ease-in-out;
27
27
  }
28
- :where(.oui-button-blue) {
28
+ :where(.oui-button--blue) {
29
29
  --oui-background-value: var(--oui-blue-2);
30
30
  --oui-foreground-value: var(--oui-blue-8);
31
31
  --oui-outline-value: var(--oui-blue-6);
32
32
  }
33
- :where(.oui-button-green) {
33
+ :where(.oui-button--green) {
34
34
  --oui-background-value: var(--oui-green-2);
35
35
  --oui-foreground-value: var(--oui-green-8);
36
36
  --oui-outline-value: var(--oui-green-6);
37
37
  }
38
- :where(.oui-button-orange) {
38
+ :where(.oui-button--orange) {
39
39
  --oui-background-value: var(--oui-orange-2);
40
40
  --oui-foreground-value: var(--oui-orange-8);
41
41
  --oui-outline-value: var(--oui-orange-6);
42
42
  }
43
- :where(.oui-button-purple) {
43
+ :where(.oui-button--purple) {
44
44
  --oui-background-value: var(--oui-purple-2);
45
45
  --oui-foreground-value: var(--oui-purple-8);
46
46
  --oui-outline-value: var(--oui-purple-6);
47
47
  }
48
- :where(.oui-button-red) {
48
+ :where(.oui-button--red) {
49
49
  --oui-background-value: var(--oui-red-2);
50
50
  --oui-foreground-value: var(--oui-red-8);
51
51
  --oui-outline-value: var(--oui-red-6);
52
52
  }
53
- :where(.oui-button-yellow) {
53
+ :where(.oui-button--yellow) {
54
54
  --oui-background-value: var(--oui-yellow-2);
55
55
  --oui-foreground-value: var(--oui-yellow-8);
56
56
  --oui-outline-value: var(--oui-yellow-6);
57
57
  }
58
- :where(.oui-button-rounded) {
58
+ :where(.oui-button--rounded) {
59
59
  padding: 0.5em 1em;
60
60
  flex-wrap: nowrap;
61
61
  border-radius: 5em;
62
62
  white-space: nowrap;
63
63
  }
64
- :where(.oui-button-small) {
64
+ :where(.oui-button--small) {
65
65
  font-size: 0.875em;
66
66
  }
67
- :where(.oui-button-tiny) {
67
+ :where(.oui-button--tiny) {
68
68
  --oui-foreground-percentage: 12.5%;
69
69
  font-size: 0.75em;
70
70
  }
@@ -2,105 +2,105 @@
2
2
 
3
3
  :root {
4
4
  --oui-absolute: light-dark(white, black);
5
- --oui-blue-0: light-dark(oklch(0.99 0.01 260), oklch(0.2 0.08 250));
6
- --oui-blue-1: light-dark(oklch(0.98 0.02 259), oklch(0.25 0.09 251));
7
- --oui-blue-2: light-dark(oklch(0.95 0.03 258), oklch(0.32 0.1 252));
8
- --oui-blue-3: light-dark(oklch(0.90 0.04 257), oklch(0.40 0.09 253));
9
- --oui-blue-4: light-dark(oklch(0.80 0.06 256), oklch(0.5 0.08 254));
10
- --oui-blue-5: light-dark(oklch(0.70 0.08 255), oklch(0.6 0.07 255));
11
- --oui-blue-6: light-dark(oklch(0.60 0.1 254), oklch(0.7 0.06 256));
12
- --oui-blue-7: light-dark(oklch(0.50 0.12 253), oklch(0.8 0.05 257));
13
- --oui-blue-8: light-dark(oklch(0.42 0.11 252), oklch(0.85 0.04 258));
14
- --oui-blue-9: light-dark(oklch(0.35 0.1 251), oklch(0.9 0.03 259));
15
- --oui-blue-10: light-dark(oklch(0.3 0.09 250), oklch(0.95 0.02 260));
16
- --oui-green-0: light-dark(oklch(0.99 0.01 150), oklch(0.2 0.08 140));
17
- --oui-green-1: light-dark(oklch(0.98 0.02 149), oklch(0.25 0.09 141));
18
- --oui-green-2: light-dark(oklch(0.95 0.03 148), oklch(0.32 0.1 142));
19
- --oui-green-3: light-dark(oklch(0.90 0.04 147), oklch(0.4 0.09 143));
20
- --oui-green-4: light-dark(oklch(0.80 0.06 146), oklch(0.5 0.08 144));
21
- --oui-green-5: light-dark(oklch(0.70 0.08 145), oklch(0.6 0.07 145));
22
- --oui-green-6: light-dark(oklch(0.60 0.1 144), oklch(0.7 0.06 146));
23
- --oui-green-7: light-dark(oklch(0.50 0.12 143), oklch(0.8 0.05 147));
24
- --oui-green-8: light-dark(oklch(0.42 0.11 142), oklch(0.85 0.04 148));
25
- --oui-green-9: light-dark(oklch(0.35 0.1 141), oklch(0.9 0.03 149));
26
- --oui-green-10: light-dark(oklch(0.3 0.09 140), oklch(0.95 0.02 150));
27
- --oui-orange-0: light-dark(oklch(0.99 0.02 60), oklch(0.2 0.08 50));
28
- --oui-orange-1: light-dark(oklch(0.985 0.035 59), oklch(0.25 0.09 51));
29
- --oui-orange-2: light-dark(oklch(0.97 0.05 58), oklch(0.32 0.1 52));
30
- --oui-orange-3: light-dark(oklch(0.93 0.07 57), oklch(0.4 0.09 53));
31
- --oui-orange-4: light-dark(oklch(0.87 0.1 56), oklch(0.5 0.08 54));
32
- --oui-orange-5: light-dark(oklch(0.76 0.11 55), oklch(0.6 0.07 55));
33
- --oui-orange-6: light-dark(oklch(0.65 0.12 54), oklch(0.7 0.06 56));
34
- --oui-orange-7: light-dark(oklch(0.55 0.14 53), oklch(0.8 0.05 57));
35
- --oui-orange-8: light-dark(oklch(0.45 0.12 52), oklch(0.85 0.04 58));
36
- --oui-orange-9: light-dark(oklch(0.375 0.11 51), oklch(0.9 0.03 59));
37
- --oui-orange-10: light-dark(oklch(0.3 0.09 50), oklch(0.95 0.02 60));
38
- --oui-purple-0: light-dark(oklch(0.99 0.02 300), oklch(0.2 0.08 290));
39
- --oui-purple-1: light-dark(oklch(0.98 0.035 299), oklch(0.25 0.09 291));
40
- --oui-purple-2: light-dark(oklch(0.95 0.05 298), oklch(0.32 0.1 292));
41
- --oui-purple-3: light-dark(oklch(0.90 0.07 297), oklch(0.4 0.09 293));
42
- --oui-purple-4: light-dark(oklch(0.80 0.1 296), oklch(0.5 0.08 294));
43
- --oui-purple-5: light-dark(oklch(0.70 0.11 295), oklch(0.6 0.07 295));
44
- --oui-purple-6: light-dark(oklch(0.60 0.12 294), oklch(0.7 0.06 296));
45
- --oui-purple-7: light-dark(oklch(0.50 0.14 293), oklch(0.8 0.05 297));
46
- --oui-purple-8: light-dark(oklch(0.42 0.12 292), oklch(0.85 0.04 298));
47
- --oui-purple-9: light-dark(oklch(0.35 0.11 291), oklch(0.9 0.03 299));
48
- --oui-purple-10: light-dark(oklch(0.3 0.09 290), oklch(0.95 0.02 300));
49
- --oui-red-0: light-dark(oklch(0.99 0.024 25), oklch(0.2 0.08 25));
50
- --oui-red-1: light-dark(oklch(0.985 0.032 24), oklch(0.25 0.09 24));
51
- --oui-red-2: light-dark(oklch(0.97 0.05 23), oklch(0.32 0.1 23));
52
- --oui-red-3: light-dark(oklch(0.93 0.07 22), oklch(0.4 0.09 22));
53
- --oui-red-4: light-dark(oklch(0.87 0.1 21), oklch(0.5 0.08 21));
54
- --oui-red-5: light-dark(oklch(0.76 0.11 20), oklch(0.6 0.07 20));
55
- --oui-red-6: light-dark(oklch(0.65 0.12 19), oklch(0.7 0.06 19));
56
- --oui-red-7: light-dark(oklch(0.55 0.14 18), oklch(0.8 0.05 18));
57
- --oui-red-8: light-dark(oklch(0.45 0.12 17), oklch(0.85 0.04 17));
58
- --oui-red-9: light-dark(oklch(0.375 0.11 16), oklch(0.9 0.03 16));
59
- --oui-red-10: light-dark(oklch(0.3 0.09 15), oklch(0.95 0.02 15));
60
- --oui-yellow-0: light-dark(oklch(0.99 0.02 100), oklch(0.2 0.08 90));
61
- --oui-yellow-1: light-dark(oklch(0.985 0.035 99), oklch(0.25 0.09 91));
62
- --oui-yellow-2: light-dark(oklch(0.97 0.05 98), oklch(0.33 0.1 92));
63
- --oui-yellow-3: light-dark(oklch(0.93 0.07 97), oklch(0.4 0.09 93));
64
- --oui-yellow-4: light-dark(oklch(0.87 0.1 96), oklch(0.5 0.08 94));
65
- --oui-yellow-5: light-dark(oklch(.78 0.11 95), oklch(0.6 0.07 95));
66
- --oui-yellow-6: light-dark(oklch(0.65 0.12 94), oklch(0.7 0.06 96));
67
- --oui-yellow-7: light-dark(oklch(0.55 0.14 93), oklch(0.8 0.05 97));
68
- --oui-yellow-8: light-dark(oklch(0.45 0.12 92), oklch(0.85 0.04 98));
69
- --oui-yellow-9: light-dark(oklch(0.375 0.11 91), oklch(0.9 0.03 99));
70
- --oui-yellow-10: light-dark(oklch(0.3 0.09 90), oklch(0.95 0.02 100));
71
- --oui-gray-0: light-dark(oklch(0.98 0 0), oklch(0.22 0 0));
72
- --oui-gray-1: light-dark(oklch(0.98 0 0), oklch(0.26 0 0));
73
- --oui-gray-2: light-dark(oklch(0.95 0 0), oklch(0.32 0 0));
74
- --oui-gray-3: light-dark(oklch(0.90 0 0), oklch(0.4 0 0));
75
- --oui-gray-4: light-dark(oklch(0.80 0 0), oklch(0.5 0 0));
76
- --oui-gray-5: light-dark(oklch(0.70 0 0), oklch(0.6 0 0));
77
- --oui-gray-6: light-dark(oklch(0.60 0 0), oklch(0.7 0 0));
78
- --oui-gray-7: light-dark(oklch(0.50 0 0), oklch(0.8 0 0));
79
- --oui-gray-8: light-dark(oklch(0.42 0 0), oklch(0.85 0 0));
80
- --oui-gray-9: light-dark(oklch(0.35 0 0), oklch(0.9 0 0));
81
- --oui-gray-10: light-dark(oklch(0.3 0 0), oklch(0.95 0 0));
82
- --oui-slate-0: light-dark(oklch(0.99 0.0025 255), oklch(0.22 0.005 255));
83
- --oui-slate-1: light-dark(oklch(0.98 0.005 255), oklch(0.26 0.0075 255));
84
- --oui-slate-2: light-dark(oklch(0.95 0.0075 255), oklch(0.32 0.01 255));
85
- --oui-slate-3: light-dark(oklch(0.90 0.01 255), oklch(0.4 0.0125 255));
86
- --oui-slate-4: light-dark(oklch(0.80 0.015 255), oklch(0.5 0.015 255));
87
- --oui-slate-5: light-dark(oklch(0.70 0.02 255), oklch(0.6 0.02 255));
88
- --oui-slate-6: light-dark(oklch(0.60 0.015 255), oklch(0.7 0.015 255));
89
- --oui-slate-7: light-dark(oklch(0.50 0.0125 255), oklch(0.8 0.0125 255));
90
- --oui-slate-8: light-dark(oklch(0.42 0.01 255), oklch(0.85 0.01 255));
91
- --oui-slate-9: light-dark(oklch(0.35 0.0075 255), oklch(0.9 0.0075 255));
92
- --oui-slate-10: light-dark(oklch(0.3 0.005 255), oklch(0.95 0.005 255));
93
- --oui-stone-0: light-dark(oklch(0.99 0.0033 95), oklch(0.22 0.005 95));
94
- --oui-stone-1: light-dark(oklch(0.98 0.0067 95), oklch(0.26 0.0075 95));
95
- --oui-stone-2: light-dark(oklch(0.95 0.01 95), oklch(0.32 0.01 95));
96
- --oui-stone-3: light-dark(oklch(0.90 0.0125 95), oklch(0.4 0.0125 95));
97
- --oui-stone-4: light-dark(oklch(0.80 0.015 95), oklch(0.5 0.015 95));
98
- --oui-stone-5: light-dark(oklch(0.70 0.02 95), oklch(0.6 0.02 95));
99
- --oui-stone-6: light-dark(oklch(0.60 0.015 95), oklch(0.7 0.015 95));
100
- --oui-stone-7: light-dark(oklch(0.50 0.0125 95), oklch(0.8 0.0125 95));
101
- --oui-stone-8: light-dark(oklch(0.42 0.01 95), oklch(0.85 0.01 95));
102
- --oui-stone-9: light-dark(oklch(0.35 0.0075 95), oklch(0.9 0.0075 95));
103
- --oui-stone-10: light-dark(oklch(0.3 0.005 95), oklch(0.95 0.005 95));
5
+ --oui-blue-0: light-dark(oklch(99% 0.01 260deg), oklch(20% 0.08 250deg));
6
+ --oui-blue-1: light-dark(oklch(98% 0.02 259deg), oklch(25% 0.09 251deg));
7
+ --oui-blue-2: light-dark(oklch(95% 0.03 258deg), oklch(32% 0.1 252deg));
8
+ --oui-blue-3: light-dark(oklch(90% 0.04 257deg), oklch(40% 0.09 253deg));
9
+ --oui-blue-4: light-dark(oklch(80% 0.06 256deg), oklch(50% 0.08 254deg));
10
+ --oui-blue-5: light-dark(oklch(70% 0.08 255deg), oklch(60% 0.07 255deg));
11
+ --oui-blue-6: light-dark(oklch(60% 0.1 254deg), oklch(70% 0.06 256deg));
12
+ --oui-blue-7: light-dark(oklch(50% 0.12 253deg), oklch(80% 0.05 257deg));
13
+ --oui-blue-8: light-dark(oklch(42% 0.11 252deg), oklch(85% 0.04 258deg));
14
+ --oui-blue-9: light-dark(oklch(35% 0.1 251deg), oklch(90% 0.03 259deg));
15
+ --oui-blue-10: light-dark(oklch(30% 0.09 250deg), oklch(95% 0.02 260deg));
16
+ --oui-green-0: light-dark(oklch(99% 0.01 150deg), oklch(20% 0.08 140deg));
17
+ --oui-green-1: light-dark(oklch(98% 0.02 149deg), oklch(25% 0.09 141deg));
18
+ --oui-green-2: light-dark(oklch(95% 0.03 148deg), oklch(32% 0.1 142deg));
19
+ --oui-green-3: light-dark(oklch(90% 0.04 147deg), oklch(40% 0.09 143deg));
20
+ --oui-green-4: light-dark(oklch(80% 0.06 146deg), oklch(50% 0.08 144deg));
21
+ --oui-green-5: light-dark(oklch(70% 0.08 145deg), oklch(60% 0.07 145deg));
22
+ --oui-green-6: light-dark(oklch(60% 0.1 144deg), oklch(70% 0.06 146deg));
23
+ --oui-green-7: light-dark(oklch(50% 0.12 143deg), oklch(80% 0.05 147deg));
24
+ --oui-green-8: light-dark(oklch(42% 0.11 142deg), oklch(85% 0.04 148deg));
25
+ --oui-green-9: light-dark(oklch(35% 0.1 141deg), oklch(90% 0.03 149deg));
26
+ --oui-green-10: light-dark(oklch(30% 0.09 140deg), oklch(95% 0.02 150deg));
27
+ --oui-orange-0: light-dark(oklch(99% 0.02 60deg), oklch(20% 0.08 50deg));
28
+ --oui-orange-1: light-dark(oklch(98.5% 0.035 59deg), oklch(25% 0.09 51deg));
29
+ --oui-orange-2: light-dark(oklch(97% 0.05 58deg), oklch(32% 0.1 52deg));
30
+ --oui-orange-3: light-dark(oklch(93% 0.07 57deg), oklch(40% 0.09 53deg));
31
+ --oui-orange-4: light-dark(oklch(87% 0.1 56deg), oklch(50% 0.08 54deg));
32
+ --oui-orange-5: light-dark(oklch(76% 0.11 55deg), oklch(60% 0.07 55deg));
33
+ --oui-orange-6: light-dark(oklch(65% 0.12 54deg), oklch(70% 0.06 56deg));
34
+ --oui-orange-7: light-dark(oklch(55% 0.14 53deg), oklch(80% 0.05 57deg));
35
+ --oui-orange-8: light-dark(oklch(45% 0.12 52deg), oklch(85% 0.04 58deg));
36
+ --oui-orange-9: light-dark(oklch(37.5% 0.11 51deg), oklch(90% 0.03 59deg));
37
+ --oui-orange-10: light-dark(oklch(30% 0.09 50deg), oklch(95% 0.02 60deg));
38
+ --oui-purple-0: light-dark(oklch(99% 0.02 300deg), oklch(20% 0.08 290deg));
39
+ --oui-purple-1: light-dark(oklch(98% 0.035 299deg), oklch(25% 0.09 291deg));
40
+ --oui-purple-2: light-dark(oklch(95% 0.05 298deg), oklch(32% 0.1 292deg));
41
+ --oui-purple-3: light-dark(oklch(90% 0.07 297deg), oklch(40% 0.09 293deg));
42
+ --oui-purple-4: light-dark(oklch(80% 0.1 296deg), oklch(50% 0.08 294deg));
43
+ --oui-purple-5: light-dark(oklch(70% 0.11 295deg), oklch(60% 0.07 295deg));
44
+ --oui-purple-6: light-dark(oklch(60% 0.12 294deg), oklch(70% 0.06 296deg));
45
+ --oui-purple-7: light-dark(oklch(50% 0.14 293deg), oklch(80% 0.05 297deg));
46
+ --oui-purple-8: light-dark(oklch(42% 0.12 292deg), oklch(85% 0.04 298deg));
47
+ --oui-purple-9: light-dark(oklch(35% 0.11 291deg), oklch(90% 0.03 299deg));
48
+ --oui-purple-10: light-dark(oklch(30% 0.09 290deg), oklch(95% 0.02 300deg));
49
+ --oui-red-0: light-dark(oklch(99% 0.024 25deg), oklch(20% 0.08 25deg));
50
+ --oui-red-1: light-dark(oklch(98.5% 0.032 24deg), oklch(25% 0.09 24deg));
51
+ --oui-red-2: light-dark(oklch(97% 0.05 23deg), oklch(32% 0.1 23deg));
52
+ --oui-red-3: light-dark(oklch(93% 0.07 22deg), oklch(40% 0.09 22deg));
53
+ --oui-red-4: light-dark(oklch(87% 0.1 21deg), oklch(50% 0.08 21deg));
54
+ --oui-red-5: light-dark(oklch(76% 0.11 20deg), oklch(60% 0.07 20deg));
55
+ --oui-red-6: light-dark(oklch(65% 0.12 19deg), oklch(70% 0.06 19deg));
56
+ --oui-red-7: light-dark(oklch(55% 0.14 18deg), oklch(80% 0.05 18deg));
57
+ --oui-red-8: light-dark(oklch(45% 0.12 17deg), oklch(85% 0.04 17deg));
58
+ --oui-red-9: light-dark(oklch(37.5% 0.11 16deg), oklch(90% 0.03 16deg));
59
+ --oui-red-10: light-dark(oklch(30% 0.09 15deg), oklch(95% 0.02 15deg));
60
+ --oui-yellow-0: light-dark(oklch(99% 0.02 100deg), oklch(20% 0.08 90deg));
61
+ --oui-yellow-1: light-dark(oklch(98.5% 0.035 99deg), oklch(25% 0.09 91deg));
62
+ --oui-yellow-2: light-dark(oklch(97% 0.05 98deg), oklch(32% 0.1 92deg));
63
+ --oui-yellow-3: light-dark(oklch(93% 0.07 97deg), oklch(40% 0.09 93deg));
64
+ --oui-yellow-4: light-dark(oklch(87% 0.1 96deg), oklch(50% 0.08 94deg));
65
+ --oui-yellow-5: light-dark(oklch(78% 0.11 95deg), oklch(60% 0.07 95deg));
66
+ --oui-yellow-6: light-dark(oklch(65% 0.12 94deg), oklch(70% 0.06 96deg));
67
+ --oui-yellow-7: light-dark(oklch(55% 0.14 93deg), oklch(80% 0.05 97deg));
68
+ --oui-yellow-8: light-dark(oklch(45% 0.12 92deg), oklch(85% 0.04 98deg));
69
+ --oui-yellow-9: light-dark(oklch(37.5% 0.11 91deg), oklch(90% 0.03 99deg));
70
+ --oui-yellow-10: light-dark(oklch(30% 0.09 90deg), oklch(95% 0.02 100deg));
71
+ --oui-gray-0: light-dark(oklch(98% 0 0deg), oklch(22% 0 0deg));
72
+ --oui-gray-1: light-dark(oklch(98% 0 0deg), oklch(26% 0 0deg));
73
+ --oui-gray-2: light-dark(oklch(95% 0 0deg), oklch(32% 0 0deg));
74
+ --oui-gray-3: light-dark(oklch(90% 0 0deg), oklch(40% 0 0deg));
75
+ --oui-gray-4: light-dark(oklch(80% 0 0deg), oklch(50% 0 0deg));
76
+ --oui-gray-5: light-dark(oklch(70% 0 0deg), oklch(60% 0 0deg));
77
+ --oui-gray-6: light-dark(oklch(60% 0 0deg), oklch(70% 0 0deg));
78
+ --oui-gray-7: light-dark(oklch(50% 0 0deg), oklch(80% 0 0deg));
79
+ --oui-gray-8: light-dark(oklch(42% 0 0deg), oklch(85% 0 0deg));
80
+ --oui-gray-9: light-dark(oklch(35% 0 0deg), oklch(90% 0 0deg));
81
+ --oui-gray-10: light-dark(oklch(30% 0 0deg), oklch(95% 0 0deg));
82
+ --oui-slate-0: light-dark(oklch(99% 0.0025 255deg), oklch(22% 0.005 255deg));
83
+ --oui-slate-1: light-dark(oklch(98% 0.005 255deg), oklch(26% 0.0075 255deg));
84
+ --oui-slate-2: light-dark(oklch(95% 0.0075 255deg), oklch(32% 0.01 255deg));
85
+ --oui-slate-3: light-dark(oklch(90% 0.01 255deg), oklch(40% 0.0125 255deg));
86
+ --oui-slate-4: light-dark(oklch(80% 0.015 255deg), oklch(50% 0.015 255deg));
87
+ --oui-slate-5: light-dark(oklch(70% 0.02 255deg), oklch(60% 0.02 255deg));
88
+ --oui-slate-6: light-dark(oklch(60% 0.015 255deg), oklch(70% 0.015 255deg));
89
+ --oui-slate-7: light-dark(oklch(50% 0.0125 255deg), oklch(80% 0.0125 255deg));
90
+ --oui-slate-8: light-dark(oklch(42% 0.01 255deg), oklch(85% 0.01 255deg));
91
+ --oui-slate-9: light-dark(oklch(35% 0.0075 255deg), oklch(90% 0.0075 255deg));
92
+ --oui-slate-10: light-dark(oklch(30% 0.005 255deg), oklch(95% 0.005 255deg));
93
+ --oui-stone-0: light-dark(oklch(99% 0.0033 95deg), oklch(22% 0.005 95deg));
94
+ --oui-stone-1: light-dark(oklch(98% 0.0067 95deg), oklch(26% 0.0075 95deg));
95
+ --oui-stone-2: light-dark(oklch(95% 0.01 95deg), oklch(32% 0.01 95deg));
96
+ --oui-stone-3: light-dark(oklch(90% 0.0125 95deg), oklch(40% 0.0125 95deg));
97
+ --oui-stone-4: light-dark(oklch(80% 0.015 95deg), oklch(50% 0.015 95deg));
98
+ --oui-stone-5: light-dark(oklch(70% 0.02 95deg), oklch(60% 0.02 95deg));
99
+ --oui-stone-6: light-dark(oklch(60% 0.015 95deg), oklch(70% 0.015 95deg));
100
+ --oui-stone-7: light-dark(oklch(50% 0.0125 95deg), oklch(80% 0.0125 95deg));
101
+ --oui-stone-8: light-dark(oklch(42% 0.01 95deg), oklch(85% 0.01 95deg));
102
+ --oui-stone-9: light-dark(oklch(35% 0.0075 95deg), oklch(90% 0.0075 95deg));
103
+ --oui-stone-10: light-dark(oklch(30% 0.005 95deg), oklch(95% 0.005 95deg));
104
104
  }
105
105
 
106
106
 
@@ -22,7 +22,7 @@
22
22
  width: 1em;
23
23
  height: 1em;
24
24
  margin: 0 0.5em 0 0;
25
- background-color: currentColor;
25
+ background-color: currentcolor;
26
26
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E");
27
27
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E");
28
28
  -webkit-mask-size: contain;
package/dist/css/flex.css CHANGED
@@ -13,16 +13,16 @@
13
13
  gap: var(--flow-gap, 1rem);
14
14
  }
15
15
 
16
- :where(.flow-large) {
16
+ :where(.flow-large, .flow--large) {
17
17
  gap: var(--flow-gap-large, calc(2 * var(--flow-gap, 1rem)));
18
18
  }
19
- :where(.flow-nowrap) {
19
+ :where(.flow-nowrap, .flow--nowrap) {
20
20
  flex-wrap: nowrap;
21
21
  }
22
- :where(.flow-small) {
22
+ :where(.flow-small, .flow--small) {
23
23
  gap: var(--flow-gap-small, calc(0.5 * var(--flow-gap, 1rem)));
24
24
  }
25
- :where(.flow-text) {
25
+ :where(.flow-text, .flow--text) {
26
26
  gap: var(--flow-gap-text, 1em);
27
27
  }
28
28
 
@@ -31,122 +31,122 @@
31
31
  gap: var(--stack-gap, 1rem);
32
32
  }
33
33
 
34
- :where(.stack-large) {
34
+ :where(.stack-large, .stack--large) {
35
35
  gap: var(--stack-gap-large, calc(2 * var(--stack-gap, 1rem)));
36
36
  }
37
- :where(.stack-small) {
37
+ :where(.stack-small, .stack--small) {
38
38
  gap: var(--stack-gap-small, calc(0.5 * var(--stack-gap, 1rem)));
39
39
  }
40
- :where(.stack-text) {
40
+ :where(.stack-text, .stack--text) {
41
41
  gap: var(--stack-gap-text, 1em);
42
42
  }
43
43
 
44
- :where(.flex-reverse[class^=flow i], .flex-reverse[class*=" flow" i]) {
44
+ :where(.flex-reverse[class^=flow i], .flex-reverse[class*=" flow" i], .flex--reverse[class^=flow i], .flex--reverse[class*=" flow" i]) {
45
45
  flex-direction: row-reverse;
46
46
  }
47
- :where(.flex-reverse[class^=stack i], .flex-reverse[class*=" stack" i]) {
47
+ :where(.flex-reverse[class^=stack i], .flex-reverse[class*=" stack" i], .flex--reverse[class^=stack i], .flex--reverse[class*=" stack" i]) {
48
48
  flex-direction: column-reverse;
49
49
  }
50
50
 
51
- :where(.flex-ac-c) {
51
+ :where(.flex-ac-c, .flex-ac--c) {
52
52
  align-content: center;
53
53
  }
54
- :where(.flex-ac-fe) {
54
+ :where(.flex-ac-fe, .flex-ac--fe) {
55
55
  align-content: flex-end;
56
56
  }
57
- :where(.flex-ac-fs) {
57
+ :where(.flex-ac-fs, .flex-ac--fs) {
58
58
  align-content: flex-start;
59
59
  }
60
- :where(.flex-ac-s) {
60
+ :where(.flex-ac-s, .flex-ac--s) {
61
61
  align-content: stretch;
62
62
  }
63
63
 
64
- :where(.flex-ai-c) {
64
+ :where(.flex-ai-c, .flex-ai--c) {
65
65
  align-items: center;
66
66
  }
67
- :where(.flex-ai-fe) {
67
+ :where(.flex-ai-fe, .flex-ai--fe) {
68
68
  align-items: flex-end;
69
69
  }
70
- :where(.flex-ai-fs) {
70
+ :where(.flex-ai-fs, .flex-ai--fs) {
71
71
  align-items: flex-start;
72
72
  }
73
- :where(.flex-ai-s) {
73
+ :where(.flex-ai-s, .flex-ai--s) {
74
74
  align-items: stretch;
75
75
  }
76
76
 
77
- :where(.flex-as-c) {
77
+ :where(.flex-as-c, .flex-as--c) {
78
78
  align-self: center;
79
79
  }
80
- :where(.flex-as-fe) {
80
+ :where(.flex-as-fe, .flex-as--fe) {
81
81
  align-self: flex-end;
82
82
  }
83
- :where(.flex-as-fs) {
83
+ :where(.flex-as-fs, .flex-as--fs) {
84
84
  align-self: flex-start;
85
85
  }
86
- :where(.flex-as-s) {
86
+ :where(.flex-as-s, .flex-as--s) {
87
87
  align-self: stretch;
88
88
  }
89
89
 
90
- :where(.flex-ac-sa) {
90
+ :where(.flex-ac-sa, .flex-ac--sa) {
91
91
  align-content: space-around;
92
92
  }
93
93
 
94
- :where(.flex-ac-sb) {
94
+ :where(.flex-ac-sb, .flex-ac--sb) {
95
95
  align-content: space-between;
96
96
  }
97
97
 
98
- :where(.flex-ac-se) {
98
+ :where(.flex-ac-se, .flex-ac--se) {
99
99
  align-content: space-evenly;
100
100
  }
101
101
 
102
- :where(.flex-jc-c) {
102
+ :where(.flex-jc-c, .flex-jc--c) {
103
103
  justify-content: center;
104
104
  }
105
- :where(.flex-jc-fe) {
105
+ :where(.flex-jc-fe, .flex-jc--fe) {
106
106
  justify-content: flex-end;
107
107
  }
108
- :where(.flex-jc-fs) {
108
+ :where(.flex-jc-fs, .flex-jc--fs) {
109
109
  justify-content: flex-start;
110
110
  }
111
- :where(.flex-jc-s) {
111
+ :where(.flex-jc-s, .flex-jc--s) {
112
112
  justify-content: stretch;
113
113
  }
114
114
 
115
- :where(.flex-ji-c) {
115
+ :where(.flex-ji-c, .flex-ji--c) {
116
116
  justify-items: center;
117
117
  }
118
- :where(.flex-ji-fe) {
118
+ :where(.flex-ji-fe, .flex-ji--fe) {
119
119
  justify-items: flex-end;
120
120
  }
121
- :where(.flex-ji-fs) {
121
+ :where(.flex-ji-fs, .flex-ji--fs) {
122
122
  justify-items: flex-start;
123
123
  }
124
- :where(.flex-ji-s) {
124
+ :where(.flex-ji-s, .flex-ji--s) {
125
125
  justify-items: stretch;
126
126
  }
127
127
 
128
- :where(.flex-js-c) {
128
+ :where(.flex-js-c, .flex-js--c) {
129
129
  justify-self: center;
130
130
  }
131
- :where(.flex-js-fe) {
131
+ :where(.flex-js-fe, .flex-js--fe) {
132
132
  justify-self: flex-end;
133
133
  }
134
- :where(.flex-js-fs) {
134
+ :where(.flex-js-fs, .flex-js--fs) {
135
135
  justify-self: flex-start;
136
136
  }
137
- :where(.flex-js-s) {
137
+ :where(.flex-js-s, .flex-js--s) {
138
138
  justify-self: stretch;
139
139
  }
140
140
 
141
- :where(.flex-jc-sa) {
141
+ :where(.flex-jc-sa, .flex-jc--sa) {
142
142
  justify-content: space-around;
143
143
  }
144
144
 
145
- :where(.flex-jc-sb) {
145
+ :where(.flex-jc-sb, .flex-jc--sb) {
146
146
  justify-content: space-between;
147
147
  }
148
148
 
149
- :where(.flex-jc-se) {
149
+ :where(.flex-jc-se, .flex-jc--se) {
150
150
  justify-content: space-evenly;
151
151
  }
152
152