@kodentuzo/spotstrap 0.0.0-stage → 0.1.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 (40) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +77 -2
  3. package/dist/js/index.d.ts +17 -0
  4. package/dist/js/spotstrap.js +3 -0
  5. package/dist/js/spotstrap.js.map +7 -0
  6. package/dist/recipes/index.d.ts +86 -0
  7. package/dist/recipes/index.js +211 -0
  8. package/dist/recipes/sizes.d.ts +21 -0
  9. package/dist/spotstrap.css +1694 -0
  10. package/dist/themes/kodentuzo.css +128 -0
  11. package/dist/themes/librelifts.css +128 -0
  12. package/dist/themes/librevitalis.css +128 -0
  13. package/dist/themes/neutral.css +128 -0
  14. package/dist/themes/sokobanko.css +135 -0
  15. package/dist/themes/spotcraft.css +128 -0
  16. package/dist/themes/tagtape.css +128 -0
  17. package/dist/themes/vinskiano.css +128 -0
  18. package/dist/tokens.json +2473 -0
  19. package/package.json +81 -4
  20. package/src/components/button.css +168 -0
  21. package/src/components/disclosure.css +235 -0
  22. package/src/components/field.css +173 -0
  23. package/src/components/menu.css +129 -0
  24. package/src/components/overlay.css +160 -0
  25. package/src/components/toggle.css +219 -0
  26. package/src/dark-class.css +19 -0
  27. package/src/js/index.ts +246 -0
  28. package/src/native.css +17 -0
  29. package/src/recipes/index.ts +262 -0
  30. package/src/recipes/sizes.ts +20 -0
  31. package/src/tailwind.css +67 -0
  32. package/src/themes/kodentuzo.css +136 -0
  33. package/src/themes/librelifts.css +136 -0
  34. package/src/themes/librevitalis.css +136 -0
  35. package/src/themes/neutral.css +137 -0
  36. package/src/themes/sokobanko.css +144 -0
  37. package/src/themes/spotcraft.css +136 -0
  38. package/src/themes/tagtape.css +136 -0
  39. package/src/themes/vinskiano.css +136 -0
  40. package/src/tokens.css +42 -0
