@stacksjs/components 0.2.344 → 0.2.346

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 (96) hide show
  1. package/dist/{Accordion-ccye7erw.stx → Accordion-py9ntmst.stx} +1 -1
  2. package/dist/{AccordionItem-7bd3ga36.stx → AccordionItem-asmsqxz9.stx} +1 -1
  3. package/dist/{Audio-tnjd6anm.stx → Audio-byv8kkvt.stx} +1 -1
  4. package/dist/{Avatar-7vegrsg6.stx → Avatar-axrzqsdk.stx} +5 -5
  5. package/dist/{Badge-439n5p0a.stx → Badge-4jxqhkv9.stx} +1 -1
  6. package/dist/{Breadcrumb-7hwnfyyw.stx → Breadcrumb-pach6f1f.stx} +2 -2
  7. package/dist/{Button-y8fnx29x.stx → Button-tcjt3m8s.stx} +2 -2
  8. package/dist/{Calendar-8q76ees6.stx → Calendar-ppqdw19s.stx} +4 -4
  9. package/dist/{Checkbox-xnm8ax5q.stx → Checkbox-e7gn3w06.stx} +1 -1
  10. package/dist/{ComboboxInput-9q87fb22.stx → ComboboxInput-4jcpvw7e.stx} +1 -1
  11. package/dist/{ComboboxOption-qm38e8e9.stx → ComboboxOption-vnb67p8d.stx} +1 -1
  12. package/dist/{CommandPalette-mkqqep2s.stx → CommandPalette-6rjcgske.stx} +1 -1
  13. package/dist/{CommandPaletteItem-chdw0070.stx → CommandPaletteItem-6rp133ta.stx} +1 -1
  14. package/dist/{DefaultPaymentMethod-v11254p4.stx → DefaultPaymentMethod-r0hcjajr.stx} +1 -1
  15. package/dist/{Drawer-rymajw9v.stx → Drawer-jcdj3qk2.stx} +1 -1
  16. package/dist/{DropdownButton-n6gsmcte.stx → DropdownButton-tx9hb2de.stx} +1 -1
  17. package/dist/{DropdownItem-qs772agw.stx → DropdownItem-wht1vcm5.stx} +1 -1
  18. package/dist/{DropdownItems-yf25hdh1.stx → DropdownItems-v12h6zpf.stx} +1 -1
  19. package/dist/{FilterChip-ww5nkepm.stx → FilterChip-00ja5jhz.stx} +1 -1
  20. package/dist/{ListboxButton-w3vfvte7.stx → ListboxButton-t43pp03e.stx} +1 -1
  21. package/dist/{ListboxOption-ea0j02a8.stx → ListboxOption-9c9jpz1n.stx} +1 -1
  22. package/dist/{Login-hh53d6tw.stx → Login-j3pc04ka.stx} +9 -9
  23. package/dist/{Navigator-55wpcpx1.stx → Navigator-1yk1c3pp.stx} +4 -4
  24. package/dist/{NumberInput-54d23rq0.stx → NumberInput-awn66hfs.stx} +5 -5
  25. package/dist/{Pagination-0ra20dja.stx → Pagination-z9jxnaeq.stx} +3 -3
  26. package/dist/{PasswordInput-3snyppj4.stx → PasswordInput-hradj0xd.stx} +4 -4
  27. package/dist/{PaymentMethods-zwa7c6kh.stx → PaymentMethods-z4hhr0kv.stx} +3 -3
  28. package/dist/{PopoverButton-panmcysh.stx → PopoverButton-70th24xc.stx} +1 -1
  29. package/dist/{Progress-cj0z83rx.stx → Progress-bv65bwh8.stx} +2 -2
  30. package/dist/{Radio-m2wz5ny6.stx → Radio-nr8rbb6g.stx} +1 -1
  31. package/dist/{RadioGroup-jg9s4ttg.stx → RadioGroup-hzz4xep9.stx} +1 -1
  32. package/dist/{RadioGroupOption-zvp0y9sn.stx → RadioGroupOption-7fcgfsah.stx} +1 -1
  33. package/dist/{Select-pj584jza.stx → Select-sbr8dqzn.stx} +3 -3
  34. package/dist/{Signup-egdrk3rh.stx → Signup-77y9ea7t.stx} +8 -8
  35. package/dist/{Spinner-grahbp9a.stx → Spinner-vhnc3y03.stx} +3 -3
  36. package/dist/{StepperStep-xw55xjh0.stx → StepperStep-34kwv0t0.stx} +2 -2
  37. package/dist/{SubscriptionCheckout-wj4s182k.stx → SubscriptionCheckout-pggq5a4k.stx} +7 -7
  38. package/dist/{TabBarItem-cnxhgy92.stx → TabBarItem-wv2r8496.stx} +1 -1
  39. package/dist/{TableBody-drxyz5jh.stx → TableBody-y49bqb1p.stx} +1 -1
  40. package/dist/{TableRow-xd542nvb.stx → TableRow-ytr6b5by.stx} +1 -1
  41. package/dist/{Tabs-2cjt68my.stx → Tabs-51vr631j.stx} +2 -2
  42. package/dist/{TextInput-9wqzeeg1.stx → TextInput-48ghmccm.stx} +6 -6
  43. package/dist/{Textarea-xwkdg8se.stx → Textarea-dndmk6ah.stx} +3 -3
  44. package/dist/{Tooltip-14gt4f1w.stx → Tooltip-g2j17eg9.stx} +5 -5
  45. package/dist/{TwoFactorChallenge-0200pjc0.stx → TwoFactorChallenge-n8fcm5ct.stx} +4 -4
  46. package/dist/{VirtualTable-jvje0ybn.stx → VirtualTable-kp7b3wyv.stx} +2 -2
  47. package/dist/index.js +2 -2
  48. package/package.json +3 -3
  49. package/src/components/Footer.stx +8 -8
  50. package/src/components/Hero.stx +2 -2
  51. package/src/ui/accordion/Accordion.stx +1 -1
  52. package/src/ui/accordion/AccordionItem.stx +1 -1
  53. package/src/ui/audio/Audio.stx +1 -1
  54. package/src/ui/auth/Login.stx +9 -9
  55. package/src/ui/auth/Signup.stx +8 -8
  56. package/src/ui/auth/TwoFactorChallenge.stx +4 -4
  57. package/src/ui/avatar/Avatar.stx +5 -5
  58. package/src/ui/badge/Badge.stx +1 -1
  59. package/src/ui/breadcrumb/Breadcrumb.stx +2 -2
  60. package/src/ui/button/Button.stx +2 -2
  61. package/src/ui/calendar/Calendar.stx +4 -4
  62. package/src/ui/checkbox/Checkbox.stx +1 -1
  63. package/src/ui/combobox/ComboboxInput.stx +1 -1
  64. package/src/ui/combobox/ComboboxOption.stx +1 -1
  65. package/src/ui/command-palette/CommandPalette.stx +1 -1
  66. package/src/ui/command-palette/CommandPaletteItem.stx +1 -1
  67. package/src/ui/drawer/Drawer.stx +1 -1
  68. package/src/ui/dropdown/DropdownButton.stx +1 -1
  69. package/src/ui/dropdown/DropdownItem.stx +1 -1
  70. package/src/ui/dropdown/DropdownItems.stx +1 -1
  71. package/src/ui/input/NumberInput.stx +5 -5
  72. package/src/ui/input/PasswordInput.stx +4 -4
  73. package/src/ui/input/TextInput.stx +6 -6
  74. package/src/ui/listbox/ListboxButton.stx +1 -1
  75. package/src/ui/listbox/ListboxOption.stx +1 -1
  76. package/src/ui/mobile/FilterChip.stx +1 -1
  77. package/src/ui/mobile/TabBarItem.stx +1 -1
  78. package/src/ui/navigator/Navigator.stx +4 -4
  79. package/src/ui/pagination/Pagination.stx +3 -3
  80. package/src/ui/payment/DefaultPaymentMethod.stx +1 -1
  81. package/src/ui/payment/PaymentMethods.stx +3 -3
  82. package/src/ui/payment/SubscriptionCheckout.stx +7 -7
  83. package/src/ui/popover/PopoverButton.stx +1 -1
  84. package/src/ui/progress/Progress.stx +2 -2
  85. package/src/ui/radio/Radio.stx +1 -1
  86. package/src/ui/radio-group/RadioGroup.stx +1 -1
  87. package/src/ui/radio-group/RadioGroupOption.stx +1 -1
  88. package/src/ui/select/Select.stx +3 -3
  89. package/src/ui/spinner/Spinner.stx +3 -3
  90. package/src/ui/stepper/StepperStep.stx +2 -2
  91. package/src/ui/table/TableBody.stx +1 -1
  92. package/src/ui/table/TableRow.stx +1 -1
  93. package/src/ui/tabs/Tabs.stx +2 -2
  94. package/src/ui/textarea/Textarea.stx +3 -3
  95. package/src/ui/tooltip/Tooltip.stx +5 -5
  96. package/src/ui/virtual-table/VirtualTable.stx +2 -2
