@poppyui/core 0.1.0 → 0.1.2-next.0c371f0

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 (56) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +225 -166
  3. package/dist/components/accordion.css +1 -1
  4. package/dist/components/button.css +3 -3
  5. package/dist/components/checkbox.css +2 -2
  6. package/dist/components/drawer.css +4 -4
  7. package/dist/components/dropdown.css +3 -3
  8. package/dist/components/input.css +2 -2
  9. package/dist/components/modal.css +6 -6
  10. package/dist/components/progress.css +1 -1
  11. package/dist/components/radio.css +1 -1
  12. package/dist/components/skeleton.css +1 -1
  13. package/dist/components/stat.css +1 -1
  14. package/dist/components/tabs.css +2 -2
  15. package/dist/components/toast.css +2 -2
  16. package/dist/components/toggle.css +1 -1
  17. package/dist/core.css +2 -0
  18. package/dist/poppy.css +32 -30
  19. package/dist/poppy.min.css +1 -1
  20. package/package.json +53 -53
  21. package/src/base/base.css +40 -40
  22. package/src/components/accordion.css +98 -98
  23. package/src/components/alert.css +58 -58
  24. package/src/components/avatar.css +67 -67
  25. package/src/components/badge.css +87 -87
  26. package/src/components/breadcrumbs.css +68 -68
  27. package/src/components/button.css +139 -139
  28. package/src/components/card.css +87 -87
  29. package/src/components/checkbox.css +77 -77
  30. package/src/components/divider.css +46 -46
  31. package/src/components/drawer.css +84 -84
  32. package/src/components/dropdown.css +100 -100
  33. package/src/components/field.css +71 -71
  34. package/src/components/input.css +127 -127
  35. package/src/components/join.css +70 -70
  36. package/src/components/kbd.css +35 -35
  37. package/src/components/loading.css +74 -74
  38. package/src/components/menu.css +147 -147
  39. package/src/components/modal.css +83 -83
  40. package/src/components/navbar.css +54 -54
  41. package/src/components/progress.css +91 -91
  42. package/src/components/radio.css +65 -65
  43. package/src/components/range.css +83 -83
  44. package/src/components/skeleton.css +43 -43
  45. package/src/components/stat.css +54 -54
  46. package/src/components/steps.css +100 -100
  47. package/src/components/table.css +65 -65
  48. package/src/components/tabs.css +125 -125
  49. package/src/components/toast.css +80 -80
  50. package/src/components/toggle.css +76 -76
  51. package/src/components/tooltip.css +59 -59
  52. package/src/core.css +7 -7
  53. package/src/poppy.css +34 -34
  54. package/src/themes/dark.css +33 -31
  55. package/src/themes/light.css +33 -32
  56. package/src/tokens/tokens.css +52 -52
