@leitware/composables 2.0.0 → 3.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 (91) hide show
  1. package/README.md +16 -0
  2. package/dist/presets/brutalist.css +16 -17
  3. package/dist/presets/default.css +11 -13
  4. package/dist/presets/editorial-grid.css +12 -13
  5. package/dist/presets/kumo.css +14 -20
  6. package/dist/presets/signal-pop.css +14 -26
  7. package/dist/styles.css +1 -1
  8. package/dist/tailwind.css +20 -0
  9. package/package.json +13 -12
  10. package/rules/composables.md +24 -21
  11. package/skills/use-composables/references/public-api.md +2 -2
  12. package/skills/use-composables/references/semantic-utilities.md +5 -0
  13. package/src/_internal/accordion.tsx +10 -10
  14. package/src/_internal/ai-elements/reasoning.tsx +2 -0
  15. package/src/_internal/alert-dialog.tsx +3 -3
  16. package/src/_internal/alert.tsx +9 -7
  17. package/src/_internal/avatar.tsx +25 -14
  18. package/src/_internal/badge.tsx +2 -1
  19. package/src/_internal/bubble.tsx +2 -2
  20. package/src/_internal/button.tsx +16 -8
  21. package/src/_internal/calendar.tsx +3 -3
  22. package/src/_internal/card.tsx +53 -17
  23. package/src/_internal/checkbox.tsx +2 -2
  24. package/src/_internal/combobox.tsx +2 -2
  25. package/src/_internal/dialog.tsx +29 -9
  26. package/src/_internal/divider.tsx +14 -16
  27. package/src/_internal/dropdown-menu.tsx +4 -4
  28. package/src/_internal/empty.tsx +6 -3
  29. package/src/_internal/field.tsx +11 -7
  30. package/src/_internal/hover-card.tsx +1 -1
  31. package/src/_internal/input-group.tsx +17 -12
  32. package/src/_internal/input.tsx +33 -4
  33. package/src/_internal/item.tsx +2 -2
  34. package/src/_internal/label.tsx +1 -1
  35. package/src/_internal/message.tsx +1 -1
  36. package/src/_internal/native-select.tsx +1 -1
  37. package/src/_internal/popover.tsx +9 -3
  38. package/src/_internal/progress.tsx +37 -7
  39. package/src/_internal/radio-group.tsx +39 -4
  40. package/src/_internal/select.tsx +2 -2
  41. package/src/_internal/separator.tsx +1 -1
  42. package/src/_internal/sheet.tsx +9 -3
  43. package/src/_internal/sidebar.tsx +0 -35
  44. package/src/_internal/skeleton.tsx +26 -3
  45. package/src/_internal/slider.tsx +9 -7
  46. package/src/_internal/sonner.tsx +4 -4
  47. package/src/_internal/spinner.tsx +43 -3
  48. package/src/_internal/switch.tsx +2 -2
  49. package/src/_internal/table.tsx +20 -5
  50. package/src/_internal/tabs.tsx +4 -1
  51. package/src/_internal/textarea.tsx +1 -1
  52. package/src/_internal/toggle.tsx +1 -1
  53. package/src/_internal/tooltip.tsx +53 -8
  54. package/src/_internal/typography.tsx +4 -2
  55. package/src/index.ts +25 -1
  56. package/src/lib/utils.ts +2 -2
  57. package/src/opinionated/alert.tsx +8 -10
  58. package/src/opinionated/avatar.tsx +2 -2
  59. package/src/opinionated/button.tsx +13 -3
  60. package/src/opinionated/command.tsx +23 -0
  61. package/src/opinionated/data-grid.tsx +125 -0
  62. package/src/opinionated/dialog.tsx +10 -1
  63. package/src/opinionated/form-calendar-popover.tsx +5 -10
  64. package/src/opinionated/form-checkbox.tsx +2 -2
  65. package/src/opinionated/form-date-of-birth.tsx +12 -8
  66. package/src/opinionated/form-input-group.tsx +1 -1
  67. package/src/opinionated/form-radiogroup.tsx +24 -7
  68. package/src/opinionated/form-switch.tsx +7 -6
  69. package/src/opinionated/progress.tsx +7 -2
  70. package/src/opinionated/select.tsx +4 -1
  71. package/src/opinionated/sidebar.tsx +0 -1
  72. package/src/opinionated/skeleton.tsx +3 -13
  73. package/src/opinionated/spinner.tsx +2 -0
  74. package/src/opinionated/token-config-panel/spacing-editor.tsx +21 -3
  75. package/src/opinionated/tooltip.tsx +20 -2
  76. package/src/styles/presets/brutalist.css +16 -17
  77. package/src/styles/presets/default.css +11 -13
  78. package/src/styles/presets/editorial-grid.css +12 -13
  79. package/src/styles/presets/kumo.css +14 -20
  80. package/src/styles/presets/signal-pop.css +14 -26
  81. package/src/styles/presets-data/brutalist.ts +16 -19
  82. package/src/styles/presets-data/default.ts +11 -15
  83. package/src/styles/presets-data/editorial-grid.ts +12 -6
  84. package/src/styles/presets-data/kumo.ts +12 -6
  85. package/src/styles/presets-data/signal-pop.ts +14 -30
  86. package/src/styles/tokens/components.css +64 -20
  87. package/src/styles/tokens/registry.ts +33 -0
  88. package/src/styles/tokens/semantic-utilities.css +20 -0
  89. package/src/styles/tokens/semantic.css +10 -0
  90. package/src/styles/tokens/tailwind-color-adapter.css +3 -0
  91. package/src/styles/tokens/tailwind-public-utilities.css +20 -0
