@stagewise/ui 0.8.0 → 0.9.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 (46) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/src/components/ui/alert-dialog.tsx +21 -4
  4. package/src/components/ui/avatar.tsx +3 -6
  5. package/src/components/ui/badge.tsx +1 -1
  6. package/src/components/ui/bubble.tsx +2 -2
  7. package/src/components/ui/button-group.tsx +2 -2
  8. package/src/components/ui/button.tsx +1 -1
  9. package/src/components/ui/checkbox.tsx +1 -1
  10. package/src/components/ui/combobox.tsx +1 -1
  11. package/src/components/ui/command.tsx +1 -1
  12. package/src/components/ui/dialog-lifecycle.tsx +66 -0
  13. package/src/components/ui/dialog.tsx +12 -3
  14. package/src/components/ui/dropdown-menu.tsx +3 -3
  15. package/src/components/ui/input-group.tsx +1 -1
  16. package/src/components/ui/input-otp.tsx +1 -1
  17. package/src/components/ui/input.tsx +1 -1
  18. package/src/components/ui/item.tsx +1 -1
  19. package/src/components/ui/klex-logo.tsx +1 -2
  20. package/src/components/ui/marker.tsx +1 -1
  21. package/src/components/ui/native-select.tsx +1 -1
  22. package/src/components/ui/questionnaire.tsx +4 -4
  23. package/src/components/ui/radio-group.tsx +1 -1
  24. package/src/components/ui/scroll-area.tsx +6 -1
  25. package/src/components/ui/select.tsx +1 -1
  26. package/src/components/ui/sidebar.tsx +14 -1
  27. package/src/components/ui/textarea.tsx +1 -1
  28. package/src/components/ui/toggle.tsx +1 -1
  29. package/src/icons/custom/ui-outline-18/IconCalendarOutline18.tsx +28 -0
  30. package/src/icons/custom/ui-outline-18/IconCrownOutline18.tsx +18 -0
  31. package/src/icons/custom/ui-outline-18/IconResizeGripOutline18.tsx +18 -0
  32. package/src/icons/custom/ui-outline-18/IconUserMinusOutline18.tsx +26 -0
  33. package/src/icons/custom/ui-outline-18/IconUserOutline18.tsx +26 -0
  34. package/src/icons/custom/ui-outline-18/index.ts +5 -0
  35. package/src/icons/index.ts +5 -0
  36. package/src/icons/nucleo/ui-outline-18/IconArrowDoorOut3Outline18.tsx +50 -0
  37. package/src/icons/nucleo/ui-outline-18/IconMediaPauseOutline18.tsx +40 -0
  38. package/src/icons/nucleo/ui-outline-18/IconMediaPlayOutline18.tsx +22 -0
  39. package/src/icons/nucleo/ui-outline-18/IconPaperPlane2Outline18.tsx +33 -0
  40. package/src/icons/nucleo/ui-outline-18/IconPaperPlaneFastOutline18.tsx +50 -0
  41. package/src/icons/nucleo/ui-outline-18/IconUndo3Outline18.tsx +27 -0
  42. package/src/icons/nucleo/ui-outline-18/index.ts +6 -0
  43. package/src/styles/bridge.css +10 -12
  44. package/src/styles/derived-utilities.css +1 -98
  45. package/src/styles/index.css +2 -7
  46. package/src/styles/theme.css +0 -2
package/README.md CHANGED
@@ -39,7 +39,7 @@ That single `@import` loads everything:
39
39
  - The OKLCH color palette and theme tokens (light/dark)
40
40
  - Bundled Geist Variable font (woff2, weights 100–900, upright + italic)
41
41
  - The shadcn bridge layer (semantic token mappings)
42
- - Derived color utilities (`border-derived`, `bg-hover-derived`, etc.)
42
+ - Derived color utilities (`text-hover-derived`, `bg-hover-derived`, etc.)
43
43
  - The `tailwindcss-color-modifiers` plugin (auto-loaded via `@plugin`)
44
44
  - `tw-animate-css` animation utilities (`animate-in`, `fade-in-0`, `zoom-in-95`, etc.)
45
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stagewise/ui",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Customized shadcn/ui components built on Base UI primitives, for use across stagewise projects.",
5
5
  "type": "module",
6
6
  "license": "MIT AND OFL-1.1",