@@ -1,77 +1,77 @@
1
- /*
2
- * Checkbox
3
- * <label class="label-inline"><input type="checkbox" class="checkbox"> Accept</label>
4
- * Colors: checkbox-primary | -secondary | -success | -warning | -info | -danger
5
- * Sizes: checkbox-sm | (default) | checkbox-lg
6
- * States: :checked, :indeterminate (set via the JS property), :disabled
7
- */
8
- @layer poppy.tokens, poppy.base, poppy.components;
9
-
10
- @layer poppy.components {
11
- .checkbox {
12
- --chk-color: var(--color-primary);
13
- --chk-fg: var(--color-primary-content);
14
- --chk-size: 1.25rem;
15
-
16
- appearance: none;
17
- display: inline-grid;
18
- place-content: center;
19
- flex: none;
20
- inline-size: var(--chk-size);
21
- block-size: var(--chk-size);
22
- margin: 0;
23
- border: 2px solid var(--color-border);
24
- border-radius: var(--radius-sm);
25
- background: var(--color-base-100);
26
- color: var(--chk-fg);
27
- cursor: pointer;
28
- transition:
29
- background-color var(--duration-fast) var(--ease-out),
30
- border-color var(--duration-fast) var(--ease-out);
31
-
32
- /* The mask is only an alpha shape; the colour comes from currentColor. */
33
- &::before {
34
- content: "";
35
- inline-size: 100%;
36
- block-size: 100%;
37
- background: currentColor;
38
- scale: 0;
39
- transition: scale var(--duration-fast) var(--ease-out);
40
- mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 85% no-repeat;
41
- }
42
-
43
- &:checked,
44
- &:indeterminate {
45
- background: var(--chk-color);
46
- border-color: var(--chk-color);
47
-
48
- &::before {
49
- scale: 1;
50
- }
51
- }
52
-
53
- &:indeterminate::before {
54
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
55
- }
56
-
57
- &:focus-visible {
58
- outline: var(--focus-width) solid var(--color-focus);
59
- outline-offset: var(--focus-offset);
60
- }
61
-
62
- &:disabled {
63
- opacity: 0.5;
64
- cursor: not-allowed;
65
- }
66
- }
67
-
68
- .checkbox-primary { --chk-color: var(--color-primary); --chk-fg: var(--color-primary-content); }
69
- .checkbox-secondary { --chk-color: var(--color-secondary); --chk-fg: var(--color-secondary-content); }
70
- .checkbox-success { --chk-color: var(--color-success); --chk-fg: var(--color-success-content); }
71
- .checkbox-warning { --chk-color: var(--color-warning); --chk-fg: var(--color-warning-content); }
72
- .checkbox-info { --chk-color: var(--color-info); --chk-fg: var(--color-info-content); }
73
- .checkbox-danger { --chk-color: var(--color-danger); --chk-fg: var(--color-danger-content); }
74
-
75
- .checkbox-sm { --chk-size: 1rem; }
76
- .checkbox-lg { --chk-size: 1.5rem; }
77
- }
1
+ /*
2
+ * Checkbox
3
+ * <label class="label-inline"><input type="checkbox" class="checkbox"> Accept</label>
4
+ * Colors: checkbox-primary | -secondary | -success | -warning | -info | -danger
5
+ * Sizes: checkbox-sm | (default) | checkbox-lg
6
+ * States: :checked, :indeterminate (set via the JS property), :disabled
7
+ */
8
+ @layer poppy.tokens, poppy.base, poppy.components;
9
+
10
+ @layer poppy.components {
11
+ .checkbox {
12
+ --chk-color: var(--color-primary);
13
+ --chk-fg: var(--color-primary-content);
14
+ --chk-size: 1.25rem;
15
+
16
+ appearance: none;
17
+ display: inline-grid;
18
+ place-content: center;
19
+ flex: none;
20
+ inline-size: var(--chk-size);
21
+ block-size: var(--chk-size);
22
+ margin: 0;
23
+ border: 2px solid var(--color-border);
24
+ border-radius: var(--radius-sm);
25
+ background: var(--color-field);
26
+ color: var(--chk-fg);
27
+ cursor: pointer;
28
+ transition:
29
+ background-color var(--duration-fast) var(--ease-out),
30
+ border-color var(--duration-fast) var(--ease-out);
31
+
32
+ /* The mask is only an alpha shape; the colour comes from currentColor. */
33
+ &::before {
34
+ content: "";
35
+ inline-size: 100%;
36
+ block-size: 100%;
37
+ background: currentColor;
38
+ scale: 0;
39
+ transition: scale var(--duration-fast) var(--ease-out);
40
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 85% no-repeat;
41
+ }
42
+
43
+ &:checked,
44
+ &:indeterminate {
45
+ background: var(--chk-color);
46
+ border-color: var(--chk-color);
47
+
48
+ &::before {
49
+ scale: 1;
50
+ }
51
+ }
52
+
53
+ &:indeterminate::before {
54
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
55
+ }
56
+
57
+ &:focus-visible {
58
+ outline: var(--focus-width) solid var(--color-focus);
59
+ outline-offset: var(--focus-offset);
60
+ }
61
+
62
+ &:disabled {
63
+ opacity: 0.5;
64
+ cursor: not-allowed;
65
+ }
66
+ }
67
+
68
+ .checkbox-primary { --chk-color: var(--color-primary); --chk-fg: var(--color-primary-content); }
69
+ .checkbox-secondary { --chk-color: var(--color-secondary); --chk-fg: var(--color-secondary-content); }
70
+ .checkbox-success { --chk-color: var(--color-success); --chk-fg: var(--color-success-content); }
71
+ .checkbox-warning { --chk-color: var(--color-warning); --chk-fg: var(--color-warning-content); }
72
+ .checkbox-info { --chk-color: var(--color-info); --chk-fg: var(--color-info-content); }
73
+ .checkbox-danger { --chk-color: var(--color-danger); --chk-fg: var(--color-danger-content); }
74
+
75
+ .checkbox-sm { --chk-size: 1rem; }
76
+ .checkbox-lg { --chk-size: 1.5rem; }
77
+ }
@@ -1,46 +1,46 @@
1
- /*
2
- * Divider
3
- * <hr class="divider" />
4
- * <div class="divider" role="separator">OR</div>
5
- * <div class="divider divider-vertical" role="separator" aria-orientation="vertical"></div>
6
- */
7
- @layer poppy.tokens, poppy.base, poppy.components;
8
-
9
- @layer poppy.components {
10
- .divider {
11
- display: flex;
12
- align-items: center;
13
- gap: var(--space-3);
14
- margin-block: var(--space-4);
15
- border: 0;
16
- color: var(--color-muted);
17
- font-size: var(--text-sm);
18
- white-space: nowrap;
19
-
20
- &::before,
21
- &::after {
22
- content: "";
23
- flex: 1;
24
- block-size: 1px;
25
- background: var(--color-border);
26
- }
27
-
28
- /* Empty divider (e.g. <hr>) is a single line. */
29
- &:empty {
30
- gap: 0;
31
- }
32
- }
33
-
34
- .divider-vertical {
35
- flex-direction: column;
36
- align-self: stretch;
37
- margin-block: 0;
38
- margin-inline: var(--space-4);
39
-
40
- &::before,
41
- &::after {
42
- block-size: auto;
43
- inline-size: 1px;
44
- }
45
- }
46
- }
1
+ /*
2
+ * Divider
3
+ * <hr class="divider" />
4
+ * <div class="divider" role="separator">OR</div>
5
+ * <div class="divider divider-vertical" role="separator" aria-orientation="vertical"></div>
6
+ */
7
+ @layer poppy.tokens, poppy.base, poppy.components;
8
+
9
+ @layer poppy.components {
10
+ .divider {
11
+ display: flex;
12
+ align-items: center;
13
+ gap: var(--space-3);
14
+ margin-block: var(--space-4);
15
+ border: 0;
16
+ color: var(--color-muted);
17
+ font-size: var(--text-sm);
18
+ white-space: nowrap;
19
+
20
+ &::before,
21
+ &::after {
22
+ content: "";
23
+ flex: 1;
24
+ block-size: 1px;
25
+ background: var(--color-border);
26
+ }
27
+
28
+ /* Empty divider (e.g. <hr>) is a single line. */
29
+ &:empty {
30
+ gap: 0;
31
+ }
32
+ }
33
+
34
+ .divider-vertical {
35
+ flex-direction: column;
36
+ align-self: stretch;
37
+ margin-block: 0;
38
+ margin-inline: var(--space-4);
39
+
40
+ &::before,
41
+ &::after {
42
+ block-size: auto;
43
+ inline-size: 1px;
44
+ }
45
+ }
46
+ }
@@ -1,84 +1,84 @@
1
- /*
2
- * Drawer: zero JS. A side sheet on native <dialog>, opened with Invoker Commands.
3
- * Focus trapping, Esc to close and the inert background come from the platform.
4
- *
5
- * <button class="btn" commandfor="d1" command="show-modal">Menu</button>
6
- * <dialog id="d1" class="drawer" aria-label="Navigation" closedby="any">
7
- * <button class="btn btn-ghost" commandfor="d1" command="close">Close</button>
8
- * ...content
9
- * </dialog>
10
- *
11
- * Slides in from the inline-start edge; add .drawer-end for the inline-end edge.
12
- * Both flip automatically in RTL.
13
- */
14
- @layer poppy.tokens, poppy.base, poppy.components;
15
-
16
- @layer poppy.components {
17
- .drawer {
18
- --drawer-shift: -100%;
19
-
20
- inline-size: min(20rem, 85vw);
21
- max-inline-size: none;
22
- block-size: 100dvh;
23
- max-block-size: none;
24
- margin: 0;
25
- margin-inline-end: auto;
26
- padding: var(--space-4);
27
- border: 0;
28
- border-inline-end: 1px solid var(--color-border);
29
- background: var(--color-base-100);
30
- color: var(--color-base-content);
31
- box-shadow: var(--shadow-lg);
32
- overflow: auto;
33
- overscroll-behavior: contain;
34
-
35
- /* Exit state (also the state we transition back to on close). */
36
- translate: var(--drawer-shift) 0;
37
- transition:
38
- translate var(--duration-normal) var(--ease-out),
39
- overlay var(--duration-normal) allow-discrete,
40
- display var(--duration-normal) allow-discrete;
41
-
42
- &:dir(rtl) {
43
- --drawer-shift: 100%;
44
- }
45
-
46
- &[open] {
47
- translate: 0 0;
48
-
49
- @starting-style {
50
- translate: var(--drawer-shift) 0;
51
- }
52
- }
53
-
54
- &::backdrop {
55
- background-color: transparent;
56
- transition:
57
- background-color var(--duration-normal) var(--ease-out),
58
- overlay var(--duration-normal) allow-discrete,
59
- display var(--duration-normal) allow-discrete;
60
- }
61
-
62
- &[open]::backdrop {
63
- background-color: var(--color-backdrop);
64
- }
65
-
66
- @starting-style {
67
- &[open]::backdrop {
68
- background-color: transparent;
69
- }
70
- }
71
- }
72
-
73
- .drawer-end {
74
- --drawer-shift: 100%;
75
-
76
- margin-inline: auto 0;
77
- border-inline-end: 0;
78
- border-inline-start: 1px solid var(--color-border);
79
-
80
- &:dir(rtl) {
81
- --drawer-shift: -100%;
82
- }
83
- }
84
- }
1
+ /*
2
+ * Drawer: zero JS. A side sheet on native <dialog>, opened with Invoker Commands.
3
+ * Focus trapping, Esc to close and the inert background come from the platform.
4
+ *
5
+ * <button class="btn" commandfor="d1" command="show-modal">Menu</button>
6
+ * <dialog id="d1" class="drawer" aria-label="Navigation" closedby="any">
7
+ * <button class="btn btn-ghost" commandfor="d1" command="close">Close</button>
8
+ * ...content
9
+ * </dialog>
10
+ *
11
+ * Slides in from the inline-start edge; add .drawer-end for the inline-end edge.
12
+ * Both flip automatically in RTL.
13
+ */
14
+ @layer poppy.tokens, poppy.base, poppy.components;
15
+
16
+ @layer poppy.components {
17
+ .drawer {
18
+ --drawer-shift: -100%;
19
+
20
+ inline-size: min(20rem, 85vw);
21
+ max-inline-size: none;
22
+ block-size: 100dvh;
23
+ max-block-size: none;
24
+ margin: 0;
25
+ margin-inline-end: auto;
26
+ padding: var(--space-4);
27
+ border: 0;
28
+ border-inline-end: 1px solid var(--color-border);
29
+ background: var(--color-base-100);
30
+ color: var(--color-base-content);
31
+ box-shadow: var(--shadow-lg);
32
+ overflow: auto;
33
+ overscroll-behavior: contain;
34
+
35
+ /* Exit state (also the state we transition back to on close). */
36
+ translate: var(--drawer-shift) 0;
37
+ transition:
38
+ translate var(--duration-normal) var(--ease-out),
39
+ overlay var(--duration-normal) allow-discrete,
40
+ display var(--duration-normal) allow-discrete;
41
+
42
+ &:dir(rtl) {
43
+ --drawer-shift: 100%;
44
+ }
45
+
46
+ &[open] {
47
+ translate: 0 0;
48
+
49
+ @starting-style {
50
+ translate: var(--drawer-shift) 0;
51
+ }
52
+ }
53
+
54
+ &::backdrop {
55
+ background-color: transparent;
56
+ transition:
57
+ background-color var(--duration-normal) var(--ease-out),
58
+ overlay var(--duration-normal) allow-discrete,
59
+ display var(--duration-normal) allow-discrete;
60
+ }
61
+
62
+ &[open]::backdrop {
63
+ background-color: var(--color-backdrop);
64
+ }
65
+
66
+ @starting-style {
67
+ &[open]::backdrop {
68
+ background-color: transparent;
69
+ }
70
+ }
71
+ }
72
+
73
+ .drawer-end {
74
+ --drawer-shift: 100%;
75
+
76
+ margin-inline: auto 0;
77
+ border-inline-end: 0;
78
+ border-inline-start: 1px solid var(--color-border);
79
+
80
+ &:dir(rtl) {
81
+ --drawer-shift: -100%;
82
+ }
83
+ }
84
+ }
@@ -1,100 +1,100 @@
1
- /*
2
- * Dropdown: zero JS. popover="auto" gives light dismiss (outside click, Esc) and top-layer rendering.
3
- *
4
- * <button class="btn" popovertarget="menu1">Options</button>
5
- * <div id="menu1" class="dropdown" popover>
6
- * <ul class="dropdown-menu">
7
- * <li><button>Edit</button></li>
8
- * <li><a href="#">Share</a></li>
9
- * </ul>
10
- * </div>
11
- *
12
- * `commandfor="menu1" command="toggle-popover"` works the same as `popovertarget`.
13
- * With anchor positioning the menu sits under its invoker (the implicit anchor).
14
- * Without it, the menu opens as a sheet pinned to the bottom of the viewport,
15
- * because a top-layer element cannot be placed relative to its trigger without JS.
16
- */
17
- @layer poppy.tokens, poppy.base, poppy.components;
18
-
19
- @layer poppy.components {
20
- .dropdown {
21
- min-inline-size: 12rem;
22
- max-inline-size: min(20rem, 100vw - 2 * var(--space-4));
23
- margin: 0;
24
- padding: var(--space-1);
25
- border: 1px solid var(--color-border);
26
- border-radius: var(--radius-md);
27
- background: var(--color-base-100);
28
- color: var(--color-base-content);
29
- box-shadow: var(--shadow-md);
30
-
31
- opacity: 0;
32
- translate: 0 calc(-1 * var(--space-1));
33
- transition:
34
- opacity var(--duration-fast) var(--ease-out),
35
- translate var(--duration-fast) var(--ease-out),
36
- overlay var(--duration-fast) allow-discrete,
37
- display var(--duration-fast) allow-discrete;
38
-
39
- &:popover-open {
40
- opacity: 1;
41
- translate: 0 0;
42
-
43
- @starting-style {
44
- opacity: 0;
45
- translate: 0 calc(-1 * var(--space-1));
46
- }
47
- }
48
- }
49
-
50
- @supports (anchor-name: --a) {
51
- .dropdown {
52
- /* position-anchor defaults to the popover's implicit anchor: its invoker. */
53
- inset: auto;
54
- position-area: block-end span-inline-end;
55
- position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
56
- margin-block: var(--space-1);
57
- }
58
- }
59
-
60
- @supports not (anchor-name: --a) {
61
- .dropdown {
62
- position: fixed;
63
- inset: auto var(--space-4) var(--space-4);
64
- margin-inline: auto;
65
- }
66
- }
67
-
68
- .dropdown-menu {
69
- display: grid;
70
- gap: 2px;
71
- margin: 0;
72
- padding: 0;
73
- list-style: none;
74
-
75
- & :is(a, button) {
76
- display: flex;
77
- align-items: center;
78
- gap: var(--space-2);
79
- inline-size: 100%;
80
- padding: var(--space-2) var(--space-3);
81
- border: 0;
82
- border-radius: var(--radius-sm);
83
- background: transparent;
84
- color: inherit;
85
- font-size: var(--text-sm);
86
- text-align: start;
87
- text-decoration: none;
88
- cursor: pointer;
89
-
90
- &:hover,
91
- &:focus-visible {
92
- background: var(--color-base-200);
93
- }
94
-
95
- &:focus-visible {
96
- outline-offset: -2px;
97
- }
98
- }
99
- }
100
- }
1
+ /*
2
+ * Dropdown: zero JS. popover="auto" gives light dismiss (outside click, Esc) and top-layer rendering.
3
+ *
4
+ * <button class="btn" popovertarget="menu1">Options</button>
5
+ * <div id="menu1" class="dropdown" popover>
6
+ * <ul class="dropdown-menu">
7
+ * <li><button>Edit</button></li>
8
+ * <li><a href="#">Share</a></li>
9
+ * </ul>
10
+ * </div>
11
+ *
12
+ * `commandfor="menu1" command="toggle-popover"` works the same as `popovertarget`.
13
+ * With anchor positioning the menu sits under its invoker (the implicit anchor).
14
+ * Without it, the menu opens as a sheet pinned to the bottom of the viewport,
15
+ * because a top-layer element cannot be placed relative to its trigger without JS.
16
+ */
17
+ @layer poppy.tokens, poppy.base, poppy.components;
18
+
19
+ @layer poppy.components {
20
+ .dropdown {
21
+ min-inline-size: 12rem;
22
+ max-inline-size: min(20rem, 100vw - 2 * var(--space-4));
23
+ margin: 0;
24
+ padding: var(--space-1);
25
+ border: 1px solid var(--color-border);
26
+ border-radius: var(--radius-md);
27
+ background: var(--color-base-100);
28
+ color: var(--color-base-content);
29
+ box-shadow: var(--shadow-md);
30
+
31
+ opacity: 0;
32
+ translate: 0 calc(-1 * var(--space-1));
33
+ transition:
34
+ opacity var(--duration-fast) var(--ease-out),
35
+ translate var(--duration-fast) var(--ease-out),
36
+ overlay var(--duration-fast) allow-discrete,
37
+ display var(--duration-fast) allow-discrete;
38
+
39
+ &:popover-open {
40
+ opacity: 1;
41
+ translate: 0 0;
42
+
43
+ @starting-style {
44
+ opacity: 0;
45
+ translate: 0 calc(-1 * var(--space-1));
46
+ }
47
+ }
48
+ }
49
+
50
+ @supports (anchor-name: --a) {
51
+ .dropdown {
52
+ /* position-anchor defaults to the popover's implicit anchor: its invoker. */
53
+ inset: auto;
54
+ position-area: block-end span-inline-end;
55
+ position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
56
+ margin-block: var(--space-1);
57
+ }
58
+ }
59
+
60
+ @supports not (anchor-name: --a) {
61
+ .dropdown {
62
+ position: fixed;
63
+ inset: auto var(--space-4) var(--space-4);
64
+ margin-inline: auto;
65
+ }
66
+ }
67
+
68
+ .dropdown-menu {
69
+ display: grid;
70
+ gap: 2px;
71
+ margin: 0;
72
+ padding: 0;
73
+ list-style: none;
74
+
75
+ & :is(a, button) {
76
+ display: flex;
77
+ align-items: center;
78
+ gap: var(--space-2);
79
+ inline-size: 100%;
80
+ padding: var(--space-2) var(--space-3);
81
+ border: 0;
82
+ border-radius: var(--radius-sm);
83
+ background: transparent;
84
+ color: inherit;
85
+ font-size: var(--text-sm);
86
+ text-align: start;
87
+ text-decoration: none;
88
+ cursor: pointer;
89
+
90
+ &:hover,
91
+ &:focus-visible {
92
+ background: var(--color-base-200);
93
+ }
94
+
95
+ &:focus-visible {
96
+ outline-offset: -2px;
97
+ }
98
+ }
99
+ }
100
+ }