@@ -20,7 +20,7 @@ export const chipClasses = `
20
20
  text-sm font-medium transition-colors
21
21
  ${active
22
22
  ? 'border-transparent bg-fg text-surface'
23
- : 'border-line bg-surface-raised text-fg hover:bg-surface-sunken'}
23
+ : 'border-line bg-surface-raised text-fg hover:bg-surface-raised-hover'}
24
24
  `.replace(/\s+/g, ' ').trim()
25
25
 
26
26
  /*
@@ -69,7 +69,7 @@ export const itemClasses = `
69
69
  survive the label being two words wide, and anchoring it to the glyph
70
70
  keeps every tab's badge in the same place.
71
71
  --}}
72
- <span class="absolute -right-2 -top-1 min-w-[16px] rounded-full bg-danger px-1 text-[10px] font-semibold leading-4 text-white">
72
+ <span class="absolute -right-2 -top-1 min-w-[16px] rounded-full bg-danger px-1 text-[10px] font-semibold leading-4 text-danger-ink">
73
73
  {{ badge }}
74
74
  </span>
75
75
  @endif
@@ -40,8 +40,8 @@ function getItemClasses(item) {
40
40
  }
41
41
  else if (variant === 'pills') {
42
42
  cls += isActiveItem
43
- ? ' bg-blue-600 text-white font-medium rounded-full'
44
- : 'text-fg-strong hover:bg-surface-raised rounded-full'
43
+ ? ' bg-accent-solid text-accent-ink font-medium rounded-full'
44
+ : 'text-fg-strong hover:bg-surface-hover rounded-full'
45
45
  }
46
46
  else if (variant === 'underline') {
47
47
  cls += isActiveItem
@@ -50,8 +50,8 @@ function getItemClasses(item) {
50
50
  }
51
51
  else if (variant === 'sidebar') {
52
52
  cls += isActiveItem
53
- ? 'bg-blue-50 dark:bg-blue-900/20 text-accent font-medium border-l-4 border-accent'
54
- : 'text-fg-strong hover:bg-surface-raised border-l-4 border-transparent'
53
+ ? 'bg-accent-soft text-accent-soft-ink font-medium border-l-4 border-accent'
54
+ : 'text-fg-strong hover:bg-surface-hover border-l-4 border-transparent'
55
55
  }
56
56
  cls += ' transition-all duration-200 cursor-pointer flex items-center gap-2'
57
57
  if (item.disabled) cls += ' opacity-50 cursor-not-allowed pointer-events-none'
@@ -7,9 +7,9 @@ export const showPrevNext = $bool($props.showPrevNext, true)
7
7
  export const className = $props.className || ''
8
8
 
9
9
  export const paginationClasses = `flex items-center gap-1 ${className}`.trim()
10
- export const buttonClasses = `px-3 py-2 text-sm font-medium text-fg-strong bg-panel border border-line-strong rounded-control hover:bg-surface focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-white dark:disabled:hover:bg-neutral-800 transition-colors duration-150`.trim()
11
- export const activeButtonClasses = `px-3 py-2 text-sm font-medium text-white bg-accent-solid border border-accent rounded-control focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900`.trim()
12
- export const ellipsisClasses = `px-3 py-2 text-sm font-medium text-fg-subtle`.trim()
10
+ export const buttonClasses = `px-3 py-2 text-sm font-medium text-fg-strong bg-panel border border-line-strong rounded-control hover:bg-surface-hover focus:outline-none focus:ring-2 focus:ring-accent-solid focus:ring-offset-2 focus:ring-offset-panel disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-panel transition-colors duration-150`.trim()
11
+ export const activeButtonClasses = `px-3 py-2 text-sm font-medium text-accent-ink bg-accent-solid border border-accent rounded-control focus:outline-none focus:ring-2 focus:ring-accent-solid focus:ring-offset-2 focus:ring-offset-panel`.trim()
12
+ export const ellipsisClasses = `px-3 py-2 text-sm font-medium text-fg-soft`.trim()
13
13
  export const iconClasses = `w-5 h-5`.trim()
14
14
  </script>
15
15
 
@@ -39,7 +39,7 @@ export const containerClasses = `mt-16 w-2/3 bg-panel px-8 py-6 shadow ring-1 ri
39
39
  <div>
40
40
  <h2 class="text-sm text-fg-muted">
41
41
  {{ paymentMethod.brand }} •••• {{ paymentMethod.last_four }}
42
- <span class="ml-4 inline-flex items-center rounded-control bg-indigo-50 dark:bg-indigo-900/30 px-2 py-1 text-xs text-indigo-700 dark:text-indigo-300 font-medium ring-1 ring-indigo-700/10 dark:ring-indigo-300/20 ring-inset">Default</span>
42
+ <span class="ml-4 inline-flex items-center rounded-control bg-accent-soft px-2 py-1 text-xs text-accent-soft-ink font-medium ring-1 ring-accent-soft-ink/20 ring-inset">Default</span>
43
43
  <br>
44
44
  <span class="text-xs text-fg-soft italic">Expires {{ paymentMethod.exp_month }} / {{ paymentMethod.exp_year }}</span>
45
45
  </h2>
@@ -61,7 +61,7 @@ function onDelete(methodId) {
61
61
  @if(showMakeDefault)
62
62
  <button
63
63
  type="button"
64
- class="border border-line-strong rounded-control bg-field px-2 py-1 text-sm text-fg-strong font-semibold shadow-sm hover:bg-neutral-50 dark:hover:bg-neutral-600 focus-visible:outline-2 focus-visible:outline-blue-600 focus-visible:outline-offset-2 disabled:opacity-50 disabled:cursor-not-allowed"
64
+ class="border border-line-strong rounded-control bg-field px-2 py-1 text-sm text-fg-strong font-semibold shadow-sm hover:bg-field-hover focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2 disabled:opacity-50 disabled:cursor-not-allowed"
65
65
  @click="onMakeDefault('{{ method.id }}')"
66
66
  title="Make default"
67
67
  >
@@ -74,7 +74,7 @@ function onDelete(methodId) {
74
74
  @if(showDelete)
75
75
  <button
76
76
  type="button"
77
- class="border border-line-strong rounded-control bg-field px-2 py-1 text-sm text-danger font-semibold shadow-sm hover:bg-red-50 dark:hover:bg-red-900/20 focus-visible:outline-2 focus-visible:outline-red-600 focus-visible:outline-offset-2 disabled:opacity-50 disabled:cursor-not-allowed"
77
+ class="border border-line-strong rounded-control bg-field px-2 py-1 text-sm text-danger font-semibold shadow-sm hover:bg-danger-soft focus-visible:outline-2 focus-visible:outline-danger focus-visible:outline-offset-2 disabled:opacity-50 disabled:cursor-not-allowed"
78
78
  @click="onDelete('{{ method.id }}')"
79
79
  title="Delete payment method"
80
80
  >
@@ -91,7 +91,7 @@ function onDelete(methodId) {
91
91
  </ul>
92
92
  @else
93
93
  <div class="text-center py-12 bg-panel rounded-panel border border-line">
94
- <svg class="mx-auto h-12 w-12 text-fg-subtle" fill="none" viewBox="0 0 24 24" stroke="currentColor">
94
+ <svg class="mx-auto h-12 w-12 text-fg-soft" fill="none" viewBox="0 0 24 24" stroke="currentColor">
95
95
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z" />
96
96
  </svg>
97
97
  <h3 class="mt-2 text-sm text-fg font-medium">No payment methods</h3>
@@ -10,7 +10,7 @@ export const className = $props.className || ''
10
10
  export const subtotal = products.reduce((sum, product) => sum + (product.price * (product.quantity || 1)), 0)
11
11
  export const total = subtotal + shipping + taxes
12
12
 
13
- export const containerClasses = `bg-neutral-50 dark:bg-neutral-900 ${className}`.trim()
13
+ export const containerClasses = `bg-page ${className}`.trim()
14
14
  </script>
15
15
 
16
16
  <script client>
@@ -130,7 +130,7 @@ onMount(() => initializeStripe())
130
130
  name="email-address"
131
131
  autocomplete="email"
132
132
  required
133
- class="block w-full border border-line-strong rounded-control p-2 shadow-sm bg-field text-fg focus:border-indigo-500 dark:focus:border-indigo-400 sm:text-sm focus:ring-indigo-500 dark:focus:ring-indigo-400"
133
+ class="block w-full border border-line-strong rounded-control p-2 shadow-sm bg-field text-fg focus:border-accent sm:text-sm focus:ring-accent"
134
134
  />
135
135
  </div>
136
136
  </div>
@@ -154,7 +154,7 @@ onMount(() => initializeStripe())
154
154
  name="card-name"
155
155
  autocomplete="cc-name"
156
156
  required
157
- class="block w-full border border-line-strong rounded-control p-2 shadow-sm bg-field text-fg focus:border-indigo-500 sm:text-sm focus:ring-indigo-500"
157
+ class="block w-full border border-line-strong rounded-control p-2 shadow-sm bg-field text-fg focus:border-accent sm:text-sm focus:ring-accent"
158
158
  />
159
159
  </div>
160
160
  </div>
@@ -181,7 +181,7 @@ onMount(() => initializeStripe())
181
181
  name="payment-type"
182
182
  type="radio"
183
183
  checked
184
- class="h-4 w-4 border-line-strong text-accent focus:ring-indigo-500 dark:focus:ring-indigo-400"
184
+ class="h-4 w-4 border-line-strong text-accent focus:ring-accent"
185
185
  />
186
186
  <label for="credit-card" class="ml-3 block text-sm text-fg-strong font-medium">
187
187
  Credit card
@@ -237,7 +237,7 @@ onMount(() => initializeStripe())
237
237
  <div class="ml-4 flow-root flex-shrink-0">
238
238
  <button
239
239
  type="button"
240
- class="flex items-center justify-center bg-field p-2.5 text-fg-subtle -m-2.5 hover:text-fg-soft"
240
+ class="flex items-center justify-center bg-field p-2.5 text-fg-soft -m-2.5 hover:text-fg-strong"
241
241
  @click="onRemoveProduct('{{ product.id }}')"
242
242
  title="Remove"
243
243
  >
@@ -260,7 +260,7 @@ onMount(() => initializeStripe())
260
260
  <select
261
261
  id="quantity-{{ product.id }}"
262
262
  name="quantity"
263
- class="border border-line-strong rounded-control text-left text-base text-fg-strong font-medium shadow-sm bg-field focus:border-indigo-500 sm:text-sm focus:outline-none focus:ring-1 focus:ring-indigo-500"
263
+ class="border border-line-strong rounded-control text-left text-base text-fg-strong font-medium shadow-sm bg-field focus:border-accent sm:text-sm focus:outline-none focus:ring-1 focus:ring-accent"
264
264
  >
265
265
  <option value="1" {{ (product.quantity || 1) === 1 ? 'selected' : '' }}>1</option>
266
266
  <option value="2" {{ (product.quantity || 1) === 2 ? 'selected' : '' }}>2</option>
@@ -317,7 +317,7 @@ onMount(() => initializeStripe())
317
317
  <div class="border-t border-line px-4 py-6 sm:px-6">
318
318
  <button
319
319
  type="submit"
320
- class="w-full border border-transparent rounded-control bg-accent-solid px-4 py-3 text-base text-white font-medium shadow-sm hover:bg-indigo-700 dark:hover:bg-indigo-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 focus:ring-offset-gray-50 dark:focus:ring-offset-gray-900"
320
+ class="w-full border border-transparent rounded-control bg-accent-solid px-4 py-3 text-base text-accent-ink font-medium shadow-sm hover:bg-accent-solid-hover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent focus:ring-offset-surface"
321
321
  >
322
322
  Confirm order
323
323
  </button>
@@ -3,7 +3,7 @@ export const className = $props.className || ''
3
3
  export const as = $props.as || 'button'
4
4
  export const disabled = $bool($props.disabled)
5
5
 
6
- const baseClasses = 'inline-flex items-center gap-2 focus:outline-none focus-visible:ring-2 focus-visible:ring-white/75'
6
+ const baseClasses = 'inline-flex items-center gap-2 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent-solid focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
7
7
  export const buttonClasses = `${baseClasses} ${className}`.trim()
8
8
  </script>
9
9
 
@@ -16,7 +16,7 @@ const colorClasses = {
16
16
  success: 'bg-success-solid',
17
17
  warning: 'bg-warning-solid',
18
18
  danger: 'bg-danger-solid',
19
- info: 'bg-cyan-600 dark:bg-cyan-500',
19
+ info: 'bg-info-solid',
20
20
  }
21
21
 
22
22
  export const circularSize = size === 'sm' ? 48 : size === 'md' ? 64 : 96
@@ -38,7 +38,7 @@ export const circularBarColor = color === 'primary' ? 'stroke-accent'
38
38
  : color === 'success' ? 'stroke-success'
39
39
  : color === 'warning' ? 'stroke-warning-solid'
40
40
  : color === 'danger' ? 'stroke-danger'
41
- : 'stroke-cyan-600 dark:stroke-cyan-500'
41
+ : 'stroke-info-solid'
42
42
  </script>
43
43
 
44
44
  <script client>
@@ -11,7 +11,7 @@ export const name = $props.name || ''
11
11
  export const className = $props.className || ''
12
12
 
13
13
  const sizeClasses = { sm: 'h-4 w-4', md: 'h-5 w-5', lg: 'h-6 w-6' }
14
- const baseClasses = 'border-line-strong text-accent focus:ring-accent focus:ring-2 focus:ring-offset-2 dark:focus:ring-offset-gray-900 transition-colors'
14
+ const baseClasses = 'border-line-strong text-accent focus:ring-accent focus:ring-2 focus:ring-offset-2 focus:ring-offset-panel transition-colors'
15
15
  const stateClasses = error ? 'border-danger-line text-danger focus:ring-danger-focus' : ''
16
16
  const disabledClasses = disabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer'
17
17
 
@@ -23,7 +23,7 @@ export const as = $props.as || 'div'
23
23
  export const options = Array.isArray($props.options) ? $props.options : []
24
24
  export const hasPropOptions = options.length > 0
25
25
 
26
- const optionBaseClasses = 'relative flex cursor-pointer rounded-panel px-5 py-4 shadow-md focus:outline-none transition-all bg-panel text-fg focus-visible:ring-2 focus-visible:ring-white/60 focus-visible:ring-offset-2 focus-visible:ring-offset-blue-300 dark:focus-visible:ring-offset-blue-700'
26
+ const optionBaseClasses = 'relative flex cursor-pointer rounded-panel px-5 py-4 shadow-md focus:outline-none transition-all bg-panel text-fg focus-visible:ring-2 focus-visible:ring-accent-solid focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
27
27
  export const optionClasses = optionBaseClasses
28
28
  export const optionDisabledClasses = `${optionBaseClasses} opacity-50 cursor-not-allowed`
29
29
 
@@ -4,7 +4,7 @@ export const disabled = $bool($props.disabled)
4
4
  export const className = $props.className || ''
5
5
  export const as = $props.as || 'div'
6
6
 
7
- const baseClasses = 'relative flex cursor-pointer rounded-panel px-5 py-4 shadow-md focus:outline-none transition-all bg-panel text-fg focus-visible:ring-2 focus-visible:ring-white/60 focus-visible:ring-offset-2 focus-visible:ring-offset-blue-300 dark:focus-visible:ring-offset-blue-700'
7
+ const baseClasses = 'relative flex cursor-pointer rounded-panel px-5 py-4 shadow-md focus:outline-none transition-all bg-panel text-fg focus-visible:ring-2 focus-visible:ring-accent-solid focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
8
8
  const disabledClasses = disabled ? 'opacity-50 cursor-not-allowed' : ''
9
9
  export const optionClasses = `${baseClasses} ${disabledClasses} ${className}`.trim()
10
10
  export const valueJson = JSON.stringify(value === undefined ? null : value)
@@ -21,10 +21,10 @@ export const className = $props.className || ''
21
21
  * 3rem it always claimed. sm and md were already exact.
22
22
  */
