@leitware/composables 2.0.0 → 3.0.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 (88) 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 +7 -7
  10. package/rules/composables.md +10 -9
  11. package/skills/use-composables/references/public-api.md +1 -1
  12. package/skills/use-composables/references/semantic-utilities.md +5 -0
  13. package/src/_internal/accordion.tsx +10 -10
  14. package/src/_internal/alert-dialog.tsx +3 -3
  15. package/src/_internal/alert.tsx +9 -7
  16. package/src/_internal/avatar.tsx +25 -14
  17. package/src/_internal/badge.tsx +2 -1
  18. package/src/_internal/bubble.tsx +2 -2
  19. package/src/_internal/button.tsx +16 -8
  20. package/src/_internal/calendar.tsx +3 -3
  21. package/src/_internal/card.tsx +53 -17
  22. package/src/_internal/checkbox.tsx +2 -2
  23. package/src/_internal/combobox.tsx +2 -2
  24. package/src/_internal/dialog.tsx +29 -9
  25. package/src/_internal/divider.tsx +14 -16
  26. package/src/_internal/dropdown-menu.tsx +4 -4
  27. package/src/_internal/empty.tsx +6 -3
  28. package/src/_internal/field.tsx +11 -7
  29. package/src/_internal/hover-card.tsx +1 -1
  30. package/src/_internal/input-group.tsx +17 -12
  31. package/src/_internal/input.tsx +33 -4
  32. package/src/_internal/item.tsx +2 -2
  33. package/src/_internal/label.tsx +1 -1
  34. package/src/_internal/message.tsx +1 -1
  35. package/src/_internal/native-select.tsx +1 -1
  36. package/src/_internal/popover.tsx +9 -3
  37. package/src/_internal/progress.tsx +37 -7
  38. package/src/_internal/radio-group.tsx +39 -4
  39. package/src/_internal/select.tsx +2 -2
  40. package/src/_internal/separator.tsx +1 -1
  41. package/src/_internal/sheet.tsx +9 -3
  42. package/src/_internal/sidebar.tsx +0 -35
  43. package/src/_internal/skeleton.tsx +26 -3
  44. package/src/_internal/slider.tsx +9 -7
  45. package/src/_internal/sonner.tsx +4 -4
  46. package/src/_internal/spinner.tsx +43 -3
  47. package/src/_internal/switch.tsx +2 -2
  48. package/src/_internal/table.tsx +20 -5
  49. package/src/_internal/tabs.tsx +4 -1
  50. package/src/_internal/textarea.tsx +1 -1
  51. package/src/_internal/toggle.tsx +1 -1
  52. package/src/_internal/tooltip.tsx +53 -8
  53. package/src/_internal/typography.tsx +4 -2
  54. package/src/index.ts +2 -1
  55. package/src/lib/utils.ts +2 -2
  56. package/src/opinionated/alert.tsx +8 -10
  57. package/src/opinionated/avatar.tsx +2 -2
  58. package/src/opinionated/button.tsx +13 -3
  59. package/src/opinionated/dialog.tsx +10 -1
  60. package/src/opinionated/form-calendar-popover.tsx +5 -10
  61. package/src/opinionated/form-checkbox.tsx +2 -2
  62. package/src/opinionated/form-date-of-birth.tsx +12 -8
  63. package/src/opinionated/form-input-group.tsx +1 -1
  64. package/src/opinionated/form-radiogroup.tsx +24 -7
  65. package/src/opinionated/form-switch.tsx +7 -6
  66. package/src/opinionated/progress.tsx +7 -2
  67. package/src/opinionated/select.tsx +4 -1
  68. package/src/opinionated/sidebar.tsx +0 -1
  69. package/src/opinionated/skeleton.tsx +3 -13
  70. package/src/opinionated/spinner.tsx +2 -0
  71. package/src/opinionated/token-config-panel/spacing-editor.tsx +21 -3
  72. package/src/opinionated/tooltip.tsx +20 -2
  73. package/src/styles/presets/brutalist.css +16 -17
  74. package/src/styles/presets/default.css +11 -13
  75. package/src/styles/presets/editorial-grid.css +12 -13
  76. package/src/styles/presets/kumo.css +14 -20
  77. package/src/styles/presets/signal-pop.css +14 -26
  78. package/src/styles/presets-data/brutalist.ts +16 -19
  79. package/src/styles/presets-data/default.ts +11 -15
  80. package/src/styles/presets-data/editorial-grid.ts +12 -6
  81. package/src/styles/presets-data/kumo.ts +12 -6
  82. package/src/styles/presets-data/signal-pop.ts +14 -30
  83. package/src/styles/tokens/components.css +64 -20
  84. package/src/styles/tokens/registry.ts +33 -0
  85. package/src/styles/tokens/semantic-utilities.css +20 -0
  86. package/src/styles/tokens/semantic.css +10 -0
  87. package/src/styles/tokens/tailwind-color-adapter.css +3 -0
  88. package/src/styles/tokens/tailwind-public-utilities.css +20 -0