@@ -23,6 +23,7 @@ export const signalPop: Record<string, string> = {
23
23
  '--bg-surface-popover': '#FFFFFFFF',
24
24
  '--bg-surface-accent': '#FF8BD3FF',
25
25
  '--bg-surface-field': '#E8EEF2FF',
26
+ '--bg-surface-input': '#E8EEF233', // surface-field at 20%
26
27
  '--bg-surface-info': '#D7F0FAFF',
27
28
  '--bg-surface-success': '#DEF6D8FF',
28
29
  '--bg-surface-warning': '#FFE8B5FF',
@@ -39,6 +40,8 @@ export const signalPop: Record<string, string> = {
39
40
  '--bg-surface-hover': '#E7EFF7FF',
40
41
  '--bg-fill-default': '#F4F5F1FF',
41
42
  '--bg-fill-primary': '#006FE6FF',
43
+ '--bg-fill-primary-hover': '#006FE6FF',
44
+ '--bg-fill-selected': '#006FE6FF',
42
45
  '--bg-fill-brand': '#006FE6FF',
43
46
  '--bg-fill-brand-2': '#EEFF00FF',
44
47
  '--bg-fill-brand-3': '#FF4DB8FF',
@@ -51,6 +54,7 @@ export const signalPop: Record<string, string> = {
51
54
  '--bg-fill-emphasis': '#7A5CFFFF',
52
55
  '--bg-fill-transparent': '#0B0B0F12',
53
56
  '--bg-fill-secondary': '#EEFF00FF',
57
+ '--bg-fill-secondary-hover': '#EEFF00FF',
54
58
  '--bg-fill-secondary-inverse': '#050507FF',
55
59
  '--text-default': '#0B0B0FFF',
56
60
  '--text-secondary': '#2B2D35FF',
@@ -58,6 +62,7 @@ export const signalPop: Record<string, string> = {
58
62
  '--text-disabled': '#B9BDC6FF',
59
63
  '--text-inverse': '#F9FAF2FF',
60
64
  '--text-on-fill-primary': '#FFFFFFFF',
65
+ '--text-on-fill-selected': '#FFFFFFFF',
61
66
  '--text-on-fill-brand': '#FFFFFFFF',
62
67
  '--text-on-fill-secondary': '#050507FF',
63
68
  '--text-on-surface-accent': '#0B0B0FFF',
@@ -143,7 +148,8 @@ export const signalPop: Record<string, string> = {
143
148
  '--card-radius': 'var(--radius-2xl)',
144
149
  '--card-padding': 'calc(var(--spacing) * 7)',
145
150
  '--input-radius': 'var(--radius-xl)',
146
- '--input-height': 'calc(var(--spacing) * 12)',
151
+ '--control-size-md': 'calc(var(--spacing) * 12)',
152
+ '--button-height': 'calc(var(--spacing) * 7)',
147
153
  '--badge-radius': 'var(--radius-4xl)',
148
154
  '--border-style': 'solid',
149
155
  '--focus-ring-color': '#FF4DB8FF',
@@ -173,20 +179,6 @@ export const signalPop: Record<string, string> = {
173
179
  '--transition-slow': 'var(--motion-duration-slow) var(--motion-ease-decelerate)',
174
180
  '--hover-shadow': 'none',
175
181
  '--active-scale': '0.96',
176
-
177
- // Typography composition tokens
178
- '--heading-font-weight': '700',
179
- '--heading-letter-spacing': 'var(--tracking-normal)',
180
- '--body-letter-spacing': 'var(--tracking-normal)',
181
- '--hero-font-size': 'var(--text-6xl)',
182
- '--hero-font-weight': '700',
183
- '--hero-letter-spacing': 'var(--tracking-normal)',
184
- '--section-title-size': 'var(--text-3xl)',
185
- '--section-title-font-weight': '700',
186
- '--section-title-letter-spacing': 'var(--tracking-normal)',
187
- '--card-title-size': 'var(--text-lg)',
188
- '--card-title-font-weight': '700',
189
- '--card-title-letter-spacing': 'var(--tracking-normal)',
190
182
  }
191
183
 
192
184
  export const signalPopDark: Record<string, string> = {
@@ -200,6 +192,7 @@ export const signalPopDark: Record<string, string> = {
200
192
  '--bg-surface-popover': '#050507FF',
201
193
  '--bg-surface-accent': '#351026FF',
202
194
  '--bg-surface-field': '#17191FFF',
195
+ '--bg-surface-input': '#17191F4D', // surface-field at 30%
203
196
  '--bg-surface-info': '#073348FF',
204
197
  '--bg-surface-success': '#0B3017FF',
205
198
  '--bg-surface-warning': '#342602FF',
@@ -216,6 +209,8 @@ export const signalPopDark: Record<string, string> = {
216
209
  '--bg-surface-hover': '#17191FFF',
217
210
  '--bg-fill-default': '#202124FF',
218
211
  '--bg-fill-primary': '#006FE6FF',
212
+ '--bg-fill-primary-hover': '#006FE6FF',
213
+ '--bg-fill-selected': '#006FE6FF',
219
214
  '--bg-fill-brand': '#006FE6FF',
220
215
  '--bg-fill-brand-2': '#EEFF00FF',
221
216
  '--bg-fill-brand-3': '#FF4DB8FF',
@@ -228,6 +223,7 @@ export const signalPopDark: Record<string, string> = {
228
223
  '--bg-fill-emphasis': '#9D86FFFF',
229
224
  '--bg-fill-transparent': '#FFFFFF12',
230
225
  '--bg-fill-secondary': '#EEFF00FF',
226
+ '--bg-fill-secondary-hover': '#EEFF00FF',
231
227
  '--bg-fill-secondary-inverse': '#050507FF',
232
228
  '--text-default': '#F7F8F2FF',
233
229
  '--text-secondary': '#D7DAD2FF',
@@ -235,6 +231,7 @@ export const signalPopDark: Record<string, string> = {
235
231
  '--text-disabled': '#5B606AFF',
236
232
  '--text-inverse': '#050507FF',
237
233
  '--text-on-fill-primary': '#FFFFFFFF',
234
+ '--text-on-fill-selected': '#FFFFFFFF',
238
235
  '--text-on-fill-brand': '#FFFFFFFF',
239
236
  '--text-on-fill-secondary': '#050507FF',
240
237
  '--text-on-surface-accent': '#F7F8F2FF',
@@ -320,7 +317,8 @@ export const signalPopDark: Record<string, string> = {
320
317
  '--card-radius': 'var(--radius-2xl)',
321
318
  '--card-padding': 'calc(var(--spacing) * 7)',
322
319
  '--input-radius': 'var(--radius-xl)',
323
- '--input-height': 'calc(var(--spacing) * 12)',
320
+ '--control-size-md': 'calc(var(--spacing) * 12)',
321
+ '--button-height': 'calc(var(--spacing) * 7)',
324
322
  '--badge-radius': 'var(--radius-4xl)',
325
323
  '--border-style': 'solid',
326
324
  '--focus-ring-color': '#FF4DB8FF',
@@ -350,18 +348,4 @@ export const signalPopDark: Record<string, string> = {
350
348
  '--transition-slow': 'var(--motion-duration-slow) var(--motion-ease-decelerate)',
351
349
  '--hover-shadow': 'none',
352
350
  '--active-scale': '0.96',
353
-
354
- // Typography composition tokens
355
- '--heading-font-weight': '700',
356
- '--heading-letter-spacing': 'var(--tracking-normal)',
357
- '--body-letter-spacing': 'var(--tracking-normal)',
358
- '--hero-font-size': 'var(--text-6xl)',
359
- '--hero-font-weight': '700',
360
- '--hero-letter-spacing': 'var(--tracking-normal)',
361
- '--section-title-size': 'var(--text-3xl)',
362
- '--section-title-font-weight': '700',
363
- '--section-title-letter-spacing': 'var(--tracking-normal)',
364
- '--card-title-size': 'var(--text-lg)',
365
- '--card-title-font-weight': '700',
366
- '--card-title-letter-spacing': 'var(--tracking-normal)',
367
351
  }
@@ -27,13 +27,13 @@
27
27
  --button-radius: var(--radius-md);
28
28
  --button-radius-xs: var(--button-radius);
29
29
  --button-radius-sm: var(--button-radius);
30
- --button-height: calc(var(--spacing) * 7);
30
+ --button-height: var(--control-size-md);
31
31
  --button-height-xs: calc(var(--spacing) * 5);
32
- --button-height-sm: calc(var(--spacing) * 6);
33
- --button-height-lg: calc(var(--spacing) * 8);
34
- --button-font-size: var(--text-xs);
32
+ --button-height-sm: var(--control-size-sm);
33
+ --button-height-lg: var(--control-size-lg);
34
+ --button-font-size: var(--control-font-size);
35
35
  --button-font-size-xs: var(--text-2xs);
36
- --button-font-size-sm: var(--text-xs);
36
+ --button-font-size-sm: var(--control-font-size);
37
37
  --button-gap: var(--spacing);
38
38
 
39
39
  /* Optional button finishes. `initial` makes var() use its fallback
@@ -108,7 +108,7 @@
108
108
  --layer-card-padding: var(--card-padding);
109
109
  --layer-card-shadow: var(--shadow-sm);
110
110
  --clipboard-text-radius: var(--input-radius);
111
- --clipboard-text-height: var(--input-height);
111
+ --clipboard-text-height: var(--control-size-md);
112
112
  --clipboard-text-height-sm: calc(var(--spacing) * 6.5);
113
113
  --clipboard-text-height-lg: calc(var(--spacing) * 10);
114
114
  --flow-border-width: max(1px, var(--border-width-base));
@@ -124,8 +124,17 @@
124
124
  --flow-canvas-background-size: calc(var(--spacing) * 4);
125
125
  --card-radius: var(--radius-lg);
126
126
  --card-padding: calc(var(--spacing) * 4);
127
+ --card-border-width: var(--border-width-base);
128
+ --alert-border-width: var(--border-width-base);
129
+ --alert-accent-width: 0px;
130
+ --dialog-radius: var(--radius-xl);
131
+ --dialog-max-width: 90vw;
132
+ --dialog-border-width: var(--border-width-base);
133
+ --tooltip-bg: var(--bg-surface-inverse);
134
+ --tooltip-fg: var(--text-inverse);
135
+ /* Hairline rules: dividers, separators, table and accordion rows. */
136
+ --rule-width: var(--border-width-base);
127
137
  --input-radius: var(--radius-md);
128
- --input-height: calc(var(--spacing) * 7);
129
138
  --badge-radius: var(--radius-4xl);
130
139
  --grid-overlay-color: color-mix(in srgb, var(--text-default) 6%, transparent);
131
140
 
@@ -138,6 +147,41 @@
138
147
  --tabs-indicator-border-width: var(--border-width-base);
139
148
  --tabs-indicator-shadow: var(--shadow-sm);
140
149
 
150
+ --switch-on-color: var(--primary);
151
+ /* Text buttons are at least this many times their height wide. */
152
+ --button-min-width-ratio: 1.75;
153
+ /* Track height; the thumb fills it less one spacing step, the track is twice as wide. */
154
+ --switch-height: calc(var(--spacing) * 4);
155
+ /* Slider track height; the thumb is the same size and sits inside it. */
156
+ --slider-size: calc(var(--spacing) * 5);
157
+ --slider-thumb-color: var(--background);
158
+ --slider-thumb-border: var(--primary);
159
+
160
+ /* ── Choice controls (checkbox, radio) ─────────────────────────────── */
161
+ --choice-size: calc(var(--spacing) * 4);
162
+ --choice-border-color: var(--border-secondary);
163
+ --checkbox-radius: var(--radius-sm);
164
+
165
+ /* ── Field labels ──────────────────────────────────────────────────── */
166
+ --label-font-size: var(--text-xs);
167
+ --label-color: currentColor;
168
+ --label-text-transform: none;
169
+
170
+ /* ── Control scale ─────────────────────────────────────────────────── */
171
+ /* One height scale shared by every control (buttons, inputs, selects),
172
+ picked by the component's size prop. Values must stay whole multiples
173
+ of --spacing and the font size a --text-* step: check-token-system
174
+ rejects anything else. */
175
+ --control-size-sm: calc(var(--spacing) * 6);
176
+ --control-size-md: calc(var(--spacing) * 7);
177
+ --control-size-lg: calc(var(--spacing) * 8);
178
+ --control-font-size: var(--text-xs);
179
+ /* Fields never shrink below this, however tight their container. */
180
+ --control-min-width: calc(var(--spacing) * 30);
181
+ /* Buttons inside an input group, and the even inset around them. */
182
+ --input-group-button-size: calc(var(--control-size-md) * 0.7);
183
+ --input-group-inset: calc((var(--control-size-md) - var(--input-group-button-size)) / 2);
184
+
141
185
  /* ── Motion ────────────────────────────────────────────────────────── */
142
186
  --motion-duration-fast: 100ms;
143
187
  --motion-duration-normal: 200ms;
@@ -157,19 +201,18 @@
157
201
  --hover-shadow: var(--shadow-md);
158
202
  --active-scale: 0.98;
159
203
 
160
- /* ── Typography composition ─────────────────────────────────────────── */
161
- --heading-font-weight: 700;
162
- --heading-letter-spacing: var(--tracking-tight);
163
- --body-letter-spacing: var(--tracking-normal);
164
- --hero-font-size: var(--text-5xl);
165
- --hero-font-weight: 700;
166
- --hero-letter-spacing: var(--tracking-tight);
167
- --section-title-size: var(--text-3xl);
168
- --section-title-font-weight: 700;
169
- --section-title-letter-spacing: var(--tracking-tight);
170
- --card-title-size: var(--text-lg);
171
- --card-title-font-weight: 600;
172
- --card-title-letter-spacing: var(--tracking-normal);
204
+ /* ── Type roles ────────────────────────────────────────────────────── */
205
+ /* Component copy picks a role, the preset picks the --text-* step.
206
+ body: running copy (cards, alerts, tooltips, tables, overlays)
207
+ title: card / popover / empty-state titles
208
+ heading: dialog, sheet and alert-dialog titles */
209
+ --body-font-size: var(--text-xs);
210
+ --title-font-size: var(--text-sm);
211
+ --heading-font-size: var(--text-sm);
212
+ /* Line heights travel with their role, as ratios of the font size. */
213
+ --body-line-height: var(--text-xs--line-height);
214
+ --title-line-height: var(--text-sm--line-height);
215
+ --heading-line-height: var(--text-sm--line-height);
173
216
 
174
217
  /* ── Border style ──────────────────────────────────────────────────── */
175
218
  --border-style: solid;
@@ -178,6 +221,7 @@
178
221
  --focus-ring-color: var(--ring);
179
222
  --focus-ring-width: calc(var(--border-width-base) * 2);
180
223
  --focus-ring-offset: 0px;
224
+ --focus-ring-opacity: 30%;
181
225
  --focus-ring-style: solid;
182
226
 
183
227
  /* ── Hover ring ────────────────────────────────────────────────────── */
@@ -125,6 +125,12 @@ export const semanticColorTokens: SemanticColorToken[] = [
125
125
  category: 'bg',
126
126
  label: 'surface-hover',
127
127
  },
128
+ {
129
+ cssVar: '--bg-surface-input',
130
+ reference: '{neutral.200}',
131
+ category: 'bg',
132
+ label: 'surface-input',
133
+ },
128
134
  {
129
135
  cssVar: '--bg-fill-default',
130
136
  reference: '{neutral.100}',
@@ -137,6 +143,12 @@ export const semanticColorTokens: SemanticColorToken[] = [
137
143
  category: 'bg',
138
144
  label: 'fill-primary',
139
145
  },
146
+ {
147
+ cssVar: '--bg-fill-primary-hover',
148
+ reference: '{neutral.900}',
149
+ category: 'bg',
150
+ label: 'fill-primary-hover',
151
+ },
140
152
  { cssVar: '--bg-fill-brand', reference: '{pink.800}', category: 'bg', label: 'fill-brand' },
141
153
  {
142
154
  cssVar: '--bg-fill-brand-2',
@@ -179,6 +191,18 @@ export const semanticColorTokens: SemanticColorToken[] = [
179
191
  category: 'bg',
180
192
  label: 'fill-secondary',
181
193
  },
194
+ {
195
+ cssVar: '--bg-fill-secondary-hover',
196
+ reference: '{neutral.900}',
197
+ category: 'bg',
198
+ label: 'fill-secondary-hover',
199
+ },
200
+ {
201
+ cssVar: '--bg-fill-selected',
202
+ reference: '{neutral.1000}',
203
+ category: 'bg',
204
+ label: 'fill-selected',
205
+ },
182
206
  {
183
207
  cssVar: '--bg-fill-secondary-inverse',
184
208
  reference: '{base.white}',
@@ -220,6 +244,12 @@ export const semanticColorTokens: SemanticColorToken[] = [
220
244
  category: 'text',
221
245
  label: 'on-fill-secondary',
222
246
  },
247
+ {
248
+ cssVar: '--text-on-fill-selected',
249
+ reference: '{neutral.0}',
250
+ category: 'text',
251
+ label: 'on-fill-selected',
252
+ },
223
253
  {
224
254
  cssVar: '--text-on-surface-accent',
225
255
  reference: '{neutral.1000}',
@@ -345,6 +375,8 @@ export const tailwindColorAliases: TailwindColorAlias[] = [
345
375
  { cssVar: '--color-field', target: '--border-secondary' },
346
376
  { cssVar: '--color-focus', target: '--border-focus' },
347
377
  { cssVar: '--color-fill-critical', target: '--bg-fill-critical' },
378
+ { cssVar: '--color-selected', target: '--bg-fill-selected' },
379
+ { cssVar: '--color-selected-foreground', target: '--text-on-fill-selected' },
348
380
  { cssVar: '--color-sidebar-stroke', target: '--border-default' },
349
381
  { cssVar: '--color-chart-1', target: '--chart-1' },
350
382
  { cssVar: '--color-chart-2', target: '--chart-2' },
@@ -367,6 +399,7 @@ export const tailwindColorAliases: TailwindColorAlias[] = [
367
399
  { cssVar: '--color-surface-critical', target: '--bg-surface-critical' },
368
400
  { cssVar: '--color-surface-info', target: '--bg-surface-info' },
369
401
  { cssVar: '--color-surface-emphasis', target: '--bg-surface-emphasis' },
402
+ { cssVar: '--color-surface-input', target: '--bg-surface-input' },
370
403
  { cssVar: '--color-surface-brand', target: '--bg-surface-brand' },
371
404
  { cssVar: '--color-surface-brand-2', target: '--bg-surface-brand-2' },
372
405
  { cssVar: '--color-surface-brand-3', target: '--bg-surface-brand-3' },
@@ -93,6 +93,10 @@
93
93
  background-color: var(--bg-surface-hover);
94
94
  }
95
95
 
96
+ .bg-surface-input {
97
+ background-color: var(--bg-surface-input);
98
+ }
99
+
96
100
  .bg-fill-default {
97
101
  background-color: var(--bg-fill-default);
98
102
  }
@@ -101,6 +105,10 @@
101
105
  background-color: var(--bg-fill-primary);
102
106
  }
103
107
 
108
+ .bg-fill-primary-hover {
109
+ background-color: var(--bg-fill-primary-hover);
110
+ }
111
+
104
112
  .bg-fill-brand {
105
113
  background-color: var(--bg-fill-brand);
106
114
  }
@@ -149,6 +157,14 @@
149
157
  background-color: var(--bg-fill-secondary);
150
158
  }
151
159
 
160
+ .bg-fill-secondary-hover {
161
+ background-color: var(--bg-fill-secondary-hover);
162
+ }
163
+
164
+ .bg-fill-selected {
165
+ background-color: var(--bg-fill-selected);
166
+ }
167
+
152
168
  .bg-fill-secondary-inverse {
153
169
  background-color: var(--bg-fill-secondary-inverse);
154
170
  }
@@ -185,6 +201,10 @@
185
201
  color: var(--text-on-fill-secondary);
186
202
  }
187
203
 
204
+ .text-on-fill-selected {
205
+ color: var(--text-on-fill-selected);
206
+ }
207
+
188
208
  .text-on-surface-accent {
189
209
  color: var(--text-on-surface-accent);
190
210
  }
@@ -41,8 +41,10 @@
41
41
  --bg-surface-brand-4: #e0e8f8ff;
42
42
  --bg-surface-brand-5: #e8f0e8ff;
43
43
  --bg-surface-hover: #efefefff;
44
+ --bg-surface-input: #2e2e2e33;
44
45
  --bg-fill-default: #f8f8f8ff;
45
46
  --bg-fill-primary: #0a0a0aff;
47
+ --bg-fill-primary-hover: #0a0a0aff;
46
48
  --bg-fill-brand: #e87000ff;
47
49
  --bg-fill-brand-2: #0a8080ff;
48
50
  --bg-fill-brand-3: #c89030ff;
@@ -55,6 +57,8 @@
55
57
  --bg-fill-emphasis: #0a0a0aff;
56
58
  --bg-fill-transparent: #00000010;
57
59
  --bg-fill-secondary: #efefefff;
60
+ --bg-fill-secondary-hover: #efefefff;
61
+ --bg-fill-selected: #0a0a0aff;
58
62
  --bg-fill-secondary-inverse: #f8f8f8ff;
59
63
 
60
64
  /* ── Text ──────────────────────────────────────────────────────────── */
@@ -66,6 +70,7 @@
66
70
  --text-on-fill-primary: #f8f8f8ff;
67
71
  --text-on-fill-brand: #0a0a0aff;
68
72
  --text-on-fill-secondary: #0a0a0aff;
73
+ --text-on-fill-selected: #f8f8f8ff;
69
74
  --text-on-surface-accent: #0a0a0aff;
70
75
  --text-info: #001e5eff;
71
76
  --text-success: #003a00ff;
@@ -174,8 +179,10 @@
174
179
  --bg-surface-brand-4: #0a101eff;
175
180
  --bg-surface-brand-5: #0a1a10ff;
176
181
  --bg-surface-hover: #1a1a1aff;
182
+ --bg-surface-input: #8888884d;
177
183
  --bg-fill-default: #0a0a0aff;
178
184
  --bg-fill-primary: #f0f0f0ff;
185
+ --bg-fill-primary-hover: #f0f0f0ff;
179
186
  --bg-fill-brand: #88cc00ff;
180
187
  --bg-fill-brand-2: #22aaaaff;
181
188
  --bg-fill-brand-3: #d09830ff;
@@ -188,6 +195,8 @@
188
195
  --bg-fill-emphasis: #f0f0f0ff;
189
196
  --bg-fill-transparent: #ffffff10;
190
197
  --bg-fill-secondary: #141414ff;
198
+ --bg-fill-secondary-hover: #141414ff;
199
+ --bg-fill-selected: #f0f0f0ff;
191
200
  --bg-fill-secondary-inverse: #0a0a0aff;
192
201
 
193
202
  /* ── Text ──────────────────────────────────────────────────────────── */
@@ -199,6 +208,7 @@
199
208
  --text-on-fill-primary: #0a0a0aff;
200
209
  --text-on-fill-brand: #0a0a0aff;
201
210
  --text-on-fill-secondary: #f0f0f0ff;
211
+ --text-on-fill-selected: #0a0a0aff;
202
212
  --text-on-surface-accent: #f0f0f0ff;
203
213
  --text-info: #99bbffff;
204
214
  --text-success: #77dd77ff;
@@ -42,6 +42,8 @@
42
42
  --color-field: var(--border-secondary);
43
43
  --color-focus: var(--border-focus);
44
44
  --color-fill-critical: var(--bg-fill-critical);
45
+ --color-selected: var(--bg-fill-selected);
46
+ --color-selected-foreground: var(--text-on-fill-selected);
45
47
  --color-sidebar-stroke: var(--border-default);
46
48
  --color-chart-1: var(--chart-1);
47
49
  --color-chart-2: var(--chart-2);
@@ -64,6 +66,7 @@
64
66
  --color-surface-critical: var(--bg-surface-critical);
65
67
  --color-surface-info: var(--bg-surface-info);
66
68
  --color-surface-emphasis: var(--bg-surface-emphasis);
69
+ --color-surface-input: var(--bg-surface-input);
67
70
  --color-surface-brand: var(--bg-surface-brand);
68
71
  --color-surface-brand-2: var(--bg-surface-brand-2);
69
72
  --color-surface-brand-3: var(--bg-surface-brand-3);
@@ -91,6 +91,10 @@
91
91
  background-color: var(--bg-surface-hover);
92
92
  }
93
93
 
94
+ @utility bg-surface-input {
95
+ background-color: var(--bg-surface-input);
96
+ }
97
+
94
98
  @utility bg-fill-default {
95
99
  background-color: var(--bg-fill-default);
96
100
  }
@@ -99,6 +103,10 @@
99
103
  background-color: var(--bg-fill-primary);
100
104
  }
101
105
 
106
+ @utility bg-fill-primary-hover {
107
+ background-color: var(--bg-fill-primary-hover);
108
+ }
109
+
102
110
  @utility bg-fill-brand {
103
111
  background-color: var(--bg-fill-brand);
104
112
  }
@@ -147,6 +155,14 @@
147
155
  background-color: var(--bg-fill-secondary);
148
156
  }
149
157
 
158
+ @utility bg-fill-secondary-hover {
159
+ background-color: var(--bg-fill-secondary-hover);
160
+ }
161
+
162
+ @utility bg-fill-selected {
163
+ background-color: var(--bg-fill-selected);
164
+ }
165
+
150
166
  @utility bg-fill-secondary-inverse {
151
167
  background-color: var(--bg-fill-secondary-inverse);
152
168
  }
@@ -183,6 +199,10 @@
183
199
  color: var(--text-on-fill-secondary);
184
200
  }
185
201
 
202
+ @utility text-on-fill-selected {
203
+ color: var(--text-on-fill-selected);
204
+ }
205
+
186
206
  @utility text-on-surface-accent {
187
207
  color: var(--text-on-surface-accent);
188
208
  }