23
23
  const sizeClasses = { sm: 'px-3 py-1.5 text-sm', md: 'px-4 py-2 text-base', lg: 'px-5 py-2.5 text-lg' }
24
- const baseClasses = 'block w-full border-0 rounded-control shadow-sm ring-1 ring-inset transition-colors duration-200 focus:ring-2 focus:ring-inset dark:bg-neutral-700 dark:text-neutral-100'
24
+ const baseClasses = 'block w-full border-0 rounded-control shadow-sm ring-1 ring-inset transition-colors duration-200 focus:ring-2 focus:ring-inset bg-field'
25
25
  const stateClasses = error
26
- ? 'ring-danger-line text-danger-fg placeholder-danger-fg-subtle focus:ring-danger-focus'
27
- : 'ring-line-strong text-fg placeholder-fg-subtle focus:ring-accent'
26
+ ? 'ring-danger-line text-danger-fg placeholder-danger focus:ring-danger-focus'
27
+ : 'ring-line-strong text-fg placeholder-fg-soft focus:ring-accent'
28
28
  const disabledClasses = disabled
29
29
  ? 'opacity-50 cursor-not-allowed bg-surface'
30
30
  : 'bg-field cursor-pointer hover:ring-neutral-400 dark:hover:ring-neutral-500'