package/package.json CHANGED
@@ -1,6 +1,83 @@
1
1
  {
2
2
  "name": "@kodentuzo/spotstrap",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Bootstrap's reach, shadcn's look, made for phones: Tailwind v4 tokens and classes, prebuilt CSS, and React Native recipes",
5
+ "keywords": [
6
+ "tailwindcss",
7
+ "css",
8
+ "design-system",
9
+ "shadcn",
10
+ "react-native",
11
+ "uniwind"
12
+ ],
13
+ "homepage": "https://github.com/kodentuzo/spotstrap#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/kodentuzo/spotstrap/issues"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/kodentuzo/spotstrap.git"
20
+ },
21
+ "license": "MIT",
22
+ "author": "Ivan Vinski (https://www.vin.ski)",
23
+ "type": "module",
24
+ "packageManager": "pnpm@12.4.1",
25
+ "engines": {
26
+ "node": ">=24"
27
+ },
28
+ "files": [
29
+ "src",
30
+ "dist"
31
+ ],
32
+ "exports": {
33
+ "./tailwind.css": "./src/tailwind.css",
34
+ "./dark-class.css": "./src/dark-class.css",
35
+ "./themes/*.css": "./src/themes/*.css",
36
+ "./dist/spotstrap.css": "./dist/spotstrap.css",
37
+ "./dist/themes/*.css": "./dist/themes/*.css",
38
+ "./tokens.json": "./dist/tokens.json",
39
+ "./js": {
40
+ "types": "./dist/js/index.d.ts",
41
+ "default": "./dist/js/spotstrap.js"
42
+ },
43
+ "./native.css": "./src/native.css",
44
+ "./recipes": {
45
+ "types": "./dist/recipes/index.d.ts",
46
+ "default": "./dist/recipes/index.js"
47
+ },
48
+ "./package.json": "./package.json"
49
+ },
50
+ "scripts": {
51
+ "build": "node scripts/build.ts",
52
+ "check": "biome check",
53
+ "fix": "biome check --write",
54
+ "typecheck": "tsc --noEmit",
55
+ "test": "node --test",
56
+ "verify": "pnpm check && pnpm typecheck && pnpm build && pnpm --filter @spotstrap/site typecheck && pnpm --filter @spotstrap/site build && pnpm test",
57
+ "prepack": "node scripts/build.ts",
58
+ "site:dev": "pnpm --filter @spotstrap/site dev",
59
+ "site:build": "pnpm build && pnpm --filter @spotstrap/site build"
60
+ },
61
+ "peerDependencies": {
62
+ "tailwindcss": "^4.3.0"
63
+ },
64
+ "peerDependenciesMeta": {
65
+ "tailwindcss": {
66
+ "optional": true
67
+ }
68
+ },
69
+ "devDependencies": {
70
+ "@biomejs/biome": "2.6.7",
71
+ "@tailwindcss/node": "^4.3.5",
72
+ "@types/node": "^26.6.6",
73
+ "@zag-js/combobox": "1.48.0",
74
+ "@zag-js/menu": "1.48.0",
75
+ "@zag-js/select": "1.48.0",
76
+ "@zag-js/tabs": "1.48.0",
77
+ "@zag-js/vanilla": "1.48.0",
78
+ "esbuild": "0.28.2",
79
+ "playwright": "1.64.1",
80
+ "tailwindcss": "^4.3.5",
81
+ "typescript": "^6.0.3"
82
+ }
83
+ }
@@ -0,0 +1,168 @@
1
+ /*
2
+ * Button: `btn`, on <button> or <a>. Modifiers set variables that `btn` reads, so their order
3
+ * in the class list never matters.
4
+ *
5
+ * Variants (shadcn's names): btn-secondary, btn-outline, btn-ghost, btn-link, btn-destructive.
6
+ * Without one, a button is the default (primary) style.
7
+ * Sizes: btn-compact (36px, still a 44px hit area), btn-icon (square).
8
+ * States: :hover, :active or [data-pressed], :focus-visible, :disabled or
9
+ * [aria-disabled="true"], [aria-busy="true"] (a spinner; change the label too: "Saving…").
10
+ * Toggle buttons: [aria-pressed="true"] (or [data-selected], [data-state="on"]) shows as on.
11
+ */
12
+
13
+ @utility btn {
14
+ position: relative;
15
+ display: inline-flex;
16
+ align-items: center;
17
+ justify-content: center;
18
+ gap: 0.5rem;
19
+ min-height: var(--btn-height, var(--size-control));
20
+ min-width: var(--btn-width, auto);
21
+ padding-inline: var(--btn-padding, 1rem);
22
+ border: 1px solid var(--btn-border, transparent);
23
+ border-radius: var(--btn-radius, var(--radius-lg));
24
+ background-color: var(--btn-bg, var(--color-primary));
25
+ color: var(--btn-fg, var(--color-primary-foreground));
26
+ font: inherit;
27
+ font-size: var(--btn-font-size, var(--text-body));
28
+ line-height: var(--text-body--line-height);
29
+ font-weight: 500;
30
+ text-decoration: var(--btn-decoration, none);
31
+ white-space: nowrap;
32
+ cursor: pointer;
33
+ user-select: none;
34
+ -webkit-tap-highlight-color: transparent;
35
+ touch-action: manipulation;
36
+ transition-property: background-color, border-color, color, opacity, scale;
37
+ transition-duration: 150ms;
38
+
39
+ /* The hit area is at least 44 × 44, whatever the button looks like (ADR 0003). */
40
+ &::after {
41
+ content: "";
42
+ position: absolute;
43
+ top: 50%;
44
+ left: 50%;
45
+ width: max(100%, var(--size-control));
46
+ height: max(100%, var(--size-control));
47
+ translate: -50% -50%;
48
+ }
49
+
50
+ & svg {
51
+ flex-shrink: 0;
52
+ width: 1.25em;
53
+ height: 1.25em;
54
+ }
55
+
56
+ @media (hover: hover) {
57
+ &:hover {
58
+ background-color: var(
59
+ --btn-bg-hover,
60
+ color-mix(
61
+ in oklab,
62
+ var(--btn-bg, var(--color-primary)) 90%,
63
+ var(--btn-fg, var(--color-primary-foreground))
64
+ )
65
+ );
66
+ }
67
+ }
68
+
69
+ &:active,
70
+ &[data-pressed] {
71
+ scale: 0.97;
72
+ opacity: 0.85;
73
+ }
74
+
75
+ /* A toggle button that's on: the accent fill, whatever the variant. */
76
+ &:is([aria-pressed="true"], [data-selected], [data-state="on"]) {
77
+ background-color: var(--btn-bg-on, var(--color-accent));
78
+ color: var(--btn-fg-on, var(--color-accent-foreground));
79
+ box-shadow: inset 0 0 0 1px var(--color-border);
80
+ }
81
+
82
+ &:focus-visible,
83
+ &[data-focus-visible] {
84
+ outline: 3px solid color-mix(in oklab, var(--color-ring) 60%, transparent);
85
+ outline-offset: 2px;
86
+ }
87
+
88
+ &:disabled,
89
+ &[aria-disabled="true"],
90
+ &[data-disabled] {
91
+ opacity: 0.5;
92
+ cursor: not-allowed;
93
+ pointer-events: none;
94
+ }
95
+
96
+ &[aria-busy="true"] {
97
+ cursor: progress;
98
+ }
99
+
100
+ &[aria-busy="true"]::before {
101
+ content: "";
102
+ width: 1em;
103
+ height: 1em;
104
+ border: 2px solid currentColor;
105
+ border-inline-end-color: transparent;
106
+ border-radius: 9999px;
107
+ animation: spotstrap-spin 0.8s linear infinite;
108
+ }
109
+
110
+ @media (prefers-reduced-motion: reduce) {
111
+ transition-property: background-color, border-color, color, opacity;
112
+
113
+ &:active,
114
+ &[data-pressed] {
115
+ scale: none;
116
+ }
117
+ }
118
+ }
119
+
120
+ @utility btn-secondary {
121
+ --btn-bg: var(--color-secondary);
122
+ --btn-fg: var(--color-secondary-foreground);
123
+ }
124
+
125
+ @utility btn-outline {
126
+ --btn-bg: var(--color-background);
127
+ --btn-fg: var(--color-foreground);
128
+ --btn-border: var(--color-border);
129
+ --btn-bg-hover: var(--color-accent);
130
+ }
131
+
132
+ @utility btn-ghost {
133
+ --btn-bg: transparent;
134
+ --btn-fg: var(--color-foreground);
135
+ --btn-bg-hover: var(--color-accent);
136
+ }
137
+
138
+ /* The text color, not the primary: the underline marks it, and it stays readable on every
139
+ theme's background (primary text on the page fails AA in some dark themes). */
140
+ @utility btn-link {
141
+ --btn-bg: transparent;
142
+ --btn-fg: var(--color-foreground);
143
+ --btn-bg-hover: transparent;
144
+ --btn-decoration: underline;
145
+ --btn-padding: 0.25rem;
146
+ }
147
+
148
+ @utility btn-destructive {
149
+ --btn-bg: var(--color-destructive);
150
+ --btn-fg: var(--color-destructive-foreground);
151
+ }
152
+
153
+ @utility btn-compact {
154
+ --btn-height: var(--size-control-compact);
155
+ --btn-padding: 0.75rem;
156
+ --btn-font-size: var(--text-subhead);
157
+ }
158
+
159
+ @utility btn-icon {
160
+ --btn-padding: 0;
161
+ --btn-width: var(--btn-height, var(--size-control));
162
+ }
163
+
164
+ @keyframes spotstrap-spin {
165
+ to {
166
+ rotate: 1turn;
167
+ }
168
+ }
@@ -0,0 +1,235 @@
1
+ /*
2
+ * Tabs, disclosure and appear (Headless UI's Transition).
3
+ *
4
+ * Tabs: `tabs` > `tab-list` > `tab`s, then `tab-panel`s. In plain HTML @kodentuzo/spotstrap/js switches
5
+ * them (data-spotstrap="tabs"); without it every panel shows, one after another.
6
+ * Disclosure: <details class="disclosure"> with <summary class="disclosure-button"> and a
7
+ * `disclosure-panel`; `name` on several <details> makes an accordion. No script needed.
8
+ * Appear: `appear`, `appear-up`, `appear-scale` fade an element in when it's shown and out when
9
+ * it's hidden, closed or unmounted by a library, and a native [popover] or <dialog> when it
10
+ * opens and closes. Reduced motion keeps only the fade.
11
+ */
12
+
13
+ @utility tabs {
14
+ display: grid;
15
+ gap: 1rem;
16
+ }
17
+
18
+ @utility tab-list {
19
+ display: flex;
20
+ gap: 0.25rem;
21
+ overflow-x: auto;
22
+ scrollbar-width: none;
23
+ border-bottom: 1px solid var(--color-border);
24
+ }
25
+
26
+ @utility tab {
27
+ position: relative;
28
+ display: inline-flex;
29
+ flex-shrink: 0;
30
+ align-items: center;
31
+ justify-content: center;
32
+ gap: 0.5rem;
33
+ min-height: var(--size-control);
34
+ padding-inline: 0.875rem;
35
+ border: 0;
36
+ background: none;
37
+ color: var(--color-muted-foreground);
38
+ font: inherit;
39
+ font-size: var(--text-body);
40
+ line-height: var(--text-body--line-height);
41
+ font-weight: 500;
42
+ cursor: pointer;
43
+ -webkit-tap-highlight-color: transparent;
44
+
45
+ &::after {
46
+ content: "";
47
+ position: absolute;
48
+ inset: auto 0.5rem -1px;
49
+ height: 2px;
50
+ border-radius: 2px;
51
+ background-color: transparent;
52
+ }
53
+
54
+ @media (hover: hover) {
55
+ &:hover {
56
+ color: var(--color-foreground);
57
+ }
58
+ }
59
+
60
+ &:is([aria-selected="true"], [data-selected], [data-state="active"], [data-state="checked"]) {
61
+ color: var(--color-foreground);
62
+ }
63
+
64
+ &:is(
65
+ [aria-selected="true"],
66
+ [data-selected],
67
+ [data-state="active"],
68
+ [data-state="checked"]
69
+ )::after {
70
+ background-color: var(--color-foreground);
71
+ }
72
+
73
+ &:focus-visible,
74
+ &[data-focus-visible] {
75
+ outline: 3px solid color-mix(in oklab, var(--color-ring) 60%, transparent);
76
+ outline-offset: -3px;
77
+ border-radius: var(--radius-md);
78
+ }
79
+
80
+ &:is(:disabled, [data-disabled], [aria-disabled="true"]) {
81
+ opacity: 0.5;
82
+ cursor: not-allowed;
83
+ }
84
+ }
85
+
86
+ @utility tab-panel {
87
+ outline: none;
88
+
89
+ &:focus-visible {
90
+ outline: 3px solid color-mix(in oklab, var(--color-ring) 60%, transparent);
91
+ outline-offset: 4px;
92
+ border-radius: var(--radius-md);
93
+ }
94
+
95
+ &[hidden] {
96
+ display: none;
97
+ }
98
+ }
99
+
100
+ @utility disclosure {
101
+ border-bottom: 1px solid var(--color-border);
102
+ interpolate-size: allow-keywords;
103
+
104
+ &::details-content {
105
+ block-size: 0;
106
+ overflow: clip;
107
+ transition-property: block-size, content-visibility;
108
+ transition-duration: 200ms;
109
+ transition-behavior: allow-discrete;
110
+ }
111
+
112
+ &[open]::details-content {
113
+ block-size: auto;
114
+ }
115
+
116
+ @media (prefers-reduced-motion: reduce) {
117
+ &::details-content {
118
+ transition: none;
119
+ }
120
+ }
121
+ }
122
+
123
+ @utility disclosure-button {
124
+ display: flex;
125
+ align-items: center;
126
+ justify-content: space-between;
127
+ gap: 0.75rem;
128
+ min-height: var(--size-control);
129
+ padding-block: 0.5rem;
130
+ font-size: var(--text-body);
131
+ line-height: var(--text-body--line-height);
132
+ font-weight: 500;
133
+ list-style: none;
134
+ cursor: pointer;
135
+ -webkit-tap-highlight-color: transparent;
136
+
137
+ &::-webkit-details-marker {
138
+ display: none;
139
+ }
140
+
141
+ /* A chevron that turns when open. */
142
+ &::after {
143
+ content: "";
144
+ flex-shrink: 0;
145
+ width: 0.5rem;
146
+ height: 0.5rem;
147
+ margin-inline-end: 0.25rem;
148
+ border: solid currentColor;
149
+ border-width: 0 2px 2px 0;
150
+ rotate: 45deg;
151
+ translate: 0 -0.125rem;
152
+ transition: rotate 200ms;
153
+ }
154
+
155
+ details[open] > &::after,
156
+ &:is([aria-expanded="true"], [data-state="open"], [data-open])::after {
157
+ rotate: 225deg;
158
+ translate: 0 0.125rem;
159
+ }
160
+
161
+ &:focus-visible,
162
+ &[data-focus-visible] {
163
+ outline: 3px solid color-mix(in oklab, var(--color-ring) 60%, transparent);
164
+ outline-offset: 2px;
165
+ border-radius: var(--radius-md);
166
+ }
167
+
168
+ @media (prefers-reduced-motion: reduce) {
169
+ &::after {
170
+ transition: none;
171
+ }
172
+ }
173
+ }
174
+
175
+ @utility disclosure-panel {
176
+ padding-bottom: 1rem;
177
+ color: var(--color-muted-foreground);
178
+ }
179
+
180
+ @utility appear {
181
+ opacity: 1;
182
+ transition-property: opacity, translate, scale, display, overlay;
183
+ transition-duration: 200ms;
184
+ transition-timing-function: ease-out;
185
+ transition-behavior: allow-discrete;
186
+
187
+ @starting-style {
188
+ opacity: 0;
189
+ translate: var(--appear-translate, 0);
190
+ scale: var(--appear-scale, 1);
191
+ }
192
+
193
+ &:is(
194
+ [hidden],
195
+ [data-closed],
196
+ [data-state="closed"],
197
+ [data-exiting],
198
+ [popover]:not(:popover-open),
199
+ dialog:not([open])
200
+ ) {
201
+ opacity: 0;
202
+ translate: var(--appear-translate, 0);
203
+ scale: var(--appear-scale, 1);
204
+ }
205
+
206
+ /* Set the properties, not the variables: appear-up and appear-scale set those after this. */
207
+ @media (prefers-reduced-motion: reduce) {
208
+ @starting-style {
209
+ translate: none;
210
+ scale: none;
211
+ }
212
+
213
+ &:is(
214
+ [hidden],
215
+ [data-closed],
216
+ [data-state="closed"],
217
+ [data-exiting],
218
+ [popover]:not(:popover-open),
219
+ dialog:not([open])
220
+ ) {
221
+ translate: none;
222
+ scale: none;
223
+ }
224
+ }
225
+ }
226
+
227
+ @utility appear-up {
228
+ @apply appear;
229
+ --appear-translate: 0 0.5rem;
230
+ }
231
+
232
+ @utility appear-scale {
233
+ @apply appear;
234
+ --appear-scale: 0.96;
235
+ }
@@ -0,0 +1,173 @@
1
+ /*
2
+ * Fields: `field` groups a `label`, a control, a `field-description` and a `field-error`.
3
+ * Controls: `input`, `textarea`, `select`. `fieldset` and `legend` group fields.
4
+ *
5
+ * Text is at least 16px so iOS doesn't zoom. Invalid styles show only after people have
6
+ * interacted (`:user-invalid`), or when the app says so (`aria-invalid="true"`), so a field
7
+ * isn't red before anyone typed in it.
8
+ */
9
+
10
+ @utility field {
11
+ display: grid;
12
+ gap: 0.375rem;
13
+ align-content: start;
14
+ }
15
+
16
+ @utility fieldset {
17
+ display: grid;
18
+ gap: var(--gap-control);
19
+ min-width: 0;
20
+ margin: 0;
21
+ padding: 0;
22
+ border: 0;
23
+
24
+ &:disabled,
25
+ &[data-disabled] {
26
+ opacity: 0.5;
27
+ }
28
+ }
29
+
30
+ @utility legend {
31
+ padding: 0;
32
+ /* A legend isn't a grid item of its fieldset, so it takes the fieldset's gap itself. */
33
+ margin-bottom: var(--gap-control);
34
+ font-size: var(--text-headline);
35
+ line-height: var(--text-headline--line-height);
36
+ font-weight: var(--text-headline--font-weight);
37
+ }
38
+
39
+ @utility label {
40
+ font-size: var(--text-subhead);
41
+ line-height: var(--text-subhead--line-height);
42
+ font-weight: 500;
43
+ color: var(--color-foreground);
44
+
45
+ &:where([data-disabled], :has(+ :disabled)) {
46
+ opacity: 0.5;
47
+ }
48
+ }
49
+
50
+ @utility field-description {
51
+ margin: 0;
52
+ font-size: var(--text-footnote);
53
+ line-height: var(--text-footnote--line-height);
54
+ color: var(--color-muted-foreground);
55
+ }
56
+
57
+ @utility field-error {
58
+ margin: 0;
59
+ font-size: var(--text-footnote);
60
+ line-height: var(--text-footnote--line-height);
61
+ color: var(--color-destructive);
62
+ }
63
+
64
+ @utility input {
65
+ display: block;
66
+ width: 100%;
67
+ min-height: var(--size-control);
68
+ padding: 0.625rem 0.75rem;
69
+ border: 1px solid var(--color-input);
70
+ border-radius: var(--radius-lg);
71
+ background-color: var(--color-background);
72
+ color: var(--color-foreground);
73
+ font: inherit;
74
+ font-size: max(16px, var(--text-body));
75
+ line-height: var(--text-body--line-height);
76
+ transition-property: border-color, outline-color;
77
+ transition-duration: 150ms;
78
+
79
+ &::placeholder {
80
+ color: var(--color-muted-foreground);
81
+ opacity: 1;
82
+ }
83
+
84
+ &:focus-visible,
85
+ &[data-focus-visible],
86
+ &[data-focused] {
87
+ border-color: var(--color-ring);
88
+ outline: 3px solid color-mix(in oklab, var(--color-ring) 40%, transparent);
89
+ outline-offset: 0;
90
+ }
91
+
92
+ &:user-invalid,
93
+ &[aria-invalid="true"],
94
+ &[data-invalid] {
95
+ border-color: var(--color-destructive);
96
+ outline-color: color-mix(in oklab, var(--color-destructive) 30%, transparent);
97
+ }
98
+
99
+ &:disabled,
100
+ &[data-disabled] {
101
+ opacity: 0.5;
102
+ cursor: not-allowed;
103
+ }
104
+
105
+ &[readonly] {
106
+ background-color: var(--color-muted);
107
+ }
108
+ }
109
+
110
+ @utility textarea {
111
+ @apply input;
112
+ min-height: calc(var(--text-body--line-height) * 4 + 1.25rem + 2px);
113
+ resize: vertical;
114
+ }
115
+
116
+ @utility select {
117
+ @apply input;
118
+ appearance: none;
119
+ padding-inline-end: 2.5rem;
120
+ cursor: pointer;
121
+ /* A chevron drawn in the text color, so it follows the theme. */
122
+ background-image:
123
+ linear-gradient(45deg, transparent 50%, currentColor 50%),
124
+ linear-gradient(135deg, currentColor 50%, transparent 50%);
125
+ background-position:
126
+ right 1.125rem center,
127
+ right 0.8125rem center;
128
+ background-size: 0.3125rem 0.3125rem;
129
+ background-repeat: no-repeat;
130
+
131
+ /* Where the browser supports a stylable <select>, its picker matches a popover and its
132
+ options are 44px rows. Elsewhere it's the native picker. */
133
+ @supports (appearance: base-select) {
134
+ &,
135
+ &::picker(select) {
136
+ appearance: base-select;
137
+ }
138
+
139
+ &::picker-icon {
140
+ display: none;
141
+ }
142
+
143
+ &::picker(select) {
144
+ margin-block: 0.25rem;
145
+ padding: 0.25rem;
146
+ border: 1px solid var(--color-border);
147
+ border-radius: var(--radius-lg);
148
+ background-color: var(--color-popover);
149
+ color: var(--color-popover-foreground);
150
+ box-shadow: var(--shadow-lg);
151
+ }
152
+
153
+ & option {
154
+ display: flex;
155
+ align-items: center;
156
+ gap: 0.5rem;
157
+ min-height: var(--size-control);
158
+ padding-inline: 0.75rem;
159
+ border-radius: var(--radius-md);
160
+ }
161
+
162
+ & option:hover,
163
+ & option:focus-visible {
164
+ background-color: var(--color-accent);
165
+ color: var(--color-accent-foreground);
166
+ }
167
+
168
+ & option::checkmark {
169
+ order: 1;
170
+ margin-inline-start: auto;
171
+ }
172
+ }
173
+ }