@oscarpalmer/oui 0.10.0 → 0.11.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,3 +1,46 @@
1
+ @mixin button() {
2
+ --oui-background-percentage: 25%;
3
+ --oui-foreground-percentage: 0%;
4
+ --oui-outline-percentage: 100%;
5
+ --oui-shadow-percentage: 85%;
6
+
7
+ --oui-shadow-value: color-mix(
8
+ in oklch,
9
+ var(--oui-outline-value, var(--oui-gray-6)),
10
+ transparent var(--oui-shadow-percentage)
11
+ );
12
+
13
+ padding: 0.5em 0.75em;
14
+ display: inline-flex;
15
+ flex-flow: row wrap;
16
+ gap: 0.75em;
17
+ align-items: center;
18
+ border-radius: 0.25em;
19
+ background-color: color-mix(
20
+ in oklab,
21
+ var(--oui-background-value, var(--oui-gray-2)),
22
+ transparent var(--oui-background-percentage)
23
+ );
24
+ outline: 4px solid
25
+ color-mix(
26
+ in oklab,
27
+ var(--oui-outline-value, var(--oui-gray-6)),
28
+ transparent var(--oui-outline-percentage)
29
+ );
30
+ border: none;
31
+ box-shadow:
32
+ 0 0 0 1px var(--oui-shadow-value),
33
+ 0 1px 2px 0 var(--oui-shadow-value),
34
+ 0 2px 4px 0 var(--oui-shadow-value);
35
+ color: color-mix(
36
+ in oklab,
37
+ var(--oui-foreground-value, var(--oui-gray-8)),
38
+ transparent var(--oui-foreground-percentage)
39
+ );
40
+ line-height: 1.25;
41
+ transition: 0.125s ease-in-out;
42
+ }
43
+
1
44
  @mixin visuallyHidden() {
2
45
  width: 1px !important;
3
46
  height: 1px !important;