@@ -21,7 +21,7 @@ const colorClasses = {
21
21
  success: 'text-success',
22
22
  warning: 'text-warning-solid',
23
23
  danger: 'text-danger',
24
- info: 'text-cyan-600 dark:text-cyan-500',
24
+ info: 'text-info',
25
25
  white: 'text-white',
26
26
  gray: 'text-fg-muted',
27
27
  }
@@ -45,9 +45,9 @@ const dotsColorClasses = {
45
45
  success: 'bg-success-solid',
46
46
  warning: 'bg-warning-solid',
47
47
  danger: 'bg-danger-solid',
48
- info: 'bg-cyan-600 dark:bg-cyan-500',
48
+ info: 'bg-info-solid',
49
49
  white: 'bg-white',
50
- gray: 'bg-neutral-600 dark:bg-neutral-400',
50
+ gray: 'bg-fg-muted',
51
51
  }
52
52
 
53
53
  export const dotClasses = `${dotsSizeClasses[size] || dotsSizeClasses.md} ${dotsColorClasses[color] || dotsColorClasses.primary} rounded-full`.trim()
@@ -32,9 +32,9 @@ function onClick() {
32
32
  <button
33
33
  type="button"
34
34
  @click="onClick()"
35
- class="flex items-center gap-3 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 rounded-panel p-2"
35
+ class="flex items-center gap-3 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent-solid rounded-panel p-2"
36
36
  >
37
- <div class="{{ isComplete ? 'bg-accent-solid' : isCurrent ? 'bg-accent-solid ring-4 ring-blue-200 dark:ring-blue-800' : 'bg-neutral-300 dark:bg-neutral-600' }} w-10 h-10 rounded-full flex items-center justify-center text-white font-semibold transition-all">
37
+ <div class="{{ isComplete ? 'bg-accent-solid text-accent-ink' : isCurrent ? 'bg-accent-solid text-accent-ink ring-4 ring-accent-soft' : 'bg-surface-sunken text-fg-strong' }} w-10 h-10 rounded-full flex items-center justify-center font-semibold transition-all">
38
38
  @if(isComplete)
39
39
  <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
40
40
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
@@ -1,7 +1,7 @@
1
1
  <script server>
2
2
  export const className = $props.className || ''
3
3
 
4
- const baseClasses = 'bg-white divide-y divide-line dark:bg-neutral-900'
4
+ const baseClasses = 'bg-content divide-y divide-line'
5
5
  const bodyClasses = `${baseClasses} ${className}`.trim()
6
6
  </script>
7
7
 
@@ -2,7 +2,7 @@
2
2
  export const className = $props.className || ''
3
3
  export const hoverable = $props.hoverable !== false
4
4
 
5
- const hoverClasses = hoverable ? 'hover:bg-surface' : ''
5
+ const hoverClasses = hoverable ? 'hover:bg-surface-hover' : ''
6
6
  const rowClasses = `${hoverClasses} ${className}`.trim()
7
7
  </script>
8
8
 
@@ -114,10 +114,10 @@ function isActive(index) {
114
114
 
115
115
  function getTabClasses(index) {
116
116
  const isActiveTab = isActive(index)
117
- const base = 'px-4 py-2 font-medium text-sm transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900'
117
+ const base = 'px-4 py-2 font-medium text-sm transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-accent-solid focus:ring-offset-2 focus:ring-offset-panel'
118
118
  if (variant === 'line') {
119
119
  const border = orientation === 'horizontal' ? 'border-b-2' : 'border-r-2'
120
- return `${base} ${border} ${isActiveTab ? 'border-blue-500 text-accent' : 'border-transparent text-fg-muted hover:text-fg hover:border-line-strong'}`
120
+ return `${base} ${border} ${isActiveTab ? 'border-accent text-accent' : 'border-transparent text-fg-muted hover:text-fg hover:border-line-strong'}`
121
121
  }
122
122
  if (variant === 'pills') {
123
123
  return `${base} rounded-control ${isActiveTab ? 'bg-field text-fg shadow-sm' : 'text-fg-muted hover:text-fg'}`
@@ -16,10 +16,10 @@ export const resize = $props.resize || 'vertical'
16
16
  export const className = $props.className || ''
17
17
 
18
18
  const resizeClasses = { none: 'resize-none', vertical: 'resize-y', horizontal: 'resize-x', both: 'resize' }
19
- const baseClasses = 'block w-full border-0 rounded-control shadow-sm ring-1 ring-inset transition-colors duration-200 focus:ring-2 focus:ring-inset px-4 py-2 text-base dark:bg-neutral-700 dark:text-neutral-100'
19
+ const baseClasses = 'block w-full border-0 rounded-control shadow-sm ring-1 ring-inset transition-colors duration-200 focus:ring-2 focus:ring-inset px-4 py-2 text-base bg-field'
20
20
  const stateClasses = error
21
- ? 'ring-danger-line text-danger-fg placeholder-danger-fg-subtle focus:ring-danger-focus'
22
- : 'ring-line-strong text-fg placeholder-fg-subtle focus:ring-accent'
21
+ ? 'ring-danger-line text-danger-fg placeholder-danger focus:ring-danger-focus'
22
+ : 'ring-line-strong text-fg placeholder-fg-soft focus:ring-accent'
23
23
  const disabledClasses = disabled
24
24
  ? 'opacity-50 cursor-not-allowed bg-surface'
25
25
  : readonly
@@ -14,13 +14,13 @@ const positionClasses = {
14
14
  }
15
15
 
16
16
  const arrowClasses = {
17
- top: 'top-full left-1/2 -translate-x-1/2 border-t-gray-900 dark:border-t-gray-700',
18
- bottom: 'bottom-full left-1/2 -translate-x-1/2 border-b-gray-900 dark:border-b-gray-700',
19
- left: 'left-full top-1/2 -translate-y-1/2 border-l-gray-900 dark:border-l-gray-700',
20
- right: 'right-full top-1/2 -translate-y-1/2 border-r-gray-900 dark:border-r-gray-700',
17
+ top: 'top-full left-1/2 -translate-x-1/2 border-t-inverse',
18
+ bottom: 'bottom-full left-1/2 -translate-x-1/2 border-b-inverse',
19
+ left: 'left-full top-1/2 -translate-y-1/2 border-l-inverse',
20
+ right: 'right-full top-1/2 -translate-y-1/2 border-r-inverse',
21
21
  }
22
22
 
23
- export const tooltipClasses = `absolute z-50 px-3 py-2 text-sm font-medium text-white bg-neutral-900 dark:bg-neutral-700 rounded-panel shadow-lg whitespace-nowrap pointer-events-none transition-opacity duration-200 ${positionClasses[position] || positionClasses.top} ${className}`.trim()
23
+ export const tooltipClasses = `absolute z-50 px-3 py-2 text-sm font-medium text-inverse-ink bg-inverse rounded-panel shadow-lg whitespace-nowrap pointer-events-none transition-opacity duration-200 ${positionClasses[position] || positionClasses.top} ${className}`.trim()
24
24
  export const arrowClass = `absolute w-0 h-0 border-4 border-transparent ${arrowClasses[position] || arrowClasses.top}`.trim()
25
25
  </script>
26
26
 
@@ -13,8 +13,8 @@ export const totalHeight = data.length * rowHeight
13
13
  export const containerClasses = `border border-line rounded-panel overflow-hidden ${className}`.trim()
14
14
  export const headerClasses = `bg-surface border-b border-line flex`.trim()
15
15
  export const headerCellClasses = `px-6 py-3 text-left text-xs font-medium text-fg-soft uppercase tracking-wider`.trim()
16
- export const bodyClasses = `overflow-auto bg-white dark:bg-neutral-900`.trim()
17
- export const rowClasses = `absolute left-0 right-0 flex border-b border-line ${hoverable ? 'hover:bg-surface' : ''}`.trim()
16
+ export const bodyClasses = `overflow-auto bg-content`.trim()
17
+ export const rowClasses = `absolute left-0 right-0 flex border-b border-line ${hoverable ? 'hover:bg-surface-hover' : ''}`.trim()
18
18
  export const cellClasses = `px-6 py-4 text-sm text-fg`.trim()
19
19
  </script>
20
20