@@ -3,9 +3,18 @@ import { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog
3
3
 
4
4
  import { cn } from '../../lib/utils';
5
5
  import { Button } from './button';
6
+ import { useDialogLifecycle } from './dialog-lifecycle';
7
+ import { IconXmarkOutline18 } from '../../icons/nucleo/ui-outline-18/IconXmarkOutline18';
6
8
 
7
- function AlertDialog({ ...props }: AlertDialogPrimitive.Root.Props) {
8
- return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />;
9
+ function AlertDialog(props: AlertDialogPrimitive.Root.Props) {
10
+ const lifecycle = useDialogLifecycle(props);
11
+ return (
12
+ <AlertDialogPrimitive.Root
13
+ data-slot="alert-dialog"
14
+ {...props}
15
+ {...lifecycle}
16
+ />
17
+ );
9
18
  }
10
19
 
11
20
  function AlertDialogTrigger({ ...props }: AlertDialogPrimitive.Trigger.Props) {
@@ -50,7 +59,7 @@ function AlertDialogContent({
50
59
  data-slot="alert-dialog-content"
51
60
  data-size={size}
52
61
  className={cn(
53
- 'group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95',
62
+ 'group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 transition-none duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95',
54
63
  className,
55
64
  )}
56
65
  {...props}
@@ -154,6 +163,7 @@ function AlertDialogAction({
154
163
 
155
164
  function AlertDialogCancel({
156
165
  className,
166
+ children,
157
167
  variant = 'outline',
158
168
  size = 'default',
159
169
  ...props
@@ -165,7 +175,14 @@ function AlertDialogCancel({
165
175
  className={cn(className)}
166
176
  render={<Button variant={variant} size={size} />}
167
177
  {...props}
168
- />
178
+ >
179
+ <IconXmarkOutline18
180
+ className="size-4.5"
181
+ data-icon="inline-start"
182
+ aria-hidden
183
+ />
184
+ {children}
185
+ </AlertDialogPrimitive.Close>
169
186
  );
170
187
  }
171
188
 
@@ -15,7 +15,7 @@ function Avatar({
15
15
  data-slot="avatar"
16
16
  data-size={size}
17
17
  className={cn(
18
- 'group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-derived-subtle after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 data-[size=xs]:size-4 dark:after:mix-blend-lighten',
18
+ 'group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 data-[size=xs]:size-4 dark:after:mix-blend-lighten',
19
19
  className,
20
20
  )}
21
21
  {...props}
@@ -72,10 +72,7 @@ function AvatarGroup({ className, ...props }: React.ComponentProps<'div'>) {
72
72
  return (
73
73
  <div
74
74
  data-slot="avatar-group"
75
- className={cn(
76
- 'group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background',
77
- className,
78
- )}
75
+ className={cn('group/avatar-group flex -space-x-2', className)}
79
76
  {...props}
80
77
  />
81
78
  );
@@ -89,7 +86,7 @@ function AvatarGroupCount({
89
86
  <div
90
87
  data-slot="avatar-group-count"
91
88
  className={cn(
92
- 'relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3',
89
+ 'relative flex size-8 shrink-0 items-center justify-center rounded-full border border-border bg-muted text-sm text-muted-foreground group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3',
93
90
  className,
94
91
  )}
95
92
  {...props}
@@ -17,7 +17,7 @@ const badgeVariants = cva(
17
17
  destructive:
18
18
  'bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20',
19
19
  outline:
20
- 'border-derived-subtle text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground',
20
+ 'border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground',
21
21
  ghost:
22
22
  'hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50',
23
23
  link: 'text-primary underline-offset-4 hover:underline',
@@ -29,7 +29,7 @@ const bubbleVariants = cva(
29
29
  tinted:
30
30
  '*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]',
31
31
  outline:
32
- '*:data-[slot=bubble-content]:border-derived-subtle *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30',
32
+ '*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30',
33
33
  ghost:
34
34
  'border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50',
35
35
  destructive:
@@ -72,7 +72,7 @@ function BubbleContent({
72
72
  props: mergeProps<'div'>(
73
73
  {
74
74
  className: cn(
75
- 'w-fit max-w-full min-w-0 overflow-hidden rounded-3xl border border-transparent px-3 py-2.5 text-sm leading-relaxed wrap-break-word [corner-shape:round] group-data-[align=end]/bubble:self-end [button]:text-left [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/30',
75
+ 'w-fit max-w-full min-w-0 overflow-hidden rounded-3xl border border-transparent px-3 py-2.5 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-left [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/30',
76
76
  className,
77
77
  ),
78
78
  },
@@ -11,9 +11,9 @@ const buttonGroupVariants = cva(
11
11
  variants: {
12
12
  orientation: {
13
13
  horizontal:
14
- '*:data-slot:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg! [&>[data-slot]~[data-slot]]:rounded-l-none [&>[data-slot]~[data-slot]]:border-l-0',
14
+ '*:data-slot:rounded-r-none! [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg! [&>[data-slot]~[data-slot]]:rounded-l-none! [&>[data-slot]~[data-slot]]:border-l-0',
15
15
  vertical:
16
- 'flex-col *:data-slot:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg! [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0',
16
+ 'flex-col *:data-slot:rounded-b-none! [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg! [&>[data-slot]~[data-slot]]:rounded-t-none! [&>[data-slot]~[data-slot]]:border-t-0',
17
17
  },
18
18
  },
19
19
  defaultVariants: {
@@ -10,7 +10,7 @@ const buttonVariants = cva(
10
10
  variant: {
11
11
  default: 'bg-primary text-primary-foreground hover:bg-primary/90',
12
12
  outline:
13
- 'border-derived-strong bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:bg-input/30 dark:hover:bg-input/50',
13
+ 'border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50',
14
14
  secondary:
15
15
  'bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground',
16
16
  ghost:
@@ -10,7 +10,7 @@ function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props) {
10
10
  <CheckboxPrimitive.Root
11
11
  data-slot="checkbox"
12
12
  className={cn(
13
- 'peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] text-primary-foreground border border-derived-strong transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary',
13
+ 'peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] text-primary-foreground border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary',
14
14
  className,
15
15
  )}
16
16
  {...props}
@@ -226,7 +226,7 @@ function ComboboxChips({
226
226
  <ComboboxPrimitive.Chips
227
227
  data-slot="combobox-chips"
228
228
  className={cn(
229
- 'flex min-h-8 flex-wrap items-center gap-1 rounded-lg border border-derived-strong bg-transparent bg-clip-padding px-2.5 py-1 text-sm transition-colors focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 has-data-[slot=combobox-chip]:px-1 dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40',
229
+ 'flex min-h-8 flex-wrap items-center gap-1 rounded-lg border border-input bg-transparent bg-clip-padding px-2.5 py-1 text-sm transition-colors focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 has-data-[slot=combobox-chip]:px-1 dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40',
230
230
  className,
231
231
  )}
232
232
  {...props}
@@ -219,7 +219,7 @@ function CommandFilterTabs({
219
219
  </ToggleGroupItem>
220
220
  ))}
221
221
  </ToggleGroup>
222
- <Kbd aria-label="Press Tab to cycle filter modes">Tab</Kbd>
222
+ <Kbd aria-label="Tab">Tab ⇥</Kbd>
223
223
  </div>
224
224
  );
225
225
  }
@@ -0,0 +1,66 @@
1
+ import type { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
2
+ import {
3
+ createContext,
4
+ memo,
5
+ type ReactNode,
6
+ useContext,
7
+ useState,
8
+ } from 'react';
9
+
10
+ const DialogClosingContext = createContext(false);
11
+
12
+ const DialogChildren = memo(
13
+ ({ children }: { children: ReactNode; closing: boolean }) => children,
14
+ (_, next) => next.closing,
15
+ );
16
+
17
+ /** Preserve updates from a nested form's own state during its dialog's exit. */
18
+ export function useDialogExitContent() {
19
+ const closing = useContext(DialogClosingContext);
20
+ return (children: ReactNode) => (
21
+ <DialogChildren closing={closing}>{children}</DialogChildren>
22
+ );
23
+ }
24
+
25
+ /** Keep the last open render while Base UI animates the popup out. */
26
+ export function useDialogLifecycle({
27
+ children,
28
+ open: controlledOpen,
29
+ defaultOpen = false,
30
+ onOpenChange,
31
+ onOpenChangeComplete,
32
+ }: DialogPrimitive.Root.Props) {
33
+ const [uncontrolledOpen, setUncontrolledOpen] = useState(defaultOpen);
34
+ const open = controlledOpen ?? uncontrolledOpen;
35
+ const [exitComplete, setExitComplete] = useState(!open);
36
+ if (open && exitComplete) setExitComplete(false);
37
+ const closing = !open && !exitComplete;
38
+
39
+ return {
40
+ children:
41
+ typeof children === 'function' ? (
42
+ (payload: Parameters<typeof children>[0]) => (
43
+ <DialogClosingContext.Provider value={closing}>
44
+ <DialogChildren closing={closing}>
45
+ {children(payload)}
46
+ </DialogChildren>
47
+ </DialogClosingContext.Provider>
48
+ )
49
+ ) : (
50
+ <DialogClosingContext.Provider value={closing}>
51
+ <DialogChildren closing={closing}>{children}</DialogChildren>
52
+ </DialogClosingContext.Provider>
53
+ ),
54
+ onOpenChange(nextOpen, details) {
55
+ onOpenChange?.(nextOpen, details);
56
+ if (!details.isCanceled) setUncontrolledOpen(nextOpen);
57
+ },
58
+ onOpenChangeComplete(nextOpen) {
59
+ if (!nextOpen) setExitComplete(true);
60
+ onOpenChangeComplete?.(nextOpen);
61
+ },
62
+ } satisfies Pick<
63
+ DialogPrimitive.Root.Props,
64
+ 'children' | 'onOpenChange' | 'onOpenChangeComplete'
65
+ >;
66
+ }
@@ -5,10 +5,12 @@ import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
5
5
 
6
6
  import { cn } from '../../lib/utils';
7
7
  import { Button } from './button';
8
+ import { useDialogLifecycle } from './dialog-lifecycle';
8
9
  import { IconXmarkOutline18 } from '../../icons';
9
10
 
10
- function Dialog({ ...props }: DialogPrimitive.Root.Props) {
11
- return <DialogPrimitive.Root data-slot="dialog" {...props} />;
11
+ function Dialog(props: DialogPrimitive.Root.Props) {
12
+ const lifecycle = useDialogLifecycle(props);
13
+ return <DialogPrimitive.Root data-slot="dialog" {...props} {...lifecycle} />;
12
14
  }
13
15
 
14
16
  function DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {
@@ -55,7 +57,7 @@ function DialogContent({
55
57
  <DialogPrimitive.Popup
56
58
  data-slot="dialog-content"
57
59
  className={cn(
58
- 'fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95',
60
+ 'fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 transition-none duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95',
59
61
  className,
60
62
  )}
61
63
  {...props}
@@ -111,6 +113,11 @@ function DialogFooter({
111
113
  {children}
112
114
  {showCloseButton && (
113
115
  <DialogPrimitive.Close render={<Button variant="outline" />}>
116
+ <IconXmarkOutline18
117
+ className="size-4.5"
118
+ data-icon="inline-start"
119
+ aria-hidden
120
+ />
114
121
  Close
115
122
  </DialogPrimitive.Close>
116
123
  )}
@@ -159,3 +166,5 @@ export {
159
166
  DialogTitle,
160
167
  DialogTrigger,
161
168
  };
169
+
170
+ export { useDialogExitContent } from './dialog-lifecycle';
@@ -40,7 +40,7 @@ function DropdownMenuContent({
40
40
  <MenuPrimitive.Popup
41
41
  data-slot="dropdown-menu-content"
42
42
  className={cn(
43
- 'z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative bg-popover **:data-[slot$=-item]:focus:bg-foreground/10 **:data-[slot$=-item]:data-highlighted:bg-foreground/10 **:data-[slot$=-separator]:bg-foreground/5 **:data-[slot$=-trigger]:focus:bg-foreground/10 **:data-[slot$=-trigger]:aria-expanded:bg-foreground/10! **:data-[variant=destructive]:focus:bg-foreground/10! **:data-[variant=destructive]:text-accent-foreground! **:data-[variant=destructive]:**:text-accent-foreground!',
43
+ 'z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative bg-popover **:data-[slot$=-item]:not-data-[variant=destructive]:focus:bg-foreground/10 **:data-[slot$=-item]:not-data-[variant=destructive]:data-highlighted:bg-foreground/10 **:data-[slot$=-separator]:bg-foreground/5 **:data-[slot$=-trigger]:focus:bg-foreground/10 **:data-[slot$=-trigger]:aria-expanded:bg-foreground/10!',
44
44
  className,
45
45
  )}
46
46
  {...props}
@@ -89,7 +89,7 @@ function DropdownMenuItem({
89
89
  data-inset={inset}
90
90
  data-variant={variant}
91
91
  className={cn(
92
- "group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",
92
+ "group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:data-highlighted:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",
93
93
  className,
94
94
  )}
95
95
  {...props}
@@ -137,7 +137,7 @@ function DropdownMenuSubContent({
137
137
  <DropdownMenuContent
138
138
  data-slot="dropdown-menu-sub-content"
139
139
  className={cn(
140
- 'w-auto min-w-[96px] rounded-lg p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative bg-popover **:data-[slot$=-item]:focus:bg-foreground/10 **:data-[slot$=-item]:data-highlighted:bg-foreground/10 **:data-[slot$=-separator]:bg-foreground/5 **:data-[slot$=-trigger]:focus:bg-foreground/10 **:data-[slot$=-trigger]:aria-expanded:bg-foreground/10! **:data-[variant=destructive]:focus:bg-foreground/10! **:data-[variant=destructive]:text-accent-foreground! **:data-[variant=destructive]:**:text-accent-foreground!',
140
+ 'w-auto min-w-[96px] rounded-lg p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative bg-popover **:data-[slot$=-item]:not-data-[variant=destructive]:focus:bg-foreground/10 **:data-[slot$=-item]:not-data-[variant=destructive]:data-highlighted:bg-foreground/10 **:data-[slot$=-separator]:bg-foreground/5 **:data-[slot$=-trigger]:focus:bg-foreground/10 **:data-[slot$=-trigger]:aria-expanded:bg-foreground/10!',
141
141
  className,
142
142
  )}
143
143
  align={align}
@@ -14,7 +14,7 @@ function InputGroup({ className, ...props }: React.ComponentProps<'div'>) {
14
14
  data-slot="input-group"
15
15
  role="group"
16
16
  className={cn(
17
- 'group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-derived-strong transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5',
17
+ 'group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5',
18
18
  className,
19
19
  )}
20
20
  {...props}
@@ -53,7 +53,7 @@ function InputOTPSlot({
53
53
  data-slot="input-otp-slot"
54
54
  data-active={isActive}
55
55
  className={cn(
56
- 'relative flex size-10 items-center justify-center border-y border-r border-derived-strong text-lg transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40',
56
+ 'relative flex size-10 items-center justify-center border-y border-r border-input text-lg transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40',
57
57
  className,
58
58
  )}
59
59
  {...props}
@@ -9,7 +9,7 @@ function Input({ className, type, ...props }: React.ComponentProps<'input'>) {
9
9
  type={type}
10
10
  data-slot="input"
11
11
  className={cn(
12
- 'h-8 w-full min-w-0 rounded-lg border border-derived-strong bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40',
12
+ 'h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40',
13
13
  className,
14
14
  )}
15
15
  {...props}
@@ -40,7 +40,7 @@ const itemVariants = cva(
40
40
  variants: {
41
41
  variant: {
42
42
  default: 'border-transparent',
43
- outline: 'border-derived-subtle',
43
+ outline: 'border-border',
44
44
  muted: 'border-transparent bg-muted/50',
45
45
  },
46
46
  size: {
@@ -51,8 +51,7 @@ const colorMap: Record<
51
51
 
52
52
  const variantClass: Record<KlexLogoVariant, string> = {
53
53
  'free-standing': '',
54
- 'boxed-square':
55
- 'rounded-[30%] [corner-shape:round] supports-[corner-shape:squircle]:rounded-[50%] supports-[corner-shape:squircle]:[corner-shape:squircle]',
54
+ 'boxed-square': 'rounded-[30%]',
56
55
  'boxed-round': 'rounded-full',
57
56
  };
58
57
 
@@ -13,7 +13,7 @@ const markerVariants = cva(
13
13
  default: '',
14
14
  separator:
15
15
  'before:mr-1 before:h-px before:min-w-0 before:flex-1 before:bg-border after:ml-1 after:h-px after:min-w-0 after:flex-1 after:bg-border',
16
- border: 'border-b border-derived-subtle pb-2',
16
+ border: 'border-b border-border pb-2',
17
17
  },
18
18
  },
19
19
  },
@@ -24,7 +24,7 @@ function NativeSelect({
24
24
  <select
25
25
  data-slot="native-select"
26
26
  data-size={size}
27
- className="h-8 w-full min-w-0 appearance-none rounded-lg border border-derived-strong bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40"
27
+ className="h-8 w-full min-w-0 appearance-none rounded-lg border border-input bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40"
28
28
  {...props}
29
29
  />
30
30
  <IconChevronDownOutline18
@@ -106,7 +106,7 @@ function QuestionnaireChoice({
106
106
  <QuestionnairePrimitive.Choice
107
107
  data-slot="questionnaire-choice"
108
108
  className={cn(
109
- 'group/questionnaire-choice relative flex min-h-11 cursor-pointer items-start gap-2.5 rounded-lg border border-derived bg-transparent px-3 py-2.5 text-start text-sm transition-colors outline-none select-none hover:bg-muted/50 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-3 has-[>input:focus-visible]:ring-ring/50 data-invalid:border-destructive dark:bg-input/20 data-checked:border-primary/40 data-checked:bg-muted dark:data-checked:bg-muted',
109
+ 'group/questionnaire-choice relative flex min-h-11 cursor-pointer items-start gap-2.5 rounded-lg border border-input bg-transparent px-3 py-2.5 text-start text-sm transition-colors outline-none select-none hover:bg-muted/50 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-3 has-[>input:focus-visible]:ring-ring/50 data-invalid:border-destructive dark:bg-input/20 data-checked:border-primary/40 data-checked:bg-muted dark:data-checked:bg-muted',
110
110
  'data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50',
111
111
  className,
112
112
  )}
@@ -119,7 +119,7 @@ function QuestionnaireChoice({
119
119
  <span
120
120
  aria-hidden="true"
121
121
  data-slot="questionnaire-choice-indicator"
122
- className="pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-full border border-derived-strong group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=checkbox]/questionnaire-choice:rounded-[4px] group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground dark:bg-input/30 dark:group-data-checked/questionnaire-choice:bg-primary"
122
+ className="pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-full border border-input group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=checkbox]/questionnaire-choice:rounded-[4px] group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground dark:bg-input/30 dark:group-data-checked/questionnaire-choice:bg-primary"
123
123
  >
124
124
  <span
125
125
  data-slot="questionnaire-choice-indicator-dot"
@@ -138,7 +138,7 @@ function QuestionnaireChoice({
138
138
  </QuestionnairePrimitive.ChoiceLabel>
139
139
  <QuestionnairePrimitive.ChoiceShortcut
140
140
  data-slot="questionnaire-choice-shortcut"
141
- className="pointer-events-none ms-auto hidden size-5 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-md border border-derived bg-background font-mono text-[0.625rem] leading-none font-medium text-muted-foreground group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[shortcut]/questionnaire-choice:inline-flex"
141
+ className="pointer-events-none ms-auto hidden size-5 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-md border border-input bg-background font-mono text-[0.625rem] leading-none font-medium text-muted-foreground group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[shortcut]/questionnaire-choice:inline-flex"
142
142
  />
143
143
  </QuestionnairePrimitive.Choice>
144
144
  );
@@ -169,7 +169,7 @@ function QuestionnaireInput({
169
169
  <QuestionnairePrimitive.Input
170
170
  data-slot="questionnaire-input"
171
171
  className={cn(
172
- 'h-8 min-h-11 w-full min-w-0 rounded-lg border border-derived bg-transparent px-2.5 py-1 text-base transition-[color,box-shadow,background-color] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 sm:min-h-0 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40',
172
+ 'h-8 min-h-11 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-[color,box-shadow,background-color] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 sm:min-h-0 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40',
173
173
  'selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground',
174
174
  className,
175
175
  )}
@@ -18,7 +18,7 @@ function RadioGroupItem({ className, ...props }: RadioPrimitive.Root.Props) {
18
18
  <RadioPrimitive.Root
19
19
  data-slot="radio-group-item"
20
20
  className={cn(
21
- 'group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-derived-strong transition-colors outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary',
21
+ 'group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input transition-colors outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary',
22
22
  className,
23
23
  )}
24
24
  {...props}
@@ -18,7 +18,12 @@ function ScrollArea({
18
18
  data-slot="scroll-area-viewport"
19
19
  className="size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1"
20
20
  >
21
- {children}
21
+ <ScrollAreaPrimitive.Content
22
+ data-slot="scroll-area-content"
23
+ className="flex min-h-full flex-col"
24
+ >
25
+ {children}
26
+ </ScrollAreaPrimitive.Content>
22
27
  </ScrollAreaPrimitive.Viewport>
23
28
  <ScrollBar />
24
29
  <ScrollAreaPrimitive.Corner />
@@ -45,7 +45,7 @@ function SelectTrigger({
45
45
  data-slot="select-trigger"
46
46
  data-size={size}
47
47
  className={cn(
48
- "flex w-fit items-center justify-between gap-1.5 rounded-lg border border-derived-strong bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
48
+ "flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
49
49
  className,
50
50
  )}
51
51
  {...props}
@@ -55,6 +55,8 @@ function SidebarProvider({
55
55
  defaultOpen = true,
56
56
  open: openProp,
57
57
  onOpenChange: setOpenProp,
58
+ openMobile: openMobileProp,
59
+ onOpenMobileChange: setOpenMobileProp,
58
60
  className,
59
61
  style,
60
62
  children,
@@ -63,9 +65,20 @@ function SidebarProvider({
63
65
  defaultOpen?: boolean;
64
66
  open?: boolean;
65
67
  onOpenChange?: (open: boolean) => void;
68
+ openMobile?: boolean;
69
+ onOpenMobileChange?: (open: boolean) => void;
66
70
  }) {
67
71
  const isMobile = useIsMobile();
68
- const [openMobile, setOpenMobile] = React.useState(false);
72
+ const [internalOpenMobile, setInternalOpenMobile] = React.useState(false);
73
+ const openMobile = openMobileProp ?? internalOpenMobile;
74
+ const setOpenMobile = React.useCallback(
75
+ (value: boolean | ((open: boolean) => boolean)) => {
76
+ const nextOpen = typeof value === 'function' ? value(openMobile) : value;
77
+ if (setOpenMobileProp) setOpenMobileProp(nextOpen);
78
+ else setInternalOpenMobile(nextOpen);
79
+ },
80
+ [openMobile, setOpenMobileProp],
81
+ );
69
82
 
70
83
  // This is the internal state of the sidebar.
71
84
  // We use openProp and setOpenProp for control from outside the component.
@@ -7,7 +7,7 @@ function Textarea({ className, ...props }: React.ComponentProps<'textarea'>) {
7
7
  <textarea
8
8
  data-slot="textarea"
9
9
  className={cn(
10
- 'flex field-sizing-content min-h-16 w-full rounded-lg border border-derived-strong bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40',
10
+ 'flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40',
11
11
  className,
12
12
  )}
13
13
  {...props}
@@ -9,7 +9,7 @@ const toggleVariants = cva(
9
9
  variants: {
10
10
  variant: {
11
11
  default: 'bg-transparent',
12
- outline: 'border border-derived bg-transparent hover:bg-muted',
12
+ outline: 'border border-input bg-transparent hover:bg-muted',
13
13
  },
14
14
  size: {
15
15
  default:
@@ -0,0 +1,28 @@
1
+ import type React from 'react';
2
+
3
+ import { Icon, type IconProps } from './Icon';
4
+
5
+ export const IconCalendarOutline18: React.FC<
6
+ IconProps & { strokeWidth?: number }
7
+ > = ({ strokeWidth = 1.5, ...props }) => (
8
+ <Icon size="18px" {...props}>
9
+ <rect
10
+ x="2.75"
11
+ y="3.75"
12
+ width="12.5"
13
+ height="11.5"
14
+ rx="2"
15
+ fill="none"
16
+ stroke="currentColor"
17
+ strokeWidth={strokeWidth}
18
+ />
19
+ <path
20
+ d="M6 2.25v3M12 2.25v3M2.75 7.25h12.5M6 10.25h1M11 10.25h1M6 12.75h1"
21
+ fill="none"
22
+ stroke="currentColor"
23
+ strokeLinecap="round"
24
+ strokeLinejoin="round"
25
+ strokeWidth={strokeWidth}
26
+ />
27
+ </Icon>
28
+ );
@@ -0,0 +1,18 @@
1
+ import type React from 'react';
2
+
3
+ import { Icon, type IconProps } from './Icon';
4
+
5
+ export const IconCrownOutline18: React.FC<
6
+ IconProps & { strokeWidth?: number }
7
+ > = ({ strokeWidth = 1.5, ...props }) => (
8
+ <Icon size="18px" {...props}>
9
+ <path
10
+ d="m2.75 5.75 3.5 2.5L9 3.25l2.75 5 3.5-2.5-1.5 6.5h-9.5l-1.5-6.5ZM4.75 15.25h8.5"
11
+ fill="none"
12
+ stroke="currentColor"
13
+ strokeLinecap="round"
14
+ strokeLinejoin="round"
15
+ strokeWidth={strokeWidth}
16
+ />
17
+ </Icon>
18
+ );
@@ -0,0 +1,18 @@
1
+ import type React from 'react';
2
+
3
+ import { Icon, type IconProps } from './Icon';
4
+
5
+ export const IconResizeGripOutline18: React.FC<
6
+ IconProps & { strokeWidth?: number }
7
+ > = ({ strokeWidth = 1.5, ...props }) => (
8
+ <Icon size="18px" {...props}>
9
+ <path
10
+ d="M3.75 14.25 14.25 3.75M9.25 14.25 14.25 9.25"
11
+ fill="none"
12
+ stroke="currentColor"
13
+ strokeLinecap="round"
14
+ strokeLinejoin="round"
15
+ strokeWidth={strokeWidth}
16
+ />
17
+ </Icon>
18
+ );
@@ -0,0 +1,26 @@
1
+ import type React from 'react';
2
+
3
+ import { Icon, type IconProps } from './Icon';
4
+
5
+ export const IconUserMinusOutline18: React.FC<
6
+ IconProps & { strokeWidth?: number }
7
+ > = ({ strokeWidth = 1.5, ...props }) => (
8
+ <Icon size="18px" {...props}>
9
+ <circle
10
+ cx="6.75"
11
+ cy="5.5"
12
+ r="2.75"
13
+ fill="none"
14
+ stroke="currentColor"
15
+ strokeWidth={strokeWidth}
16
+ />
17
+ <path
18
+ d="M1.75 15.25v-1a3.5 3.5 0 0 1 3.5-3.5h3a3.5 3.5 0 0 1 3.5 3.5v1M12.25 7.25h4"
19
+ fill="none"
20
+ stroke="currentColor"
21
+ strokeLinecap="round"
22
+ strokeLinejoin="round"
23
+ strokeWidth={strokeWidth}
24
+ />
25
+ </Icon>
26
+ );
@@ -0,0 +1,26 @@
1
+ import type React from 'react';
2
+
3
+ import { Icon, type IconProps } from './Icon';
4
+
5
+ export const IconUserOutline18: React.FC<
6
+ IconProps & { strokeWidth?: number }
7
+ > = ({ strokeWidth = 1.5, ...props }) => (
8
+ <Icon size="18px" {...props}>
9
+ <circle
10
+ cx="9"
11
+ cy="5.5"
12
+ r="2.75"
13
+ fill="none"
14
+ stroke="currentColor"
15
+ strokeWidth={strokeWidth}
16
+ />
17
+ <path
18
+ d="M3.75 15.25v-1a3.5 3.5 0 0 1 3.5-3.5h3.5a3.5 3.5 0 0 1 3.5 3.5v1"
19
+ fill="none"
20
+ stroke="currentColor"
21
+ strokeLinecap="round"
22
+ strokeLinejoin="round"
23
+ strokeWidth={strokeWidth}
24
+ />
25
+ </Icon>
26
+ );
@@ -1,6 +1,11 @@
1
1
  export { Icon, type IconProps } from './Icon';
2
2
  export { IconBrowserTab } from './IconBrowserTab';
3
+ export { IconCalendarOutline18 } from './IconCalendarOutline18';
4
+ export { IconCrownOutline18 } from './IconCrownOutline18';
3
5
  export { IconKlexOutline18 } from './IconKlexOutline18';
4
6
  export { IconLaptop } from './IconLaptop';
5
7
  export { IconNewTerminal } from './IconNewTerminal';
8
+ export { IconResizeGripOutline18 } from './IconResizeGripOutline18';
6
9
  export { IconSignOut } from './IconSignOut';
10
+ export { IconUserMinusOutline18 } from './IconUserMinusOutline18';
11
+ export { IconUserOutline18 } from './IconUserOutline18';
@@ -1,9 +1,14 @@
1
1
  export {
2
2
  IconBrowserTab,
3
+ IconCalendarOutline18,
4
+ IconCrownOutline18,
3
5
  IconKlexOutline18,
4
6
  IconLaptop,
5
7
  IconNewTerminal,
8
+ IconResizeGripOutline18,
6
9
  IconSignOut,
10
+ IconUserMinusOutline18,
11
+ IconUserOutline18,
7
12
  } from './custom/ui-outline-18';
8
13
  export {
9
14
  IconArrowUpOutline24,
@@ -0,0 +1,50 @@
1
+ import type React from 'react';
2
+ import { Icon, type IconProps } from './Icon';
3
+
4
+ interface IconArrowDoorOut3Outline18Props extends IconProps {
5
+ strokeWidth?: number;
6
+ }
7
+
8
+ export const IconArrowDoorOut3Outline18: React.FC<
9
+ IconArrowDoorOut3Outline18Props
10
+ > = ({ strokeWidth = 1.5, ...props }) => (
11
+ <Icon size="18px" {...props}>
12
+ <path
13
+ d="M11.75,5.75V3.25c0-.552-.448-1-1-1H4.25c-.552,0-1,.448-1,1V14.75c0,.552,.448,1,1,1h6.5c.552,0,1-.448,1-1v-2.5"
14
+ fill="none"
15
+ stroke="currentColor"
16
+ strokeLinecap="round"
17
+ strokeLinejoin="round"
18
+ strokeWidth={strokeWidth}
19
+ />
20
+ <polyline
21
+ points="14.5 6.25 17.25 9 14.5 11.75"
22
+ fill="none"
23
+ stroke="currentColor"
24
+ strokeLinecap="round"
25
+ strokeLinejoin="round"
26
+ strokeWidth={strokeWidth}
27
+ data-color="color-2"
28
+ />
29
+ <line
30
+ x1="17.25"
31
+ y1="9"
32
+ x2="11.25"
33
+ y2="9"
34
+ fill="none"
35
+ stroke="currentColor"
36
+ strokeLinecap="round"
37
+ strokeLinejoin="round"
38
+ strokeWidth={strokeWidth}
39
+ data-color="color-2"
40
+ />
41
+ <path
42
+ d="M3.457,2.648l3.321,2.059c.294,.182,.473,.504,.473,.85v6.887c0,.346-.179,.667-.473,.85l-3.322,2.06"
43
+ fill="none"
44
+ stroke="currentColor"
45
+ strokeLinecap="round"
46
+ strokeLinejoin="round"
47
+ strokeWidth={strokeWidth}
48
+ />
49
+ </Icon>
50
+ );
@@ -0,0 +1,40 @@
1
+ import type React from 'react';
2
+ import { Icon, type IconProps } from './Icon';
3
+
4
+ interface IconMediaPauseOutline18Props extends IconProps {
5
+ strokeWidth?: number;
6
+ }
7
+
8
+ export const IconMediaPauseOutline18: React.FC<
9
+ IconMediaPauseOutline18Props
10
+ > = ({ strokeWidth = 1.5, ...props }) => (
11
+ <Icon size="18px" {...props}>
12
+ <rect
13
+ x="2.75"
14
+ y="2.75"
15
+ width="3.5"
16
+ height="12.5"
17
+ rx="1"
18
+ ry="1"
19
+ fill="none"
20
+ stroke="currentColor"
21
+ strokeLinecap="round"
22
+ strokeLinejoin="round"
23
+ strokeWidth={strokeWidth}
24
+ />
25
+ <rect
26
+ x="11.75"
27
+ y="2.75"
28
+ width="3.5"
29
+ height="12.5"
30
+ rx="1"
31
+ ry="1"
32
+ fill="none"
33
+ stroke="currentColor"
34
+ strokeLinecap="round"
35
+ strokeLinejoin="round"
36
+ strokeWidth={strokeWidth}
37
+ data-color="color-2"
38
+ />
39
+ </Icon>
40
+ );
@@ -0,0 +1,22 @@
1
+ import type React from 'react';
2
+ import { Icon, type IconProps } from './Icon';
3
+
4
+ interface IconMediaPlayOutline18Props extends IconProps {
5
+ strokeWidth?: number;
6
+ }
7
+
8
+ export const IconMediaPlayOutline18: React.FC<IconMediaPlayOutline18Props> = ({
9
+ strokeWidth = 1.5,
10
+ ...props
11
+ }) => (
12
+ <Icon size="18px" {...props}>
13
+ <path
14
+ d="M5.245,2.878l9.492,5.256c.685,.379,.685,1.353,0,1.732L5.245,15.122c-.669,.371-1.495-.108-1.495-.866V3.744c0-.758,.825-1.237,1.495-.866Z"
15
+ fill="none"
16
+ stroke="currentColor"
17
+ strokeLinecap="round"
18
+ strokeLinejoin="round"
19
+ strokeWidth={strokeWidth}
20
+ />
21
+ </Icon>
22
+ );
@@ -0,0 +1,33 @@
1
+ import type React from 'react';
2
+ import { Icon, type IconProps } from './Icon';
3
+
4
+ interface IconPaperPlane2Outline18Props extends IconProps {
5
+ strokeWidth?: number;
6
+ }
7
+
8
+ export const IconPaperPlane2Outline18: React.FC<
9
+ IconPaperPlane2Outline18Props
10
+ > = ({ strokeWidth = 1.5, ...props }) => (
11
+ <Icon size="18px" {...props}>
12
+ <line
13
+ x1="15.813"
14
+ y1="2.187"
15
+ x2="7.657"
16
+ y2="10.343"
17
+ fill="none"
18
+ stroke="currentColor"
19
+ strokeLinecap="round"
20
+ strokeLinejoin="round"
21
+ strokeWidth={strokeWidth}
22
+ data-color="color-2"
23
+ />
24
+ <path
25
+ d="M15.947,2.73l-4.154,12.923c-.142,.443-.743,.509-.977,.106l-3.159-5.416L2.241,7.184c-.402-.235-.337-.835,.106-.977L15.27,2.053c.417-.134,.811,.26,.677,.677Z"
26
+ fill="none"
27
+ stroke="currentColor"
28
+ strokeLinecap="round"
29
+ strokeLinejoin="round"
30
+ strokeWidth={strokeWidth}
31
+ />
32
+ </Icon>
33
+ );
@@ -0,0 +1,50 @@
1
+ import type React from 'react';
2
+ import { Icon, type IconProps } from './Icon';
3
+
4
+ interface IconPaperPlaneFastOutline18Props extends IconProps {
5
+ strokeWidth?: number;
6
+ }
7
+
8
+ export const IconPaperPlaneFastOutline18: React.FC<
9
+ IconPaperPlaneFastOutline18Props
10
+ > = ({ strokeWidth = 1.5, ...props }) => (
11
+ <Icon size="18px" {...props}>
12
+ <line
13
+ x1="15.6123"
14
+ y1="2.3877"
15
+ x2="8.6213"
16
+ y2="9.3785"
17
+ fill="none"
18
+ stroke="currentColor"
19
+ strokeLinecap="round"
20
+ strokeLinejoin="round"
21
+ strokeWidth={strokeWidth}
22
+ />
23
+ <path
24
+ d="m15.7272,2.8531l-3.5606,11.0767c-.1217.3797-.6369.4363-.8374.0909l-2.7078-4.6422-4.6424-2.7077c-.3446-.2014-.2889-.7157.0909-.8374l11.0771-3.5605c.3574-.1149.6952.2229.5803.5803Z"
25
+ fill="none"
26
+ stroke="currentColor"
27
+ strokeLinecap="round"
28
+ strokeLinejoin="round"
29
+ strokeWidth={strokeWidth}
30
+ />
31
+ <path
32
+ d="m3.5,16l3.25-3.25"
33
+ fill="none"
34
+ stroke="currentColor"
35
+ strokeLinecap="round"
36
+ strokeLinejoin="round"
37
+ strokeWidth={strokeWidth}
38
+ data-color="color-2"
39
+ />
40
+ <path
41
+ d="m4.5,10.5l-1.5,1.5"
42
+ fill="none"
43
+ stroke="currentColor"
44
+ strokeLinecap="round"
45
+ strokeLinejoin="round"
46
+ strokeWidth={strokeWidth}
47
+ data-color="color-2"
48
+ />
49
+ </Icon>
50
+ );
@@ -0,0 +1,27 @@
1
+ import type React from 'react';
2
+
3
+ import { Icon, type IconProps } from './Icon';
4
+
5
+ export const IconUndo3Outline18: React.FC<
6
+ IconProps & { strokeWidth?: number }
7
+ > = ({ strokeWidth = 1.5, ...props }) => (
8
+ <Icon size="18px" {...props}>
9
+ <path
10
+ d="m3.4335,12.7902c1.2141,1.7867,3.2633,2.9598,5.5862,2.9598,3.7279,0,6.75-3.0221,6.75-6.75s-3.0221-6.75-6.75-6.75c-2.7957,0-5.1939,1.6996-6.2187,4.1212"
11
+ fill="none"
12
+ stroke="currentColor"
13
+ strokeLinecap="round"
14
+ strokeLinejoin="round"
15
+ strokeWidth={strokeWidth}
16
+ data-color="color-2"
17
+ />
18
+ <polyline
19
+ points="6.3707 6.215 2.538 6.75 2.0069 2.9168"
20
+ fill="none"
21
+ stroke="currentColor"
22
+ strokeLinecap="round"
23
+ strokeLinejoin="round"
24
+ strokeWidth={strokeWidth}
25
+ />
26
+ </Icon>
27
+ );
@@ -1,4 +1,5 @@
1
1
  export { Icon, type IconProps } from './Icon';
2
+ export { IconArrowDoorOut3Outline18 } from './IconArrowDoorOut3Outline18';
2
3
  export { IconArrowDownOutline18 } from './IconArrowDownOutline18';
3
4
  export { IconArrowRightOutline18 } from './IconArrowRightOutline18';
4
5
  export { IconArrowTurnRightOutline18 } from './IconArrowTurnRightOutline18';
@@ -80,6 +81,8 @@ export { IconMagnifierMinusOutline18 } from './IconMagnifierMinusOutline18';
80
81
  export { IconMagnifierOutline18 } from './IconMagnifierOutline18';
81
82
  export { IconMagnifierPlusOutline18 } from './IconMagnifierPlusOutline18';
82
83
  export { IconMicrophone3Outline18 } from './IconMicrophone3Outline18';
84
+ export { IconMediaPauseOutline18 } from './IconMediaPauseOutline18';
85
+ export { IconMediaPlayOutline18 } from './IconMediaPlayOutline18';
83
86
  export { IconMinusOutline18 } from './IconMinusOutline18';
84
87
  export { IconMoonOutline18 } from './IconMoonOutline18';
85
88
  export { IconMsgs2Outline18 } from './IconMsgs2Outline18';
@@ -91,6 +94,8 @@ export { IconOpenExternalOutline18 } from './IconOpenExternalOutline18';
91
94
  export { IconOpenRectArrowInOutline18 } from './IconOpenRectArrowInOutline18';
92
95
  export { IconPanelLeftOutline18 } from './IconPanelLeftOutline18';
93
96
  export { IconPaperclip2Outline18 } from './IconPaperclip2Outline18';
97
+ export { IconPaperPlane2Outline18 } from './IconPaperPlane2Outline18';
98
+ export { IconPaperPlaneFastOutline18 } from './IconPaperPlaneFastOutline18';
94
99
  export { IconPen2Outline18 } from './IconPen2Outline18';
95
100
  export { IconPenDrawSparkleOutline18 } from './IconPenDrawSparkleOutline18';
96
101
  export { IconPenOutline18 } from './IconPenOutline18';
@@ -131,6 +136,7 @@ export { IconThumbsDownOutline18 } from './IconThumbsDownOutline18';
131
136
  export { IconThumbsUpOutline18 } from './IconThumbsUpOutline18';
132
137
  export { IconTrashOutline18 } from './IconTrashOutline18';
133
138
  export { IconTriangleWarningOutline18 } from './IconTriangleWarningOutline18';
139
+ export { IconUndo3Outline18 } from './IconUndo3Outline18';
134
140
  export { IconUndoOutline18 } from './IconUndoOutline18';
135
141
  export { IconVersionsOutline18 } from './IconVersionsOutline18';
136
142
  export { IconVideoOutline18 } from './IconVideoOutline18';
@@ -2,7 +2,7 @@
2
2
  * Bridge Layer — Maps shadcn/ui token names to stage-ui color system.
3
3
  *
4
4
  * This file defines the shadcn semantic tokens (--background, --primary, etc.)
5
- * using the stage-ui OKLCH palette and theme tokens as source of truth.
5
+ * using the stage-ui OKLCH palette, with standard shadcn border/input tokens.
6
6
  *
7
7
  * Components keep using shadcn class names (bg-background, text-primary, etc.)
8
8
  * while the actual color values come from the stage-ui dynamic color system.
@@ -39,10 +39,9 @@
39
39
  --destructive: var(--color-error-solid);
40
40
  --destructive-foreground: var(--color-base-50);
41
41
 
42
- /* Border / input / ring — reference palette tokens directly to avoid
43
- circular refs with @theme inline (--color-border → --border → --color-border) */
44
- --border: var(--color-base-200);
45
- --input: var(--color-base-200);
42
+ /* Standard shadcn borders; focus ring follows the primary color. */
43
+ --border: oklch(0.922 0 0);
44
+ --input: oklch(0.922 0 0);
46
45
  --ring: var(--color-primary-solid);
47
46
 
48
47
  /* Chart colors (mapped to stage-ui primary/semantic hues) */
@@ -59,11 +58,11 @@
59
58
  --sidebar-primary-foreground: var(--color-solid-foreground);
60
59
  --sidebar-accent: var(--color-base-150);
61
60
  --sidebar-accent-foreground: var(--color-base-900);
62
- --sidebar-border: var(--color-base-200);
61
+ --sidebar-border: var(--border);
63
62
  --sidebar-ring: var(--color-primary-solid);
64
63
 
65
64
  /* Radius */
66
- --radius: 0.875rem;
65
+ --radius: 0.625rem;
67
66
  }
68
67
 
69
68
  :root.dark {
@@ -92,10 +91,9 @@
92
91
  --destructive: var(--color-error-solid);
93
92
  --destructive-foreground: var(--color-base-50);
94
93
 
95
- /* Border / input / ring — reference palette tokens directly to avoid
96
- circular refs with @theme inline */
97
- --border: var(--color-base-600);
98
- --input: var(--color-base-600);
94
+ /* Standard shadcn borders; focus ring follows the primary color. */
95
+ --border: oklch(1 0 0 / 10%);
96
+ --input: oklch(1 0 0 / 15%);
99
97
  --ring: var(--color-primary-solid);
100
98
 
101
99
  /* Chart colors */
@@ -116,6 +114,6 @@
116
114
  var(--color-base-600)
117
115
  );
118
116
  --sidebar-accent-foreground: var(--color-base-200);
119
- --sidebar-border: var(--color-border);
117
+ --sidebar-border: var(--border);
120
118
  --sidebar-ring: var(--color-primary-solid);
121
119
  }
@@ -1,15 +1,12 @@
1
1
  /**
2
2
  * Auto-derived color utilities
3
- * These derive border, ring, text, and background colors from the element's
3
+ * These derive text and background colors from the element's
4
4
  * background color (--cm-bg-color) which is automatically set by bg-* utilities
5
5
  * via the color-modifiers plugin.
6
6
  *
7
7
  * Falls back to semantic colors when no background is set.
8
8
  *
9
9
  * Usage examples:
10
- * border border-derived-subtle - subtle border derived from background
11
- * border border-derived - regular border derived from background
12
- * ring ring-derived-strong - strong ring derived from background
13
10
  * hover:bg-hover-derived - hover state background
14
11
  */
15
12
 
@@ -38,15 +35,6 @@
38
35
  --shortcut-solid-hover-derived-c: 0.008;
39
36
  --shortcut-solid-active-derived-l: 0.01;
40
37
  --shortcut-solid-active-derived-c: 0.006;
41
-
42
- --border-derived-subtle-l: -0.02;
43
- --border-derived-subtle-c: -0.003;
44
-
45
- --border-derived-l: -0.04;
46
- --border-derived-c: -0.007;
47
-
48
- --border-derived-strong-l: -0.06;
49
- --border-derived-strong-c: -0.01;
50
38
  }
51
39
 
52
40
  :root.dark {
@@ -68,91 +56,6 @@
68
56
  --shortcut-solid-hover-derived-c: -0.008;
69
57
  --shortcut-solid-active-derived-l: 0.01;
70
58
  --shortcut-solid-active-derived-c: -0.006;
71
-
72
- --border-derived-subtle-l: 0.09;
73
- --border-derived-subtle-c: 0.014;
74
-
75
- --border-derived-l: 0.12;
76
- --border-derived-c: 0.018;
77
-
78
- --border-derived-strong-l: 0.15;
79
- --border-derived-strong-c: 0.022;
80
- }
81
-
82
- /* Border utilities */
83
- @utility border-derived-subtle {
84
- border-color: oklch(
85
- from var(--cm-bg-color, var(--color-border))
86
- calc(l + var(--border-derived-subtle-l))
87
- calc(c + var(--border-derived-subtle-c)) h
88
- );
89
- }
90
-
91
- @utility border-derived {
92
- border-color: oklch(
93
- from var(--cm-bg-color, var(--color-border))
94
- calc(l + var(--border-derived-l)) calc(c + var(--border-derived-c)) h
95
- );
96
- }
97
-
98
- @utility border-derived-strong {
99
- border-color: oklch(
100
- from var(--cm-bg-color, var(--color-border))
101
- calc(l + var(--border-derived-strong-l))
102
- calc(c + var(--border-derived-strong-c)) h
103
- );
104
- }
105
-
106
- @utility border-derived-lighter-subtle {
107
- border-color: oklch(
108
- from var(--cm-bg-color, var(--color-border-subtle)) calc(l + 0.06)
109
- calc(c + 0.011) h
110
- );
111
- }
112
-
113
- @utility border-derived-lighter {
114
- border-color: oklch(
115
- from var(--cm-bg-color, var(--color-border-subtle)) calc(l + 0.09)
116
- calc(c + 0.014) h
117
- );
118
- }
119
-
120
- /* Ring utilities */
121
- @utility ring-derived-subtle {
122
- --tw-ring-color: oklch(
123
- from var(--cm-bg-color, var(--color-border-subtle))
124
- calc(l + var(--border-derived-subtle-l))
125
- calc(c + var(--border-derived-subtle-c)) h
126
- );
127
- }
128
-
129
- @utility ring-derived {
130
- --tw-ring-color: oklch(
131
- from var(--cm-bg-color, var(--color-border))
132
- calc(l + var(--border-derived-l)) calc(c + var(--border-derived-c)) h
133
- );
134
- }
135
-
136
- @utility ring-derived-strong {
137
- --tw-ring-color: oklch(
138
- from var(--cm-bg-color, var(--color-border))
139
- calc(l + var(--border-derived-strong-l))
140
- calc(c + var(--border-derived-strong-c)) h
141
- );
142
- }
143
-
144
- @utility ring-derived-lighter-subtle {
145
- --tw-ring-color: oklch(
146
- from var(--cm-bg-color, var(--color-border-subtle)) calc(l + 0.06)
147
- calc(c + 0.011) h
148
- );
149
- }
150
-
151
- @utility ring-derived-lighter {
152
- --tw-ring-color: oklch(
153
- from var(--cm-bg-color, var(--color-border-subtle)) calc(l + 0.09)
154
- calc(c + 0.014) h
155
- );
156
59
  }
157
60
 
158
61
  /* Text utilities */
@@ -7,7 +7,7 @@
7
7
  * This provides:
8
8
  * 1. The stage-ui OKLCH color palette (dynamic hue/chroma system)
9
9
  * 2. Theme tokens (light/dark mode semantic colors)
10
- * 3. Derived color utilities (border-derived, bg-hover-derived, etc.)
10
+ * 3. Derived color utilities (text-hover-derived, bg-hover-derived, etc.)
11
11
  * 4. Animations (caret-blink, switch-knob)
12
12
  * 5. Bundled Geist Variable font (woff2, weights 100–900, upright + italic)
13
13
  * 6. Bridge layer: shadcn token names → stage-ui color values
@@ -49,18 +49,13 @@
49
49
 
50
50
  @layer base {
51
51
  * {
52
- @apply border-derived-subtle outline-ring/50;
53
- corner-shape: squircle;
52
+ @apply border-border outline-ring/50;
54
53
  }
55
54
 
56
55
  body {
57
56
  @apply bg-background text-foreground;
58
57
  }
59
58
 
60
- .rounded-full {
61
- corner-shape: round;
62
- }
63
-
64
59
  :root {
65
60
  color-scheme: light;
66
61
  }
@@ -22,7 +22,6 @@
22
22
  --color-surface-2: var(--color-base-150);
23
23
  --color-surface-3: var(--color-base-200);
24
24
 
25
- --color-border: var(--color-base-200);
26
25
  --color-border-subtle: var(--color-base-150);
27
26
 
28
27
  --color-overlay: var(--color-base-950);
@@ -96,7 +95,6 @@
96
95
  oklch(0.295 0 none)
97
96
  );
98
97
 
99
- --color-border: var(--color-base-600);
100
98
  --color-border-subtle: var(--color-base-700);
101
99
 
102
100
  --color-success-foreground: var(--color-success-foreground-dark);