@@ -96,13 +96,31 @@ export const controlShapeTokens: FactorToken[] = [
96
96
 
97
97
  export const controlSizeTokens: FactorToken[] = [
98
98
  {
99
- cssVar: '--input-height',
100
- label: 'Input height',
99
+ cssVar: '--control-size-sm',
100
+ label: 'Control height (sm)',
101
+ base: '--spacing',
102
+ defaultFactor: 6,
103
+ min: 4,
104
+ max: 14,
105
+ step: 1,
106
+ },
107
+ {
108
+ cssVar: '--control-size-md',
109
+ label: 'Control height (md)',
101
110
  base: '--spacing',
102
111
  defaultFactor: 7,
103
112
  min: 5,
104
113
  max: 14,
105
- step: 0.5,
114
+ step: 1,
115
+ },
116
+ {
117
+ cssVar: '--control-size-lg',
118
+ label: 'Control height (lg)',
119
+ base: '--spacing',
120
+ defaultFactor: 8,
121
+ min: 6,
122
+ max: 16,
123
+ step: 1,
106
124
  },
107
125
  {
108
126
  cssVar: '--card-padding',
@@ -1,7 +1,14 @@
1
1
  import type { Tooltip as TooltipPrimitiveBase } from '@base-ui/react/tooltip'
2
+ import type { VariantProps } from 'class-variance-authority'
2
3
  import type * as React from 'react'
3
4
 
4
- import { TooltipContent, Tooltip as TooltipPrimitive, TooltipTrigger } from '../_internal/tooltip'
5
+ import {
6
+ TooltipContent,
7
+ Tooltip as TooltipPrimitive,
8
+ TooltipTrigger,
9
+ type tooltipContentVariants,
10
+ type tooltipTriggerVariants,
11
+ } from '../_internal/tooltip'
5
12
 
6
13
  /**
7
14
  * Props for the opinionated Tooltip component.
@@ -15,11 +22,19 @@ import { TooltipContent, Tooltip as TooltipPrimitive, TooltipTrigger } from '../
15
22
  * <Tooltip content="Requires admin access" side="right">
16
23
  * <span>Restricted action</span>
17
24
  * </Tooltip>
25
+ *
26
+ * <Tooltip content="Your excess is what you pay towards a claim" variant="inverse" triggerVariant="underline">
27
+ * excess
28
+ * </Tooltip>
18
29
  * ```
19
30
  */
20
31
  export interface TooltipProps extends Omit<TooltipPrimitiveBase.Root.Props, 'children'> {
21
32
  /** Content shown in the tooltip popup. */
22
33
  content: React.ReactNode
34
+ /** Popup colour. `default` follows the preset. @default 'default' */
35
+ variant?: VariantProps<typeof tooltipContentVariants>['variant']
36
+ /** `underline` marks inline text that has a tooltip. @default 'default' */
37
+ triggerVariant?: VariantProps<typeof tooltipTriggerVariants>['variant']
23
38
  className?: string
24
39
  /** Which side of the trigger the tooltip appears on. @default 'top' */
25
40
  side?: 'top' | 'bottom' | 'left' | 'right'
@@ -32,6 +47,8 @@ export interface TooltipProps extends Omit<TooltipPrimitiveBase.Root.Props, 'chi
32
47
 
33
48
  function Tooltip({
34
49
  content,
50
+ variant,
51
+ triggerVariant,
35
52
  className,
36
53
  side = 'top',
37
54
  sideOffset = 4,
@@ -42,9 +59,10 @@ function Tooltip({
42
59
  }: TooltipProps) {
43
60
  return (
44
61
  <TooltipPrimitive {...tooltipProps}>
45
- <TooltipTrigger>{children}</TooltipTrigger>
62
+ <TooltipTrigger variant={triggerVariant}>{children}</TooltipTrigger>
46
63
  <TooltipContent
47
64
  className={className}
65
+ variant={variant}
48
66
  side={side}
49
67
  sideOffset={sideOffset}
50
68
  align={align}
@@ -17,6 +17,7 @@
17
17
  --bg-surface-popover: #ffffffff;
18
18
  --bg-surface-accent: #f0f0f0ff;
19
19
  --bg-surface-field: #0a0a0aff;
20
+ --bg-surface-input: #0a0a0a33;
20
21
  --bg-surface-info: #e8f0f8ff;
21
22
  --bg-surface-success: #e8f4e8ff;
22
23
  --bg-surface-warning: #fbf4e0ff;
@@ -33,6 +34,8 @@
33
34
  --bg-surface-hover: #f0f0f0ff;
34
35
  --bg-fill-default: #ffffffff;
35
36
  --bg-fill-primary: #0a0a0aff;
37
+ --bg-fill-primary-hover: #0a0a0aff;
38
+ --bg-fill-selected: #0a0a0aff;
36
39
  --bg-fill-brand: #cc2200ff;
37
40
  --bg-fill-brand-2: #111111ff;
38
41
  --bg-fill-brand-3: #ffd700ff;
@@ -45,6 +48,7 @@
45
48
  --bg-fill-emphasis: #0a0a0aff;
46
49
  --bg-fill-transparent: #00000010;
47
50
  --bg-fill-secondary: #f0f0f0ff;
51
+ --bg-fill-secondary-hover: #f0f0f0ff;
48
52
  --bg-fill-secondary-inverse: #ffffffff;
49
53
  --text-default: #0a0a0aff;
50
54
  --text-secondary: #2e2e2eff;
@@ -52,6 +56,7 @@
52
56
  --text-disabled: #aaaaaaff;
53
57
  --text-inverse: #f8f8f8ff;
54
58
  --text-on-fill-primary: #ffffffff;
59
+ --text-on-fill-selected: #ffffffff;
55
60
  --text-on-fill-brand: #ffffffff;
56
61
  --text-on-fill-secondary: #0a0a0aff;
57
62
  --text-on-surface-accent: #0a0a0aff;
@@ -131,12 +136,13 @@
131
136
  --font-sans: 'JetBrains Mono Variable', monospace;
132
137
  --font-heading: 'Space Grotesk Variable', 'Arial', sans-serif;
133
138
  --font-brand: 'Space Grotesk Variable', 'Arial', sans-serif;
134
- --button-radius: 0px;
135
- --card-radius: 0px;
139
+ --button-radius: var(--radius);
140
+ --card-radius: var(--radius);
136
141
  --card-padding: calc(var(--spacing) * 6);
137
- --input-radius: 0px;
138
- --input-height: calc(var(--spacing) * 10);
139
- --badge-radius: 0px;
142
+ --input-radius: var(--radius);
143
+ --control-size-md: calc(var(--spacing) * 10);
144
+ --button-height: calc(var(--spacing) * 7);
145
+ --badge-radius: var(--radius);
140
146
  --motion-duration-fast: 0ms;
141
147
  --motion-duration-normal: 0ms;
142
148
  --motion-duration-slow: 50ms;
@@ -154,18 +160,6 @@
154
160
  --hover-transform: none;
155
161
  --hover-shadow: none;
156
162
  --active-scale: 0.98;
157
- --heading-font-weight: 700;
158
- --heading-letter-spacing: var(--tracking-tight);
159
- --body-letter-spacing: var(--tracking-normal);
160
- --hero-font-size: var(--text-6xl);
161
- --hero-font-weight: 700;
162
- --hero-letter-spacing: var(--tracking-tight);
163
- --section-title-size: var(--text-3xl);
164
- --section-title-font-weight: 700;
165
- --section-title-letter-spacing: var(--tracking-tight);
166
- --card-title-size: var(--text-base);
167
- --card-title-font-weight: 700;
168
- --card-title-letter-spacing: var(--tracking-normal);
169
163
  --background: var(--bg-default);
170
164
  --foreground: var(--text-default);
171
165
  --card: var(--bg-surface-default);
@@ -194,6 +188,7 @@
194
188
  --bg-surface-popover: #141414ff;
195
189
  --bg-surface-accent: #1a1a1aff;
196
190
  --bg-surface-field: #c0c0c0ff;
191
+ --bg-surface-input: #c0c0c04d;
197
192
  --bg-surface-info: #0a1828ff;
198
193
  --bg-surface-success: #0a180aff;
199
194
  --bg-surface-warning: #1e1406ff;
@@ -210,6 +205,8 @@
210
205
  --bg-surface-hover: #1a1a1aff;
211
206
  --bg-fill-default: #0a0a0aff;
212
207
  --bg-fill-primary: #f0f0f0ff;
208
+ --bg-fill-primary-hover: #f0f0f0ff;
209
+ --bg-fill-selected: #f0f0f0ff;
213
210
  --bg-fill-brand: #ff3322ff;
214
211
  --bg-fill-brand-2: #f0f0f0ff;
215
212
  --bg-fill-brand-3: #ffe033ff;
@@ -222,6 +219,7 @@
222
219
  --bg-fill-emphasis: #f0f0f0ff;
223
220
  --bg-fill-transparent: #ffffff10;
224
221
  --bg-fill-secondary: #1a1a1aff;
222
+ --bg-fill-secondary-hover: #1a1a1aff;
225
223
  --bg-fill-secondary-inverse: #0a0a0aff;
226
224
  --text-default: #f0f0f0ff;
227
225
  --text-secondary: #c0c0c0ff;
@@ -229,6 +227,7 @@
229
227
  --text-disabled: #444444ff;
230
228
  --text-inverse: #0a0a0aff;
231
229
  --text-on-fill-primary: #0a0a0aff;
230
+ --text-on-fill-selected: #0a0a0aff;
232
231
  --text-on-fill-brand: #000000ff;
233
232
  --text-on-fill-secondary: #f0f0f0ff;
234
233
  --text-on-surface-accent: #f0f0f0ff;
@@ -17,6 +17,7 @@
17
17
  --bg-surface-popover: #f9f9f8ff;
18
18
  --bg-surface-accent: #f1f0efff;
19
19
  --bg-surface-field: #dad9d6ff;
20
+ --bg-surface-input: #dad9d633;
20
21
  --bg-surface-info: #f1fafdff;
21
22
  --bg-surface-success: #f5fbf5ff;
22
23
  --bg-surface-warning: #fff7edff;
@@ -33,6 +34,8 @@
33
34
  --bg-surface-hover: #f1f0efff;
34
35
  --bg-fill-default: #f9f9f8ff;
35
36
  --bg-fill-primary: #21201cff;
37
+ --bg-fill-primary-hover: #21201cff;
38
+ --bg-fill-selected: #21201cff;
36
39
  --bg-fill-brand: #d6409fff;
37
40
  --bg-fill-brand-2: #12a594ff;
38
41
  --bg-fill-brand-3: #ffc53dff;
@@ -45,6 +48,7 @@
45
48
  --bg-fill-emphasis: #0090ffff;
46
49
  --bg-fill-transparent: #0000000d;
47
50
  --bg-fill-secondary: #f1f0efff;
51
+ --bg-fill-secondary-hover: #f1f0efff;
48
52
  --bg-fill-secondary-inverse: #ffffffff;
49
53
  --text-default: #21201cff;
50
54
  --text-secondary: #63635eff;
@@ -52,6 +56,7 @@
52
56
  --text-disabled: #cfcecaff;
53
57
  --text-inverse: #ffffffff;
54
58
  --text-on-fill-primary: #ffffffff;
59
+ --text-on-fill-selected: #ffffffff;
55
60
  --text-on-fill-brand: #000000ff;
56
61
  --text-on-fill-secondary: #21201cff;
57
62
  --text-on-surface-accent: #21201cff;
@@ -135,7 +140,7 @@
135
140
  --card-radius: var(--radius-lg);
136
141
  --card-padding: calc(var(--spacing) * 4);
137
142
  --input-radius: var(--radius-md);
138
- --input-height: calc(var(--spacing) * 7);
143
+ --control-size-md: calc(var(--spacing) * 7);
139
144
  --badge-radius: var(--radius-4xl);
140
145
  --motion-duration-fast: 100ms;
141
146
  --motion-duration-normal: 200ms;
@@ -154,18 +159,6 @@
154
159
  --hover-transform: none;
155
160
  --hover-shadow: var(--shadow-md);
156
161
  --active-scale: 0.98;
157
- --heading-font-weight: 700;
158
- --heading-letter-spacing: var(--tracking-tight);
159
- --body-letter-spacing: var(--tracking-normal);
160
- --hero-font-size: var(--text-5xl);
161
- --hero-font-weight: 700;
162
- --hero-letter-spacing: var(--tracking-tight);
163
- --section-title-size: var(--text-3xl);
164
- --section-title-font-weight: 700;
165
- --section-title-letter-spacing: var(--tracking-tight);
166
- --card-title-size: var(--text-lg);
167
- --card-title-font-weight: 600;
168
- --card-title-letter-spacing: var(--tracking-normal);
169
162
  --background: var(--bg-default);
170
163
  --foreground: var(--text-default);
171
164
  --card: var(--bg-surface-default);
@@ -194,6 +187,7 @@
194
187
  --bg-surface-popover: #191918ff;
195
188
  --bg-surface-accent: #222221ff;
196
189
  --bg-surface-field: #494844ff;
190
+ --bg-surface-input: #4948444d;
197
191
  --bg-surface-info: #111a27ff;
198
192
  --bg-surface-success: #141a15ff;
199
193
  --bg-surface-warning: #1e160fff;
@@ -210,6 +204,8 @@
210
204
  --bg-surface-hover: #222221ff;
211
205
  --bg-fill-default: #191918ff;
212
206
  --bg-fill-primary: #eeeeecff;
207
+ --bg-fill-primary-hover: #eeeeecff;
208
+ --bg-fill-selected: #eeeeecff;
213
209
  --bg-fill-brand: #d6409fff;
214
210
  --bg-fill-brand-2: #12a594ff;
215
211
  --bg-fill-brand-3: #ffc53dff;
@@ -222,6 +218,7 @@
222
218
  --bg-fill-emphasis: #0090ffff;
223
219
  --bg-fill-transparent: #0000000d;
224
220
  --bg-fill-secondary: #222221ff;
221
+ --bg-fill-secondary-hover: #222221ff;
225
222
  --bg-fill-secondary-inverse: #000000ff;
226
223
  --text-default: #eeeeecff;
227
224
  --text-secondary: #b5b3adff;
@@ -229,6 +226,7 @@
229
226
  --text-disabled: #494844ff;
230
227
  --text-inverse: #000000ff;
231
228
  --text-on-fill-primary: #000000ff;
229
+ --text-on-fill-selected: #000000ff;
232
230
  --text-on-fill-brand: #000000ff;
233
231
  --text-on-fill-secondary: #eeeeecff;
234
232
  --text-on-surface-accent: #eeeeecff;
@@ -17,6 +17,7 @@
17
17
  --bg-surface-popover: #ffffff;
18
18
  --bg-surface-accent: #efefeb;
19
19
  --bg-surface-field: #e7e7e1;
20
+ --bg-surface-input: #e7e7e133;
20
21
  --bg-surface-info: #eef6ff;
21
22
  --bg-surface-success: #eefaf1;
22
23
  --bg-surface-warning: #fff9e8;
@@ -33,6 +34,8 @@
33
34
  --bg-surface-hover: #ecece7;
34
35
  --bg-fill-default: #f7f7f3;
35
36
  --bg-fill-primary: #111111;
37
+ --bg-fill-primary-hover: #111111;
38
+ --bg-fill-selected: #111111;
36
39
  --bg-fill-brand: #21e36b;
37
40
  --bg-fill-brand-2: #ffe14a;
38
41
  --bg-fill-brand-3: #58a7f8;
@@ -45,6 +48,7 @@
45
48
  --bg-fill-emphasis: #3c8ee6;
46
49
  --bg-fill-transparent: #00000008;
47
50
  --bg-fill-secondary: #efefeb;
51
+ --bg-fill-secondary-hover: #efefeb;
48
52
  --bg-fill-secondary-inverse: #ffffff;
49
53
  --text-default: #111111;
50
54
  --text-secondary: #555550;
@@ -52,6 +56,7 @@
52
56
  --text-disabled: #b7b7b0;
53
57
  --text-inverse: #ffffff;
54
58
  --text-on-fill-primary: #ffffff;
59
+ --text-on-fill-selected: #ffffff;
55
60
  --text-on-fill-brand: #111111;
56
61
  --text-on-fill-secondary: #111111;
57
62
  --text-on-surface-accent: #111111;
@@ -135,7 +140,7 @@
135
140
  --card-radius: var(--radius);
136
141
  --card-padding: calc(var(--spacing) * 6);
137
142
  --input-radius: var(--radius);
138
- --input-height: calc(var(--spacing) * 10);
143
+ --control-size-md: calc(var(--spacing) * 10);
139
144
  --badge-radius: var(--radius);
140
145
  --motion-duration-fast: 100ms;
141
146
  --motion-duration-normal: 150ms;
@@ -154,18 +159,7 @@
154
159
  --hover-transform: none;
155
160
  --hover-shadow: none;
156
161
  --active-scale: 0.98;
157
- --heading-font-weight: 700;
158
- --heading-letter-spacing: var(--tracking-tight);
159
- --body-letter-spacing: var(--tracking-normal);
160
- --hero-font-size: var(--text-6xl);
161
- --hero-font-weight: 700;
162
- --hero-letter-spacing: var(--tracking-tight);
163
- --section-title-size: var(--text-3xl);
164
- --section-title-font-weight: 700;
165
- --section-title-letter-spacing: var(--tracking-tight);
166
- --card-title-size: var(--text-lg);
167
- --card-title-font-weight: 600;
168
- --card-title-letter-spacing: var(--tracking-normal);
162
+ --button-height: calc(var(--spacing) * 7);
169
163
  --background: var(--bg-default);
170
164
  --foreground: var(--text-default);
171
165
  --card: var(--bg-surface-default);
@@ -194,6 +188,7 @@
194
188
  --bg-surface-popover: #191918;
195
189
  --bg-surface-accent: #1e1e1c;
196
190
  --bg-surface-field: #262624;
191
+ --bg-surface-input: #2626244d;
197
192
  --bg-surface-info: #132332;
198
193
  --bg-surface-success: #14251a;
199
194
  --bg-surface-warning: #2a2412;
@@ -210,6 +205,8 @@
210
205
  --bg-surface-hover: #20201e;
211
206
  --bg-fill-default: #111111;
212
207
  --bg-fill-primary: #f7f7f3;
208
+ --bg-fill-primary-hover: #f7f7f3;
209
+ --bg-fill-selected: #f7f7f3;
213
210
  --bg-fill-brand: #21e36b;
214
211
  --bg-fill-brand-2: #ffe14a;
215
212
  --bg-fill-brand-3: #58a7f8;
@@ -222,6 +219,7 @@
222
219
  --bg-fill-emphasis: #58a7f8;
223
220
  --bg-fill-transparent: #ffffff0d;
224
221
  --bg-fill-secondary: #1e1e1c;
222
+ --bg-fill-secondary-hover: #1e1e1c;
225
223
  --bg-fill-secondary-inverse: #111111;
226
224
  --text-default: #f7f7f3;
227
225
  --text-secondary: #b8b8b1;
@@ -229,6 +227,7 @@
229
227
  --text-disabled: #5e5e59;
230
228
  --text-inverse: #111111;
231
229
  --text-on-fill-primary: #111111;
230
+ --text-on-fill-selected: #111111;
232
231
  --text-on-fill-brand: #111111;
233
232
  --text-on-fill-secondary: #f7f7f3;
234
233
  --text-on-surface-accent: #f7f7f3;
@@ -17,6 +17,7 @@
17
17
  --bg-surface-popover: #ffffff;
18
18
  --bg-surface-accent: #f8f8f8;
19
19
  --bg-surface-field: #ffffff;
20
+ --bg-surface-input: #ffffff33;
20
21
  --bg-surface-info: #eff6ff;
21
22
  --bg-surface-success: #ecfdf5;
22
23
  --bg-surface-warning: #fffbeb;
@@ -33,6 +34,8 @@
33
34
  --bg-surface-hover: #f5f5f5;
34
35
  --bg-fill-default: #ffffff;
35
36
  --bg-fill-primary: #056dff;
37
+ --bg-fill-primary-hover: #056dff;
38
+ --bg-fill-selected: #056dff;
36
39
  --bg-fill-brand: #ff6a00;
37
40
  --bg-fill-brand-2: #00c2d6;
38
41
  --bg-fill-brand-3: #8a00f5;
@@ -45,6 +48,7 @@
45
48
  --bg-fill-emphasis: #056dff;
46
49
  --bg-fill-transparent: #0000000d;
47
50
  --bg-fill-secondary: #ffffff;
51
+ --bg-fill-secondary-hover: #ffffff;
48
52
  --bg-fill-secondary-inverse: #171717;
49
53
  --text-default: #171717;
50
54
  --text-secondary: #737373;
@@ -52,6 +56,7 @@
52
56
  --text-disabled: #d4d4d4;
53
57
  --text-inverse: #f5f5f5;
54
58
  --text-on-fill-primary: #ffffff;
59
+ --text-on-fill-selected: #ffffff;
55
60
  --text-on-fill-brand: #171717;
56
61
  --text-on-fill-secondary: #171717;
57
62
  --text-on-surface-accent: #171717;
@@ -135,7 +140,7 @@
135
140
  --card-radius: var(--radius-xl);
136
141
  --card-padding: calc(var(--spacing) * 4);
137
142
  --input-radius: var(--radius-lg);
138
- --input-height: calc(var(--spacing) * 9);
143
+ --control-size-md: calc(var(--spacing) * 9);
139
144
  --badge-radius: var(--radius-md);
140
145
  --motion-duration-fast: 100ms;
141
146
  --motion-duration-normal: 200ms;
@@ -154,18 +159,6 @@
154
159
  --hover-transform: none;
155
160
  --hover-shadow: none;
156
161
  --active-scale: 0.98;
157
- --heading-font-weight: 600;
158
- --heading-letter-spacing: var(--tracking-tight);
159
- --body-letter-spacing: var(--tracking-normal);
160
- --hero-font-size: var(--text-5xl);
161
- --hero-font-weight: 600;
162
- --hero-letter-spacing: var(--tracking-tight);
163
- --section-title-size: var(--text-3xl);
164
- --section-title-font-weight: 600;
165
- --section-title-letter-spacing: var(--tracking-tight);
166
- --card-title-size: var(--text-lg);
167
- --card-title-font-weight: 600;
168
- --card-title-letter-spacing: var(--tracking-normal);
169
162
  --text-xs: 0.75rem;
170
163
  --text-xs--line-height: 1.333333;
171
164
  --text-sm: 0.8125rem;
@@ -198,7 +191,7 @@
198
191
  --button-quiet-hover-bg: var(--bg-surface-hover);
199
192
  --button-destructive-bg: var(--bg-fill-critical);
200
193
  --button-destructive-text: #ffffff;
201
- --focus-ring-width: 2px;
194
+ --focus-ring-width: calc(var(--border-width-base) * 2);
202
195
  --focus-ring-color: var(--border-focus);
203
196
  --hover-ring-width: 0px;
204
197
  --hover-ring-color: var(--border-secondary);
@@ -382,6 +375,7 @@
382
375
  --bg-surface-popover: #0f0f0f;
383
376
  --bg-surface-accent: #060606;
384
377
  --bg-surface-field: #171717;
378
+ --bg-surface-input: #1717174d;
385
379
  --bg-surface-info: #101b35;
386
380
  --bg-surface-success: #0b241b;
387
381
  --bg-surface-warning: #2b2111;
@@ -398,6 +392,8 @@
398
392
  --bg-surface-hover: #262626;
399
393
  --bg-fill-default: #0f0f0f;
400
394
  --bg-fill-primary: #045ede;
395
+ --bg-fill-primary-hover: #045ede;
396
+ --bg-fill-selected: #045ede;
401
397
  --bg-fill-brand: #ff6a00;
402
398
  --bg-fill-brand-2: #00d9ed;
403
399
  --bg-fill-brand-3: #b35cff;
@@ -410,6 +406,7 @@
410
406
  --bg-fill-emphasis: #045ede;
411
407
  --bg-fill-transparent: #ffffff0d;
412
408
  --bg-fill-secondary: #0f0f0f;
409
+ --bg-fill-secondary-hover: #0f0f0f;
413
410
  --bg-fill-secondary-inverse: #f5f5f5;
414
411
  --text-default: #f5f5f5;
415
412
  --text-secondary: #a3a3a3;
@@ -417,6 +414,7 @@
417
414
  --text-disabled: #525252;
418
415
  --text-inverse: #171717;
419
416
  --text-on-fill-primary: #ffffff;
417
+ --text-on-fill-selected: #ffffff;
420
418
  --text-on-fill-brand: #171717;
421
419
  --text-on-fill-secondary: #f5f5f5;
422
420
  --text-on-surface-accent: #f5f5f5;
@@ -510,7 +508,7 @@
510
508
  --flow-node-shadow: 0 1px 2px #0000000d;
511
509
  --flow-canvas-background-image: radial-gradient(var(--border-disabled) 1px, transparent 1px);
512
510
  --input-radius: var(--radius-lg);
513
- --input-height: calc(var(--spacing) * 9);
511
+ --control-size-md: calc(var(--spacing) * 9);
514
512
  --badge-radius: var(--radius-md);
515
513
  --opacity-disabled: 0.5;
516
514
  --shadow-offset-y: 1px;
@@ -526,17 +524,13 @@
526
524
  --button-quiet-hover-bg: var(--bg-surface-hover);
527
525
  --button-destructive-bg: var(--bg-fill-critical);
528
526
  --button-destructive-text: #ffffff;
529
- --focus-ring-width: 2px;
527
+ --focus-ring-width: calc(var(--border-width-base) * 2);
530
528
  --focus-ring-color: var(--border-focus);
531
529
  --hover-ring-width: 0px;
532
530
  --hover-ring-color: var(--border-secondary);
533
531
  --hover-transform: none;
534
532
  --hover-shadow: none;
535
533
  --active-scale: 0.98;
536
- --heading-font-weight: 600;
537
- --hero-font-weight: 600;
538
- --section-title-font-weight: 600;
539
- --card-title-font-weight: 600;
540
534
  --button-primary-border: color-mix(in oklch, var(--bg-fill-primary), black 10%);
541
535
  --button-primary-hover-border: color-mix(in oklch, var(--bg-fill-primary), black 10%);
542
536
  --button-primary-background-image: linear-gradient(
@@ -17,6 +17,7 @@
17
17
  --bg-surface-popover: #ffffffff;
18
18
  --bg-surface-accent: #ff8bd3ff;
19
19
  --bg-surface-field: #e8eef2ff;
20
+ --bg-surface-input: #e8eef233;
20
21
  --bg-surface-info: #d7f0faff;
21
22
  --bg-surface-success: #def6d8ff;
22
23
  --bg-surface-warning: #ffe8b5ff;
@@ -33,6 +34,8 @@
33
34
  --bg-surface-hover: #e7eff7ff;
34
35
  --bg-fill-default: #f4f5f1ff;
35
36
  --bg-fill-primary: #006fe6ff;
37
+ --bg-fill-primary-hover: #006fe6ff;
38
+ --bg-fill-selected: #006fe6ff;
36
39
  --bg-fill-brand: #006fe6ff;
37
40
  --bg-fill-brand-2: #eeff00ff;
38
41
  --bg-fill-brand-3: #ff4db8ff;
@@ -45,6 +48,7 @@
45
48
  --bg-fill-emphasis: #7a5cffff;
46
49
  --bg-fill-transparent: #0b0b0f12;
47
50
  --bg-fill-secondary: #eeff00ff;
51
+ --bg-fill-secondary-hover: #eeff00ff;
48
52
  --bg-fill-secondary-inverse: #050507ff;
49
53
  --text-default: #0b0b0fff;
50
54
  --text-secondary: #2b2d35ff;
@@ -52,6 +56,7 @@
52
56
  --text-disabled: #b9bdc6ff;
53
57
  --text-inverse: #f9faf2ff;
54
58
  --text-on-fill-primary: #ffffffff;
59
+ --text-on-fill-selected: #ffffffff;
55
60
  --text-on-fill-brand: #ffffffff;
56
61
  --text-on-fill-secondary: #050507ff;
57
62
  --text-on-surface-accent: #0b0b0fff;
@@ -135,7 +140,7 @@
135
140
  --card-radius: var(--radius-2xl);
136
141
  --card-padding: calc(var(--spacing) * 7);
137
142
  --input-radius: var(--radius-xl);
138
- --input-height: calc(var(--spacing) * 12);
143
+ --control-size-md: calc(var(--spacing) * 12);
139
144
  --badge-radius: var(--radius-4xl);
140
145
  --motion-duration-fast: 120ms;
141
146
  --motion-duration-normal: 180ms;
@@ -154,18 +159,7 @@
154
159
  --hover-transform: none;
155
160
  --hover-shadow: none;
156
161
  --active-scale: 0.96;
157
- --heading-font-weight: 700;
158
- --heading-letter-spacing: var(--tracking-normal);
159
- --body-letter-spacing: var(--tracking-normal);
160
- --hero-font-size: var(--text-6xl);
161
- --hero-font-weight: 700;
162
- --hero-letter-spacing: var(--tracking-normal);
163
- --section-title-size: var(--text-3xl);
164
- --section-title-font-weight: 700;
165
- --section-title-letter-spacing: var(--tracking-normal);
166
- --card-title-size: var(--text-lg);
167
- --card-title-font-weight: 700;
168
- --card-title-letter-spacing: var(--tracking-normal);
162
+ --button-height: calc(var(--spacing) * 7);
169
163
  --border-style: solid;
170
164
  --focus-ring-color: #ff4db8ff;
171
165
  --focus-ring-width: 0.1875rem;
@@ -205,6 +199,7 @@
205
199
  --bg-surface-popover: #050507ff;
206
200
  --bg-surface-accent: #351026ff;
207
201
  --bg-surface-field: #17191fff;
202
+ --bg-surface-input: #17191f4d;
208
203
  --bg-surface-info: #073348ff;
209
204
  --bg-surface-success: #0b3017ff;
210
205
  --bg-surface-warning: #342602ff;
@@ -221,6 +216,8 @@
221
216
  --bg-surface-hover: #17191fff;
222
217
  --bg-fill-default: #202124ff;
223
218
  --bg-fill-primary: #006fe6ff;
219
+ --bg-fill-primary-hover: #006fe6ff;
220
+ --bg-fill-selected: #006fe6ff;
224
221
  --bg-fill-brand: #006fe6ff;
225
222
  --bg-fill-brand-2: #eeff00ff;
226
223
  --bg-fill-brand-3: #ff4db8ff;
@@ -233,6 +230,7 @@
233
230
  --bg-fill-emphasis: #9d86ffff;
234
231
  --bg-fill-transparent: #ffffff12;
235
232
  --bg-fill-secondary: #eeff00ff;
233
+ --bg-fill-secondary-hover: #eeff00ff;
236
234
  --bg-fill-secondary-inverse: #050507ff;
237
235
  --text-default: #f7f8f2ff;
238
236
  --text-secondary: #d7dad2ff;
@@ -240,6 +238,7 @@
240
238
  --text-disabled: #5b606aff;
241
239
  --text-inverse: #050507ff;
242
240
  --text-on-fill-primary: #ffffffff;
241
+ --text-on-fill-selected: #ffffffff;
243
242
  --text-on-fill-brand: #ffffffff;
244
243
  --text-on-fill-secondary: #050507ff;
245
244
  --text-on-surface-accent: #f7f8f2ff;
@@ -317,7 +316,8 @@
317
316
  --card-radius: var(--radius-2xl);
318
317
  --card-padding: calc(var(--spacing) * 7);
319
318
  --input-radius: var(--radius-xl);
320
- --input-height: calc(var(--spacing) * 12);
319
+ --control-size-md: calc(var(--spacing) * 12);
320
+ --button-height: calc(var(--spacing) * 7);
321
321
  --badge-radius: var(--radius-4xl);
322
322
  --border-style: solid;
323
323
  --focus-ring-color: #ff4db8ff;
@@ -345,18 +345,6 @@
345
345
  --transition-slow: var(--motion-duration-slow) var(--motion-ease-decelerate);
346
346
  --hover-shadow: none;
347
347
  --active-scale: 0.96;
348
- --heading-font-weight: 700;
349
- --heading-letter-spacing: var(--tracking-normal);
350
- --body-letter-spacing: var(--tracking-normal);
351
- --hero-font-size: var(--text-6xl);
352
- --hero-font-weight: 700;
353
- --hero-letter-spacing: var(--tracking-normal);
354
- --section-title-size: var(--text-3xl);
355
- --section-title-font-weight: 700;
356
- --section-title-letter-spacing: var(--tracking-normal);
357
- --card-title-size: var(--text-lg);
358
- --card-title-font-weight: 700;
359
- --card-title-letter-spacing: var(--tracking-normal);
360
348
  --background: var(--bg-default);
361
349
  --foreground: var(--text-default);
362
350
  --card: var(--bg-surface-default);