@q9labsai/chalk-ui 5.4.1 → 5.5.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.
package/dist/button.js CHANGED
@@ -26,7 +26,7 @@ var buttonVariants = cva(
26
26
  size: {
27
27
  default: "h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
28
28
  xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
29
- sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
29
+ sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-(length:--type-body-sm) in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
30
30
  lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
31
31
  icon: "size-8",
32
32
  "icon-xs": "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
package/dist/index.js CHANGED
@@ -186,7 +186,7 @@ var buttonVariants = cva2(
186
186
  size: {
187
187
  default: "h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
188
188
  xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
189
- sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
189
+ sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-(length:--type-body-sm) in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
190
190
  lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
191
191
  icon: "size-8",
192
192
  "icon-xs": "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
@@ -363,7 +363,7 @@ var menuContentVariants = cva3("z-50 min-w-(--anchor-width) origin-(--transform-
363
363
  variants: {
364
364
  tone: {
365
365
  default: "bg-popover text-popover-foreground border-border shadow-[var(--chalk-shadow-md)]",
366
- sidebar: "bg-sidebar text-sidebar-foreground border-sidebar-border shadow-[0_18px_50px_rgba(0,0,0,0.45)]"
366
+ sidebar: "bg-sidebar text-sidebar-foreground border-sidebar-border shadow-(--elevation-sidebar-menu)"
367
367
  }
368
368
  },
369
369
  defaultVariants: { tone: "default" }
@@ -389,7 +389,7 @@ function MenuGroup(props) {
389
389
  return /* @__PURE__ */ jsx5(MenuPrimitive.Group, { "data-slot": "menu-group", ...props });
390
390
  }
391
391
  function MenuGroupLabel({ className, ...props }) {
392
- return /* @__PURE__ */ jsx5(MenuPrimitive.GroupLabel, { "data-slot": "menu-group-label", className: cn("px-2 pt-1.5 pb-1 font-mono text-[10px] tracking-[0.08em] uppercase opacity-60", className), ...props });
392
+ return /* @__PURE__ */ jsx5(MenuPrimitive.GroupLabel, { "data-slot": "menu-group-label", className: cn("px-2 pt-1.5 pb-1 font-mono text-(length:--type-micro) tracking-[0.08em] uppercase opacity-60", className), ...props });
393
393
  }
394
394
  function MenuSeparator({ className, ...props }) {
395
395
  return /* @__PURE__ */ jsx5(MenuPrimitive.Separator, { "data-slot": "menu-separator", className: cn("bg-current/10 -mx-1 my-1 h-px", className), ...props });
@@ -499,7 +499,7 @@ function TooltipContent({ className, side = "top", sideOffset = 4, align = "cent
499
499
  ...props,
500
500
  children: [
501
501
  children,
502
- /* @__PURE__ */ jsx7(TooltipPrimitive.Arrow, { className: "size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 bg-foreground fill-foreground z-50 data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" })
502
+ /* @__PURE__ */ jsx7(TooltipPrimitive.Arrow, { className: "size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-(--corner-xs) data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 bg-foreground fill-foreground z-50 data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" })
503
503
  ]
504
504
  }
505
505
  ) }) });
@@ -663,7 +663,7 @@ function SidebarGroupLabel({ className, ...props }) {
663
663
  "data-slot": "sidebar-group-label",
664
664
  "data-sidebar": "group-label",
665
665
  className: cn(
666
- "text-sidebar-foreground/55 flex h-8 shrink-0 items-center rounded-md px-2 font-mono text-[10px] tracking-[0.09em] uppercase transition-[margin,opacity] duration-200 ease-linear",
666
+ "text-sidebar-foreground/55 flex h-8 shrink-0 items-center rounded-md px-2 font-mono text-(length:--type-micro) tracking-[0.09em] uppercase transition-[margin,opacity] duration-200 ease-linear",
667
667
  "group-data-[collapsible=icon]:pointer-events-none group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
668
668
  className
669
669
  ),
@@ -1106,7 +1106,7 @@ var toggleVariants = cva5(
1106
1106
  },
1107
1107
  size: {
1108
1108
  default: "h-8 min-w-8 px-2",
1109
- sm: "h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-1.5 text-[0.8rem]",
1109
+ sm: "h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-1.5 text-(length:--type-body-sm)",
1110
1110
  lg: "h-9 min-w-9 px-2.5"
1111
1111
  }
1112
1112
  },
package/dist/menu.js CHANGED
@@ -87,7 +87,7 @@ var menuContentVariants = cva("z-50 min-w-(--anchor-width) origin-(--transform-o
87
87
  variants: {
88
88
  tone: {
89
89
  default: "bg-popover text-popover-foreground border-border shadow-[var(--chalk-shadow-md)]",
90
- sidebar: "bg-sidebar text-sidebar-foreground border-sidebar-border shadow-[0_18px_50px_rgba(0,0,0,0.45)]"
90
+ sidebar: "bg-sidebar text-sidebar-foreground border-sidebar-border shadow-(--elevation-sidebar-menu)"
91
91
  }
92
92
  },
93
93
  defaultVariants: { tone: "default" }
@@ -113,7 +113,7 @@ function MenuGroup(props) {
113
113
  return /* @__PURE__ */ jsx(MenuPrimitive.Group, { "data-slot": "menu-group", ...props });
114
114
  }
115
115
  function MenuGroupLabel({ className, ...props }) {
116
- return /* @__PURE__ */ jsx(MenuPrimitive.GroupLabel, { "data-slot": "menu-group-label", className: cn("px-2 pt-1.5 pb-1 font-mono text-[10px] tracking-[0.08em] uppercase opacity-60", className), ...props });
116
+ return /* @__PURE__ */ jsx(MenuPrimitive.GroupLabel, { "data-slot": "menu-group-label", className: cn("px-2 pt-1.5 pb-1 font-mono text-(length:--type-micro) tracking-[0.08em] uppercase opacity-60", className), ...props });
117
117
  }
118
118
  function MenuSeparator({ className, ...props }) {
119
119
  return /* @__PURE__ */ jsx(MenuPrimitive.Separator, { "data-slot": "menu-separator", className: cn("bg-current/10 -mx-1 my-1 h-px", className), ...props });
package/dist/sidebar.js CHANGED
@@ -137,7 +137,7 @@ function TooltipContent({ className, side = "top", sideOffset = 4, align = "cent
137
137
  ...props,
138
138
  children: [
139
139
  children,
140
- /* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 bg-foreground fill-foreground z-50 data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" })
140
+ /* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-(--corner-xs) data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 bg-foreground fill-foreground z-50 data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" })
141
141
  ]
142
142
  }
143
143
  ) }) });
@@ -301,7 +301,7 @@ function SidebarGroupLabel({ className, ...props }) {
301
301
  "data-slot": "sidebar-group-label",
302
302
  "data-sidebar": "group-label",
303
303
  className: cn(
304
- "text-sidebar-foreground/55 flex h-8 shrink-0 items-center rounded-md px-2 font-mono text-[10px] tracking-[0.09em] uppercase transition-[margin,opacity] duration-200 ease-linear",
304
+ "text-sidebar-foreground/55 flex h-8 shrink-0 items-center rounded-md px-2 font-mono text-(length:--type-micro) tracking-[0.09em] uppercase transition-[margin,opacity] duration-200 ease-linear",
305
305
  "group-data-[collapsible=icon]:pointer-events-none group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
306
306
  className
307
307
  ),
package/dist/styles.css CHANGED
@@ -52,6 +52,50 @@
52
52
  Chalk design tokens - scoped to [data-chalk] containers
53
53
  ============================================================================= */
54
54
 
55
+ /* The design-token scale. Source of truth: scripts/design-tokens/scale.json (checked by scale.test.mjs).
56
+ Spacing names follow the four-pixel grid in design.md (`space-3` is 12px); type is named by role. */
57
+ :root,
58
+ [data-chalk] {
59
+ --space-0-5: 2px;
60
+ --space-1: 4px;
61
+ --space-1-5: 6px;
62
+ --space-2: 8px;
63
+ --space-2-5: 10px;
64
+ --space-3: 12px;
65
+ --space-4: 16px;
66
+ --space-5: 20px;
67
+ --space-6: 24px;
68
+ --space-8: 32px;
69
+ --space-10: 40px;
70
+ --space-12: 48px;
71
+ --space-14: 56px;
72
+ --space-16: 64px;
73
+ --space-22: 88px;
74
+
75
+ --type-micro: 10px;
76
+ --type-caption: 12px;
77
+ --type-body-sm: 13px;
78
+ --type-body: 14px;
79
+ --type-body-lg: 15px;
80
+ --type-lead: 16px;
81
+ --type-title-sm: 20px;
82
+ --type-title: 24px;
83
+ --type-headline: 28px;
84
+ --type-display-sm: 36px;
85
+ --type-display: 44px;
86
+ --type-display-lg: 56px;
87
+ --type-hero: 92px;
88
+
89
+ --corner-xs: 2px;
90
+ --corner-sm: 4px;
91
+ --corner-md: 6px;
92
+ --corner-lg: 8px;
93
+ --corner-xl: 12px;
94
+ --corner-2xl: 16px;
95
+ --corner-3xl: 24px;
96
+ --corner-pill: 999px;
97
+ }
98
+
55
99
  [data-chalk]:not([data-chalk] [data-chalk]) {
56
100
  --background: var(--chalk-canvas);
57
101
  --foreground: var(--chalk-text);
@@ -74,15 +118,16 @@
74
118
  --border: var(--chalk-line);
75
119
  --input: var(--chalk-line-strong);
76
120
  --ring: var(--chalk-focus);
77
- --chalk-canvas: #0b0c0e;
78
- --chalk-surface: #151619;
79
- --chalk-raised: #1d1f23;
80
- --chalk-hover: #272a2f;
81
- --chalk-pressed: #30333a;
82
- --chalk-line: rgba(255, 255, 255, 0.08);
83
- --chalk-line-strong: rgba(255, 255, 255, 0.14);
121
+ --chalk-canvas: #000000;
122
+ --chalk-surface: #060606;
123
+ --chalk-raised: #0c0c0c;
124
+ --chalk-hover: #161616;
125
+ --chalk-pressed: #1f1f1f;
126
+ --chalk-line: rgba(255, 255, 255, 0.045);
127
+ --chalk-line-strong: rgba(255, 255, 255, 0.08);
84
128
  --chalk-text: #ececee;
85
129
  --chalk-muted-text: #9a9ca3;
130
+ --chalk-faint-text: #5f6168;
86
131
  --chalk-danger: #e5484d;
87
132
  --chalk-danger-pressed: #c93d42;
88
133
  --chalk-danger-hover: #ec5d61;
@@ -90,26 +135,27 @@
90
135
  --chalk-positive: #80b879;
91
136
  --chalk-warning: #d9b641;
92
137
  --chalk-accent: #55aac9;
93
- --chalk-tile: #151619;
94
- --chalk-popover: #1d1f23;
138
+ --chalk-tile: #060606;
139
+ --chalk-popover: #0c0c0c;
95
140
  --chalk-text-strong: #fff;
96
141
  --chalk-soft-text: #c4c6cc;
97
142
  --chalk-wash: rgba(255, 255, 255, 0.05);
98
143
  --chalk-wash-strong: rgba(255, 255, 255, 0.08);
99
- --chalk-chrome: #0b0c0e;
100
- --chalk-stage: #0b0c0e;
101
- --chalk-accent-text: #0b0c0e;
102
- --chalk-danger-surface: #1d1f23;
144
+ --chalk-chrome: #000000;
145
+ --chalk-stage: #000000;
146
+ --chalk-accent-text: #000000;
147
+ --chalk-danger-surface: #0c0c0c;
103
148
  --chalk-focus: #ececee;
104
149
  --chalk-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
105
- --chalk-overlay: rgba(12, 14, 18, 0.75);
106
- --chalk-overlay-strong: rgba(12, 14, 18, 0.82);
150
+ --chalk-overlay: rgba(0, 0, 0, 0.75);
151
+ --chalk-overlay-strong: rgba(0, 0, 0, 0.82);
107
152
  --chalk-photo-viewer-overlay: rgba(8, 8, 10, 0.94);
108
- --chalk-overlay-hover: rgba(40, 42, 48, 0.95);
153
+ --chalk-overlay-hover: rgba(34, 34, 34, 0.95);
109
154
  --chalk-on-overlay: #ffffff;
110
155
  --chalk-overlay-warning: #e2bd3a;
111
156
  --chalk-overlay-danger: #ff6b6b;
112
157
  --chalk-scrim: rgba(0, 0, 0, 0.55);
158
+ --chalk-sheet-scrim: var(--chalk-scrim);
113
159
  --chalk-app-canvas: var(--chalk-canvas);
114
160
  --chalk-app-chrome: var(--chalk-canvas);
115
161
  --chalk-app-stage: var(--chalk-canvas);
@@ -183,6 +229,10 @@
183
229
  color-scheme: dark;
184
230
  }
185
231
  [data-chalk][data-chalk-theme="light"]:not([data-chalk] [data-chalk]) {
232
+ --chalk-overlay: rgba(12, 14, 18, 0.75);
233
+ --chalk-overlay-strong: rgba(12, 14, 18, 0.82);
234
+ --chalk-overlay-hover: rgba(40, 42, 48, 0.95);
235
+ --chalk-sheet-scrim: rgba(0, 0, 0, 0.38);
186
236
  --chalk-canvas: #f3f3f5;
187
237
  --chalk-surface: #ffffff;
188
238
  --chalk-raised: #ececf0;
@@ -195,6 +245,7 @@
195
245
  --chalk-text: #18181b;
196
246
  --chalk-text-strong: #000;
197
247
  --chalk-muted-text: #5c5d65;
248
+ --chalk-faint-text: #8b8c94;
198
249
  --chalk-soft-text: #3d3e45;
199
250
  --chalk-danger: #d93a3f;
200
251
  --chalk-danger-pressed: #c93d42;
@@ -233,7 +284,7 @@
233
284
  color: var(--foreground);
234
285
  background: var(--background);
235
286
  line-height: 1.5;
236
- font-size: 16px;
287
+ font-size: var(--type-lead);
237
288
  text-align: left;
238
289
  text-transform: none;
239
290
  letter-spacing: normal;
@@ -335,26 +386,22 @@
335
386
  @keyframes chalk-speaking-pulse {
336
387
  0%,
337
388
  100% {
338
- box-shadow:
339
- 0 0 0 2px var(--chalk-accent-speaking),
340
- 0 0 16px var(--chalk-accent-speaking-glow);
389
+ box-shadow: var(--elevation-speaking-pulse-low);
341
390
  }
342
391
 
343
392
  50% {
344
- box-shadow:
345
- 0 0 0 3px var(--chalk-accent-speaking),
346
- 0 0 28px var(--chalk-accent-speaking-glow);
393
+ box-shadow: var(--elevation-speaking-pulse-high);
347
394
  }
348
395
  }
349
396
 
350
397
  @keyframes chalk-speaking-glow {
351
398
  0%,
352
399
  100% {
353
- box-shadow: 0 0 0 2px var(--chalk-accent-speaking);
400
+ box-shadow: var(--elevation-speaking-ring);
354
401
  }
355
402
 
356
403
  50% {
357
- box-shadow: 0 0 0 4px var(--chalk-accent-speaking);
404
+ box-shadow: var(--elevation-speaking-ring-wide);
358
405
  }
359
406
  }
360
407
 
@@ -538,12 +585,12 @@
538
585
  0%,
539
586
  100% {
540
587
  opacity: 1;
541
- box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
588
+ box-shadow: var(--elevation-danger-pulse-rest);
542
589
  }
543
590
 
544
591
  50% {
545
592
  opacity: 0.8;
546
- box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
593
+ box-shadow: var(--elevation-danger-pulse-wide);
547
594
  }
548
595
  }
549
596
 
@@ -609,15 +656,11 @@
609
656
  @keyframes chalk-glow-pulse {
610
657
  0%,
611
658
  100% {
612
- box-shadow:
613
- 0 0 0 0 rgba(27, 182, 166, 0.4),
614
- 0 0 20px rgba(27, 182, 166, 0.2);
659
+ box-shadow: var(--elevation-glow-rest);
615
660
  }
616
661
 
617
662
  50% {
618
- box-shadow:
619
- 0 0 0 8px rgba(27, 182, 166, 0),
620
- 0 0 40px rgba(27, 182, 166, 0.3);
663
+ box-shadow: var(--elevation-glow-wide);
621
664
  }
622
665
  }
623
666
 
@@ -803,7 +846,8 @@
803
846
  content: "";
804
847
  position: absolute;
805
848
  inset: -8px;
806
- border-radius: 9999px;
849
+ border-radius: var(--corner-pill);
850
+ /* token-ratchet-ignore: the halo reads --chalk-participant-color, which is set on each tile, so no root token can hold it */
807
851
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--chalk-participant-color) 18%, transparent);
808
852
  animation: chalk-voice-halo-breathe 1.8s ease-in-out infinite;
809
853
  pointer-events: none;
@@ -813,15 +857,13 @@
813
857
  .chalk-sound-bars {
814
858
  display: inline-flex;
815
859
  align-items: center;
816
- gap: 2px;
860
+ gap: var(--space-0-5);
817
861
  height: 12px;
818
862
  }
819
863
 
820
864
  /* Faces float over the board on a narrow stage, so an edge and a shadow lift each face off the drawing. */
821
865
  [data-stage-role="float"] [data-part="stage-tile"] {
822
- box-shadow:
823
- 0 0 0 1px var(--chalk-app-line-strong),
824
- 0 6px 18px rgb(0 0 0 / 0.5);
866
+ box-shadow: var(--elevation-float-face);
825
867
  }
826
868
 
827
869
  /* Floating phone faces keep their name and menu reachable in the small tile. */
@@ -830,8 +872,8 @@
830
872
  left: 4px;
831
873
  bottom: 4px;
832
874
  height: 18px;
833
- padding: 0 5px;
834
- font-size: 11px;
875
+ padding: 0 var(--space-1-5);
876
+ font-size: var(--type-caption);
835
877
  }
836
878
  [data-part="tile-full-name"],
837
879
  [data-part="tile-following"] {
@@ -852,7 +894,7 @@
852
894
  top: 4px;
853
895
  left: 4px;
854
896
  height: 18px;
855
- padding: 0 5px;
897
+ padding: 0 var(--space-1-5);
856
898
  }
857
899
  }
858
900
 
@@ -866,7 +908,7 @@
866
908
  display: block;
867
909
  width: 3px;
868
910
  height: 100%;
869
- border-radius: 2px;
911
+ border-radius: var(--corner-xs);
870
912
  background: currentColor;
871
913
  transform-origin: center;
872
914
  animation: chalk-sound-bar 0.9s ease-in-out infinite;
@@ -1006,7 +1048,7 @@
1006
1048
  }
1007
1049
 
1008
1050
  .chalk-animate-shimmer {
1009
- background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
1051
+ background: linear-gradient(90deg, transparent 0%, var(--chalk-shimmer) 50%, transparent 100%);
1010
1052
  background-size: 200% 100%;
1011
1053
  animation: chalk-shimmer 2s ease-in-out infinite;
1012
1054
  }
@@ -1080,17 +1122,17 @@
1080
1122
  }
1081
1123
  .chalk-pill-button {
1082
1124
  height: 36px;
1083
- padding: 0 14px;
1084
- border-radius: 999px;
1125
+ padding: 0 var(--space-3);
1126
+ border-radius: var(--corner-pill);
1085
1127
  background: var(--chalk-hover);
1086
1128
  color: var(--chalk-text);
1087
1129
  font-weight: 600;
1088
- font-size: 13px;
1130
+ font-size: var(--type-body-sm);
1089
1131
  white-space: nowrap;
1090
1132
  display: inline-flex;
1091
1133
  align-items: center;
1092
1134
  justify-content: center;
1093
- gap: 6px;
1135
+ gap: var(--space-1-5);
1094
1136
  transition:
1095
1137
  transform 0.15s ease-out,
1096
1138
  opacity 0.15s;
@@ -1117,21 +1159,21 @@
1117
1159
  position: absolute;
1118
1160
  z-index: 80;
1119
1161
  min-width: 250px;
1120
- padding: 6px;
1162
+ padding: var(--space-1-5);
1121
1163
  background: var(--chalk-popover);
1122
1164
  border: 1px solid var(--chalk-line-strong);
1123
- border-radius: 12px;
1124
- box-shadow: 0 12px 32px var(--chalk-menu-shadow-color);
1165
+ border-radius: var(--corner-xl);
1166
+ box-shadow: var(--elevation-menu);
1125
1167
  animation: pin 0.18s var(--chalk-ease-out-expo);
1126
1168
  }
1127
1169
  .chalk-menu-item {
1128
1170
  display: flex;
1129
1171
  align-items: center;
1130
- gap: 10px;
1172
+ gap: var(--space-2-5);
1131
1173
  width: 100%;
1132
1174
  min-height: 40px;
1133
- padding: 0 10px;
1134
- border-radius: 9px;
1175
+ padding: 0 var(--space-2-5);
1176
+ border-radius: var(--corner-lg);
1135
1177
  text-align: left;
1136
1178
  white-space: nowrap;
1137
1179
  }
@@ -1147,19 +1189,19 @@
1147
1189
  flex: none;
1148
1190
  }
1149
1191
  .chalk-menu-label {
1150
- font-size: 12px;
1192
+ font-size: var(--type-caption);
1151
1193
  font-weight: 600;
1152
1194
  color: var(--chalk-muted-text);
1153
- padding: 8px 10px 4px;
1195
+ padding: var(--space-2) var(--space-2-5) var(--space-1);
1154
1196
  }
1155
1197
  .chalk-tooltip {
1156
1198
  position: absolute;
1157
1199
  z-index: 95;
1158
- padding: 5px 9px;
1159
- border-radius: 7px;
1200
+ padding: var(--space-1-5) var(--space-2);
1201
+ border-radius: var(--corner-md);
1160
1202
  background: var(--chalk-text);
1161
1203
  color: var(--chalk-canvas);
1162
- font-size: 12px;
1204
+ font-size: var(--type-caption);
1163
1205
  font-weight: 600;
1164
1206
  white-space: nowrap;
1165
1207
  pointer-events: none;
@@ -1172,15 +1214,15 @@
1172
1214
  .chalk-segmented {
1173
1215
  margin-left: auto;
1174
1216
  display: flex;
1175
- padding: 3px;
1176
- border-radius: 999px;
1217
+ padding: var(--space-1);
1218
+ border-radius: var(--corner-pill);
1177
1219
  background: var(--chalk-surface);
1178
1220
  }
1179
1221
  .chalk-segmented button {
1180
1222
  height: 38px;
1181
- padding: 0 14px;
1182
- border-radius: 999px;
1183
- font-size: 14px;
1223
+ padding: 0 var(--space-3);
1224
+ border-radius: var(--corner-pill);
1225
+ font-size: var(--type-body);
1184
1226
  font-weight: 600;
1185
1227
  color: var(--chalk-muted-text);
1186
1228
  }
@@ -1234,6 +1276,18 @@
1234
1276
  opacity: 1;
1235
1277
  transform: none;
1236
1278
  }
1279
+ .chalk-invite-qr {
1280
+ display: block;
1281
+ flex: none;
1282
+ width: 176px;
1283
+ height: 176px;
1284
+ border-radius: var(--corner-xl);
1285
+ overflow: hidden;
1286
+ font-size: 0;
1287
+ }
1288
+ [data-chalk-theme="light"] .chalk-invite-qr {
1289
+ box-shadow: var(--elevation-hairline-strong);
1290
+ }
1237
1291
  .chalk-toasts {
1238
1292
  position: absolute;
1239
1293
  left: 0;
@@ -1243,7 +1297,7 @@
1243
1297
  display: flex;
1244
1298
  flex-direction: column;
1245
1299
  align-items: center;
1246
- gap: 8px;
1300
+ gap: var(--space-2);
1247
1301
  z-index: 45;
1248
1302
  pointer-events: none;
1249
1303
  }
@@ -1271,44 +1325,90 @@
1271
1325
  .chalk-toast {
1272
1326
  display: flex;
1273
1327
  align-items: center;
1274
- gap: 10px;
1328
+ gap: var(--space-2-5);
1275
1329
  flex-shrink: 0;
1276
1330
  min-height: 48px;
1277
1331
  max-width: calc(100% - 32px);
1278
- padding: 6px 6px 6px 14px;
1332
+ padding: var(--space-1-5) var(--space-1-5) var(--space-1-5) var(--space-3);
1279
1333
  background: var(--chalk-popover);
1280
1334
  border: 1px solid var(--chalk-line);
1281
- border-radius: 12px;
1282
- box-shadow: 0 8px 24px var(--chalk-toast-shadow-color);
1335
+ border-radius: var(--corner-xl);
1336
+ box-shadow: var(--elevation-toast);
1283
1337
  pointer-events: auto;
1284
1338
  animation: tin 0.2s var(--chalk-ease-out-expo);
1285
1339
  transition:
1286
1340
  opacity 0.15s ease-out,
1287
1341
  transform 0.15s ease-out;
1288
1342
  }
1289
- .chalk-toast > span {
1343
+ /* One icon slot for every notice: a caller's icon or avatar, else the severity icon. Severity shows in that icon and a thin border tint only. */
1344
+ .chalk-toast {
1345
+ --chalk-toast-accent: var(--chalk-muted-text);
1346
+ font-size: var(--type-body-sm);
1347
+ }
1348
+ .chalk-toast[data-type="success"] {
1349
+ --chalk-toast-accent: var(--chalk-positive);
1350
+ }
1351
+ .chalk-toast[data-type="warning"] {
1352
+ --chalk-toast-accent: var(--chalk-warning);
1353
+ }
1354
+ .chalk-toast[data-type="error"] {
1355
+ --chalk-toast-accent: var(--chalk-danger-text);
1356
+ }
1357
+ .chalk-toast:not([data-type="info"]) {
1358
+ border-color: color-mix(in srgb, var(--chalk-toast-accent) 40%, var(--chalk-line));
1359
+ }
1360
+ .chalk-toast [data-part="toast-icon"] {
1361
+ display: grid;
1362
+ place-items: center;
1363
+ flex: none;
1364
+ width: 28px;
1365
+ height: 28px;
1366
+ color: var(--chalk-toast-accent);
1367
+ }
1368
+ /* Decorative defaults are bundled with the shared surface, never fetched after an action. */
1369
+ .chalk-toast [data-part="toast-icon"]:empty::before {
1370
+ content: "";
1371
+ width: 20px;
1372
+ height: 20px;
1373
+ background: currentColor;
1374
+ mask: var(--chalk-toast-glyph) center / contain no-repeat;
1375
+ }
1376
+ .chalk-toast {
1377
+ --chalk-toast-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7v.01'/%3E%3C/svg%3E");
1378
+ }
1379
+ .chalk-toast[data-type="success"] {
1380
+ --chalk-toast-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E");
1381
+ }
1382
+ .chalk-toast:is([data-type="warning"], [data-type="error"]) {
1383
+ --chalk-toast-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m10.3 3.9-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.7-3.1l-8-14a2 2 0 0 0-3.4 0ZM12 9v4M12 17v.01'/%3E%3C/svg%3E");
1384
+ }
1385
+ .chalk-toast [data-part="toast-icon"] svg {
1386
+ width: 20px;
1387
+ height: 20px;
1388
+ }
1389
+ .chalk-toast > [data-part="toast-message"] {
1290
1390
  /* Long names, links and error tokens wrap inside the notice instead of widening it past the call. */
1291
1391
  min-width: 0;
1292
1392
  overflow-wrap: anywhere;
1293
- margin-right: 4px;
1393
+ margin-right: var(--space-1);
1294
1394
  line-height: 1.35;
1295
- padding: 4px 0;
1395
+ padding: var(--space-1) 0;
1296
1396
  }
1297
1397
  .chalk-toast[data-type="error"] {
1298
1398
  max-width: min(560px, calc(100% - 32px));
1299
1399
  }
1300
1400
  /* The header's notice button stays when a phone hides the header's other controls. */
1301
1401
  .chalk-notice-button {
1302
- margin: 0 8px 0 auto;
1402
+ margin: 0 var(--space-2) 0 auto;
1303
1403
  display: flex;
1304
1404
  align-items: center;
1305
1405
  justify-content: center;
1306
- gap: 4px;
1406
+ gap: var(--space-1);
1307
1407
  flex-shrink: 0;
1308
1408
  min-width: 44px;
1309
1409
  height: 44px;
1310
- padding: 0 12px;
1311
- border-radius: 999px;
1410
+ padding: 0 var(--space-3);
1411
+ border-radius: var(--corner-pill);
1312
1412
  background: var(--chalk-danger-surface);
1313
1413
  color: var(--chalk-danger-text);
1314
1414
  font-weight: 600;
@@ -1317,20 +1417,20 @@
1317
1417
  .chalk-notice-list {
1318
1418
  z-index: 85;
1319
1419
  display: grid;
1320
- gap: 4px;
1420
+ gap: var(--space-1);
1321
1421
  /* The room left in the call, not the window, so a short or narrow embedded call shows the list whole and scrolls to its last notice. */
1322
1422
  width: min(360px, var(--available-width, 360px));
1323
1423
  max-height: var(--available-height, calc(100vh - 80px));
1324
1424
  overflow: auto;
1325
- padding: 6px;
1425
+ padding: var(--space-1-5);
1326
1426
  }
1327
1427
  .chalk-notice {
1328
1428
  display: flex;
1329
1429
  align-items: center;
1330
- gap: 10px;
1430
+ gap: var(--space-2-5);
1331
1431
  min-height: 48px;
1332
- padding: 6px 6px 6px 12px;
1333
- border-radius: 10px;
1432
+ padding: var(--space-1-5) var(--space-1-5) var(--space-1-5) var(--space-3);
1433
+ border-radius: var(--corner-xl);
1334
1434
  }
1335
1435
  .chalk-notice > span {
1336
1436
  flex: 1;
@@ -1347,6 +1447,45 @@
1347
1447
  --chalk-menu-shadow-color: rgba(0, 0, 0, 0.5);
1348
1448
  --chalk-toast-shadow-color: rgba(0, 0, 0, 0.4);
1349
1449
  }
1450
+
1451
+ /* Shadows and rings by role. Each token is defined here, beside the colors it reads, so a component writes
1452
+ `box-shadow: var(--elevation-menu)` and never a raw offset or blur. */
1453
+ [data-chalk] {
1454
+ --elevation-speaking-band: inset 0 0 0 3px color-mix(in srgb, var(--chalk-on-overlay) 90%, transparent), inset 0 0 0 4px var(--chalk-scrim);
1455
+ --elevation-hairline: 0 0 0 1px var(--chalk-line);
1456
+ --elevation-hairline-strong: 0 0 0 1px var(--chalk-line-strong);
1457
+ --elevation-outline: 0 0 0 1px var(--chalk-text);
1458
+ --elevation-outline-danger: 0 0 0 1px var(--chalk-danger-text);
1459
+ --elevation-segment-light: 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--chalk-line);
1460
+ --elevation-hairline-inset: inset 0 0 0 1px var(--chalk-line);
1461
+ --elevation-divider-top: inset 0 1px 0 var(--chalk-line);
1462
+ --elevation-divider-bottom: inset 0 -1px 0 var(--chalk-line-strong);
1463
+ --elevation-halo-canvas: 0 0 0 2px var(--chalk-canvas);
1464
+ --elevation-halo-raised: 0 0 0 2px var(--chalk-raised);
1465
+ --elevation-halo-surface: 0 0 0 2px var(--chalk-surface);
1466
+ --elevation-focus-ring: 0 0 0 2px var(--chalk-text);
1467
+ --elevation-focus-ring-inset: inset 0 0 0 2px var(--chalk-text);
1468
+ --elevation-speaking-ring: 0 0 0 2px var(--chalk-accent-speaking);
1469
+ --elevation-speaking-ring-wide: 0 0 0 4px var(--chalk-accent-speaking);
1470
+ --elevation-speaking-pulse-low: 0 0 0 2px var(--chalk-accent-speaking), 0 0 16px var(--chalk-accent-speaking-glow);
1471
+ --elevation-speaking-pulse-high: 0 0 0 3px var(--chalk-accent-speaking), 0 0 28px var(--chalk-accent-speaking-glow);
1472
+ --elevation-menu: 0 12px 32px var(--chalk-menu-shadow-color);
1473
+ --elevation-toast: 0 8px 24px var(--chalk-toast-shadow-color);
1474
+ --elevation-segment: 0 1px 2px var(--chalk-segment-shadow);
1475
+ --elevation-menu-light: 0 0 0 1px var(--chalk-line), 0 12px 32px rgba(0, 0, 0, 0.12);
1476
+ --elevation-float-face: 0 0 0 1px var(--chalk-app-line-strong), 0 6px 18px rgb(0 0 0 / 0.5);
1477
+ --elevation-sidebar-menu: 0 18px 50px rgba(0, 0, 0, 0.45);
1478
+ --elevation-danger-pulse-rest: 0 0 0 0 rgba(239, 68, 68, 0.7);
1479
+ --elevation-danger-pulse-wide: 0 0 0 8px rgba(239, 68, 68, 0);
1480
+ --elevation-glow-rest: 0 0 0 0 rgba(27, 182, 166, 0.4), 0 0 20px rgba(27, 182, 166, 0.2);
1481
+ --elevation-glow-wide: 0 0 0 8px rgba(27, 182, 166, 0), 0 0 40px rgba(27, 182, 166, 0.3);
1482
+ --chalk-file-other: #5c5d65;
1483
+ --chalk-file-pdf: #c42b2b;
1484
+ --chalk-file-doc: #2f5fb3;
1485
+ --chalk-file-xls: #1e7a46;
1486
+ --chalk-file-ppt: #b8481e;
1487
+ --chalk-shimmer: rgba(255, 255, 255, 0.4);
1488
+ }
1350
1489
  .chalk-icon-button[data-chalk-size="md"]:not([data-chalk-tone="danger"]) {
1351
1490
  width: 40px;
1352
1491
  height: 40px;
@@ -1396,7 +1535,7 @@
1396
1535
  position: relative;
1397
1536
  width: 36px;
1398
1537
  height: 22px;
1399
- border-radius: 999px;
1538
+ border-radius: var(--corner-pill);
1400
1539
  background: var(--chalk-pressed);
1401
1540
  flex: none;
1402
1541
  }
@@ -1420,7 +1559,7 @@
1420
1559
  position: absolute;
1421
1560
  inset: 0;
1422
1561
  z-index: 38;
1423
- background: var(--chalk-scrim);
1562
+ background: var(--chalk-sheet-scrim);
1424
1563
  transition: opacity 0.2s ease-out;
1425
1564
  }
1426
1565
  .chalk-sheet-scrim[data-starting-style],
@@ -1433,21 +1572,36 @@
1433
1572
  right: 0;
1434
1573
  bottom: 0;
1435
1574
  z-index: 41;
1436
- padding: 8px 12px 42px;
1575
+ padding: 0 var(--space-3) var(--chalk-sheet-bottom);
1437
1576
  background: var(--chalk-surface);
1438
- border-radius: 24px 24px 0 0;
1577
+ border-radius: var(--corner-3xl) var(--corner-3xl) 0 0;
1439
1578
  transition: transform 0.24s var(--chalk-ease-out-expo);
1440
1579
  }
1441
1580
  .chalk-sheet[data-starting-style],
1442
1581
  .chalk-sheet[data-ending-style] {
1443
1582
  transform: translateY(100%);
1444
1583
  }
1584
+ .chalk-sheet {
1585
+ /* The home indicator inset where the host page sets viewport-fit=cover, else a 16px floor, plus 8px. */
1586
+ --chalk-sheet-bottom: calc(max(env(safe-area-inset-bottom), var(--space-4)) + var(--space-2));
1587
+ }
1588
+ /* The grabber is a 28px drag zone; the pill is drawn inside it. */
1445
1589
  .chalk-sheet-handle {
1590
+ display: grid;
1591
+ place-items: start center;
1592
+ height: 28px;
1593
+ padding-top: var(--space-2);
1594
+ }
1595
+ .chalk-sheet-handle::before {
1596
+ content: "";
1446
1597
  width: 36px;
1447
1598
  height: 5px;
1448
- border-radius: 3px;
1449
- background: var(--chalk-line-strong);
1450
- margin: 4px auto 12px;
1599
+ border-radius: var(--corner-xs);
1600
+ background: var(--chalk-faint-text);
1601
+ opacity: 0.75;
1602
+ }
1603
+ [data-sheet-drag] {
1604
+ touch-action: none;
1451
1605
  }
1452
1606
  .chalk-sheet[data-variant="stage"] {
1453
1607
  height: 100%;
@@ -1459,44 +1613,43 @@
1459
1613
  display: flex;
1460
1614
  align-items: center;
1461
1615
  justify-content: space-between;
1462
- gap: 12px;
1463
- padding: 4px 8px 14px;
1616
+ gap: var(--space-3);
1617
+ padding: var(--space-1) var(--space-2) var(--space-3);
1464
1618
  font-weight: 600;
1465
- font-size: 16px;
1619
+ font-size: var(--type-lead);
1466
1620
  }
1467
1621
  .chalk-details-row {
1468
1622
  display: flex;
1469
1623
  align-items: center;
1470
1624
  justify-content: space-between;
1471
- gap: 10px;
1625
+ gap: var(--space-2-5);
1472
1626
  min-height: 40px;
1473
- padding: 0 10px;
1627
+ padding: 0 var(--space-2-5);
1474
1628
  }
1475
1629
  .chalk-details .chalk-segmented {
1476
1630
  background: var(--chalk-hover);
1477
1631
  }
1478
1632
  .chalk-details .chalk-segmented button {
1479
1633
  height: 30px;
1480
- padding: 0 14px;
1481
- font-size: 13px;
1634
+ padding: 0 var(--space-3);
1635
+ font-size: var(--type-body-sm);
1482
1636
  }
1483
1637
  .chalk-details .chalk-segmented button[aria-pressed="true"] {
1484
1638
  background: var(--chalk-popover);
1485
1639
  color: var(--chalk-text);
1486
- box-shadow: 0 1px 2px var(--chalk-segment-shadow);
1640
+ box-shadow: var(--elevation-segment);
1487
1641
  }
1488
1642
  [data-chalk] {
1489
1643
  --chalk-segment-shadow: rgba(0, 0, 0, 0.2);
1490
1644
  }
1491
1645
  [data-chalk][data-chalk-theme="light"] :is(.chalk-menu, .chalk-toast) {
1492
- box-shadow:
1493
- 0 0 0 1px var(--chalk-line),
1494
- 0 12px 32px rgba(0, 0, 0, 0.12);
1646
+ box-shadow: var(--elevation-menu-light);
1495
1647
  }
1496
1648
  [data-chalk][data-chalk-theme="light"] .chalk-icon-button:not([data-chalk-tone="danger"]) {
1497
- box-shadow: 0 0 0 1px var(--chalk-line);
1649
+ box-shadow: var(--elevation-hairline);
1498
1650
  }
1499
1651
  .chalk-frame {
1652
+ container: chalk-call / inline-size;
1500
1653
  position: relative;
1501
1654
  width: 100%;
1502
1655
  height: 100%;
@@ -1504,23 +1657,23 @@
1504
1657
  overflow: clip;
1505
1658
  background: var(--chalk-canvas);
1506
1659
  color: var(--chalk-text);
1507
- font: 14px/1.4 var(--chalk-font-family);
1660
+ font: var(--type-body) / 1.4 var(--chalk-font-family);
1508
1661
  -webkit-font-smoothing: antialiased;
1509
1662
  user-select: none;
1510
1663
  }
1511
1664
  .chalk-sheet-group {
1512
1665
  background: var(--chalk-raised);
1513
- border-radius: 16px;
1666
+ border-radius: var(--corner-2xl);
1514
1667
  overflow: hidden;
1515
1668
  }
1516
1669
  .chalk-sheet-row {
1517
1670
  display: flex;
1518
1671
  align-items: center;
1519
- gap: 14px;
1672
+ gap: var(--space-3);
1520
1673
  width: 100%;
1521
- min-height: 52px;
1522
- padding: 0 16px;
1523
- font-size: 16px;
1674
+ min-height: 48px;
1675
+ padding: 0 var(--space-4);
1676
+ font-size: var(--type-lead);
1524
1677
  text-align: left;
1525
1678
  }
1526
1679
  .chalk-sheet-row > svg:first-child {
@@ -1529,8 +1682,23 @@
1529
1682
  flex: none;
1530
1683
  color: var(--chalk-soft-text);
1531
1684
  }
1685
+ .chalk-sheet-row:active {
1686
+ background: var(--chalk-pressed);
1687
+ }
1688
+ .chalk-sheet-group > .chalk-sheet-row + .chalk-sheet-row {
1689
+ box-shadow: var(--elevation-divider-top);
1690
+ }
1691
+ .chalk-sheet-group + .chalk-sheet-group {
1692
+ margin-top: var(--space-2);
1693
+ }
1694
+ .chalk-sheet-body {
1695
+ min-height: 0;
1696
+ overflow-y: auto;
1697
+ overscroll-behavior: contain;
1698
+ scrollbar-width: thin;
1699
+ }
1532
1700
  .chalk-sheet-row[data-part="dock-layout-row"] {
1533
- box-shadow: inset 0 1px 0 var(--chalk-line);
1701
+ box-shadow: var(--elevation-divider-top);
1534
1702
  }
1535
1703
  .chalk-frame-header {
1536
1704
  position: absolute;
@@ -1546,18 +1714,18 @@
1546
1714
  height: 60px;
1547
1715
  align-items: center;
1548
1716
  justify-content: space-between;
1549
- padding: 0 16px 0 24px;
1717
+ padding: 0 var(--space-4) 0 var(--space-6);
1550
1718
  }
1551
1719
  .chalk-call-name {
1552
1720
  display: flex;
1553
1721
  align-items: center;
1554
- gap: 12px;
1555
- font-size: 15px;
1722
+ gap: var(--space-3);
1723
+ font-size: var(--type-body-lg);
1556
1724
  font-weight: 600;
1557
1725
  height: 40px;
1558
- padding: 0 10px;
1559
- margin-left: -10px;
1560
- border-radius: 999px;
1726
+ padding: 0 var(--space-2-5);
1727
+ margin-left: calc(var(--space-2-5) * -1);
1728
+ border-radius: var(--corner-pill);
1561
1729
  transition: transform 0.15s ease-out;
1562
1730
  }
1563
1731
  .chalk-call-name:hover {
@@ -1612,7 +1780,7 @@
1612
1780
  display: flex;
1613
1781
  align-items: center;
1614
1782
  justify-content: center;
1615
- gap: 8px;
1783
+ gap: var(--space-2);
1616
1784
  z-index: 30;
1617
1785
  transition: opacity 0.25s ease-out;
1618
1786
  pointer-events: none;
@@ -1631,6 +1799,10 @@
1631
1799
  .chalk-frame-overlays > * {
1632
1800
  pointer-events: auto;
1633
1801
  }
1802
+ /* The notice wrapper spans the call; only the notice inside it takes clicks. */
1803
+ .chalk-frame-overlays > .chalk-toasts {
1804
+ pointer-events: none;
1805
+ }
1634
1806
  .chalk-frame[data-idle="true"] :is(.chalk-frame-header, .chalk-frame-dock) {
1635
1807
  opacity: 0;
1636
1808
  pointer-events: none;
@@ -1648,7 +1820,7 @@
1648
1820
  }
1649
1821
  .chalk-drawer-content {
1650
1822
  height: 100%;
1651
- border-radius: 16px;
1823
+ border-radius: var(--corner-2xl);
1652
1824
  overflow: hidden;
1653
1825
  background: var(--chalk-surface);
1654
1826
  }
@@ -1698,7 +1870,7 @@
1698
1870
  height: 52px;
1699
1871
  }
1700
1872
  .chalk-header {
1701
- padding: 0 20px;
1873
+ padding: 0 var(--space-5);
1702
1874
  }
1703
1875
  .chalk-header-layout {
1704
1876
  display: none;
@@ -1729,10 +1901,53 @@
1729
1901
  width: 100%;
1730
1902
  max-height: calc(100% - 52px);
1731
1903
  height: 70%;
1732
- border-radius: 24px 24px 0 0;
1904
+ border-radius: var(--corner-3xl) var(--corner-3xl) 0 0;
1733
1905
  }
1734
1906
  .chalk-drawer-content {
1735
- border-radius: 24px 24px 0 0;
1907
+ border-radius: var(--corner-3xl) var(--corner-3xl) 0 0;
1908
+ }
1909
+ }
1910
+ @container chalk-call (max-width: 640px) {
1911
+ .chalk-frame-header,
1912
+ .chalk-header {
1913
+ height: 52px;
1914
+ }
1915
+ .chalk-header {
1916
+ padding: 0 var(--space-5);
1917
+ }
1918
+ .chalk-header-layout {
1919
+ display: none;
1920
+ }
1921
+ .chalk-stage-layout,
1922
+ .chalk-frame:has(.chalk-drawer[data-state="open"]) .chalk-stage-layout {
1923
+ inset: 52px 8px 106px;
1924
+ }
1925
+ .chalk-frame-dock {
1926
+ bottom: 42px;
1927
+ height: 52px;
1928
+ }
1929
+ .chalk-frame-regular {
1930
+ display: none;
1931
+ }
1932
+ .chalk-frame-compact {
1933
+ display: block;
1934
+ }
1935
+ .chalk-menu-item {
1936
+ min-height: 48px;
1937
+ }
1938
+ .chalk-toasts {
1939
+ --chalk-toast-top: 52px;
1940
+ --chalk-toast-lift: 110px;
1941
+ }
1942
+ .chalk-drawer {
1943
+ inset: auto 0 0;
1944
+ width: 100%;
1945
+ max-height: calc(100% - 52px);
1946
+ height: 70%;
1947
+ border-radius: var(--corner-3xl) var(--corner-3xl) 0 0;
1948
+ }
1949
+ .chalk-drawer-content {
1950
+ border-radius: var(--corner-3xl) var(--corner-3xl) 0 0;
1736
1951
  }
1737
1952
  }
1738
1953
  @media (pointer: coarse) {
@@ -1756,13 +1971,13 @@
1756
1971
  }
1757
1972
  .chalk-segmented[data-size="compact"] button {
1758
1973
  height: 30px;
1759
- padding: 0 14px;
1760
- font-size: 13px;
1974
+ padding: 0 var(--space-3);
1975
+ font-size: var(--type-body-sm);
1761
1976
  }
1762
1977
  .chalk-segmented[data-size="compact"] button[aria-pressed="true"] {
1763
1978
  background: var(--chalk-popover);
1764
1979
  color: var(--chalk-text);
1765
- box-shadow: 0 1px 2px var(--chalk-segment-shadow);
1980
+ box-shadow: var(--elevation-segment);
1766
1981
  }
1767
1982
 
1768
1983
  .chalk-dismiss {
@@ -1792,7 +2007,7 @@
1792
2007
  overflow: auto;
1793
2008
  scrollbar-width: thin;
1794
2009
  scrollbar-color: var(--chalk-pressed) transparent;
1795
- padding: 8px 8px 10px;
2010
+ padding: var(--space-2) var(--space-2) var(--space-2-5);
1796
2011
  animation: none;
1797
2012
  transition:
1798
2013
  opacity 0.18s var(--chalk-ease-out-expo),
@@ -1804,11 +2019,11 @@
1804
2019
  transform: translateY(-6px);
1805
2020
  }
1806
2021
  .chalk-call-name {
1807
- gap: 10px;
2022
+ gap: var(--space-2-5);
1808
2023
  }
1809
2024
  .chalk-call-name > svg {
1810
2025
  color: var(--chalk-muted-text);
1811
- margin-left: -4px;
2026
+ margin-left: calc(var(--space-1) * -1);
1812
2027
  }
1813
2028
  .chalk-call-name[aria-expanded="true"] {
1814
2029
  background: var(--chalk-raised);
@@ -1853,7 +2068,18 @@
1853
2068
 
1854
2069
  @media (max-width: 640px) {
1855
2070
  .chalk-frame-dock {
1856
- padding: 0 22px;
2071
+ padding: 0 var(--space-6);
2072
+ justify-content: space-between;
2073
+ gap: 0;
2074
+ }
2075
+ .chalk-icon-button[data-chalk-size="lg"] {
2076
+ width: 52px;
2077
+ height: 52px;
2078
+ }
2079
+ }
2080
+ @container chalk-call (max-width: 640px) {
2081
+ .chalk-frame-dock {
2082
+ padding: 0 var(--space-6);
1857
2083
  justify-content: space-between;
1858
2084
  gap: 0;
1859
2085
  }
@@ -1866,7 +2092,7 @@
1866
2092
  .chalk-drawer {
1867
2093
  background: var(--chalk-surface);
1868
2094
  border: 1px solid var(--chalk-line);
1869
- border-radius: 16px;
2095
+ border-radius: var(--corner-2xl);
1870
2096
  display: flex;
1871
2097
  flex-direction: column;
1872
2098
  overflow: hidden;
@@ -1874,14 +2100,14 @@
1874
2100
  opacity 0.2s var(--chalk-ease-out-expo),
1875
2101
  transform 0.2s var(--chalk-ease-out-expo);
1876
2102
  }
1877
- .chalk-sheet[data-variant="details"] {
2103
+ .chalk-sheet:is([data-variant="details"], [data-variant="ready"]) {
1878
2104
  max-height: 88%;
1879
2105
  overflow: auto;
1880
- padding: 8px 14px 42px;
2106
+ padding: 0 var(--space-3) var(--chalk-sheet-bottom);
1881
2107
  background: var(--chalk-popover);
1882
2108
  border: 1px solid var(--chalk-line-strong);
1883
2109
  border-width: 1px 0 0;
1884
- box-shadow: 0 12px 32px var(--chalk-menu-shadow-color);
2110
+ box-shadow: var(--elevation-menu);
1885
2111
  transform: translateY(32px);
1886
2112
  scrollbar-width: thin;
1887
2113
  scrollbar-color: var(--chalk-pressed) transparent;
@@ -1889,12 +2115,17 @@
1889
2115
  opacity 0.18s var(--chalk-ease-out-expo),
1890
2116
  transform 0.18s var(--chalk-ease-out-expo);
1891
2117
  }
2118
+ .chalk-sheet[data-variant="details"] {
2119
+ /* The sheet rests flush with the bottom edge; only the enter and exit slide from 32px lower. */
2120
+ background: var(--chalk-surface);
2121
+ transform: none;
2122
+ }
1892
2123
  .chalk-sheet[data-variant="details"] .chalk-sheet-heading {
1893
- gap: 8px;
1894
- padding: 2px 0 4px 10px;
1895
- font-size: 15px;
2124
+ gap: var(--space-2);
2125
+ padding: var(--space-0-5) 0 var(--space-1) var(--space-2-5);
2126
+ font-size: var(--type-body-lg);
1896
2127
  }
1897
- .chalk-sheet[data-variant="details"]:is([data-starting-style], [data-ending-style]) {
2128
+ .chalk-sheet:is([data-variant="details"], [data-variant="ready"]):is([data-starting-style], [data-ending-style]) {
1898
2129
  opacity: 0;
1899
2130
  transform: translateY(32px);
1900
2131
  }
@@ -1918,27 +2149,51 @@
1918
2149
  opacity: 0;
1919
2150
  transform: translateY(32px);
1920
2151
  }
2152
+ .chalk-sheet:is([data-variant="default"], [data-variant="details"], [data-variant="reactions"]) {
2153
+ display: flex;
2154
+ flex-direction: column;
2155
+ max-height: 88%;
2156
+ overflow: hidden;
2157
+ }
1921
2158
  .chalk-sheet[data-variant="panel"] .chalk-sheet-handle {
1922
- margin: 8px auto 0;
2159
+ height: 13px;
1923
2160
  flex: none;
1924
2161
  }
1925
2162
  [data-chalk][data-chalk-theme="light"] .chalk-sheet[data-variant="details"] {
1926
- box-shadow:
1927
- 0 0 0 1px var(--chalk-line),
1928
- 0 12px 32px rgba(0, 0, 0, 0.12);
2163
+ box-shadow: var(--elevation-menu-light);
1929
2164
  }
1930
2165
  @media (max-width: 640px) {
1931
2166
  .chalk-header-title {
1932
2167
  flex: 1;
1933
2168
  justify-content: space-between;
1934
- font-size: 15px;
2169
+ font-size: var(--type-body-lg);
2170
+ font-weight: 600;
2171
+ }
2172
+ .chalk-call-name-phone {
2173
+ gap: var(--space-1);
2174
+ height: 44px;
2175
+ padding: 0 var(--space-1-5);
2176
+ margin-left: calc(var(--space-1-5) * -1);
2177
+ transition: all 0s ease;
2178
+ }
2179
+ .chalk-call-name-phone > svg {
2180
+ width: 16px;
2181
+ height: 16px;
2182
+ margin: 0;
2183
+ }
2184
+ }
2185
+ @container chalk-call (max-width: 640px) {
2186
+ .chalk-header-title {
2187
+ flex: 1;
2188
+ justify-content: space-between;
2189
+ font-size: var(--type-body-lg);
1935
2190
  font-weight: 600;
1936
2191
  }
1937
2192
  .chalk-call-name-phone {
1938
- gap: 4px;
2193
+ gap: var(--space-1);
1939
2194
  height: 44px;
1940
- padding: 0 6px;
1941
- margin-left: -6px;
2195
+ padding: 0 var(--space-1-5);
2196
+ margin-left: calc(var(--space-1-5) * -1);
1942
2197
  transition: all 0s ease;
1943
2198
  }
1944
2199
  .chalk-call-name-phone > svg {
@@ -1950,7 +2205,7 @@
1950
2205
 
1951
2206
  .chalk-menu,
1952
2207
  .chalk-sheet {
1953
- font: 14px/1.4 var(--chalk-font-family);
2208
+ font: var(--type-body) / 1.4 var(--chalk-font-family);
1954
2209
  }
1955
2210
 
1956
2211
  .chalk-copy {
@@ -1961,11 +2216,11 @@
1961
2216
  animation: none;
1962
2217
  }
1963
2218
  .chalk-sheet[data-variant="details"] .chalk-sheet-heading {
1964
- font-size: 14px;
2219
+ font-size: var(--type-body);
1965
2220
  font-weight: 400;
1966
2221
  }
1967
2222
  .chalk-sheet-heading h2 {
1968
- font-size: 15px;
2223
+ font-size: var(--type-body-lg);
1969
2224
  font-weight: 600;
1970
2225
  }
1971
2226
 
@@ -28,7 +28,7 @@ var toggleVariants = cva(
28
28
  },
29
29
  size: {
30
30
  default: "h-8 min-w-8 px-2",
31
- sm: "h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-1.5 text-[0.8rem]",
31
+ sm: "h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-1.5 text-(length:--type-body-sm)",
32
32
  lg: "h-9 min-w-9 px-2.5"
33
33
  }
34
34
  },
package/dist/toggle.js CHANGED
@@ -22,7 +22,7 @@ var toggleVariants = cva(
22
22
  },
23
23
  size: {
24
24
  default: "h-8 min-w-8 px-2",
25
- sm: "h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-1.5 text-[0.8rem]",
25
+ sm: "h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-1.5 text-(length:--type-body-sm)",
26
26
  lg: "h-9 min-w-9 px-2.5"
27
27
  }
28
28
  },
package/dist/tooltip.js CHANGED
@@ -113,7 +113,7 @@ function TooltipContent({ className, side = "top", sideOffset = 4, align = "cent
113
113
  ...props,
114
114
  children: [
115
115
  children,
116
- /* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 bg-foreground fill-foreground z-50 data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" })
116
+ /* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-(--corner-xs) data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 bg-foreground fill-foreground z-50 data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" })
117
117
  ]
118
118
  }
119
119
  ) }) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@q9labsai/chalk-ui",
3
- "version": "5.4.1",
3
+ "version": "5.5.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -180,7 +180,7 @@
180
180
  },
181
181
  "dependencies": {
182
182
  "@base-ui/react": "^1.0.0",
183
- "@q9labsai/chalk-assets": "^5.4.1",
183
+ "@q9labsai/chalk-assets": "^5.5.0",
184
184
  "class-variance-authority": "^0.7.1",
185
185
  "clsx": "^2.1.1",
186
186
  "tailwind-merge": "^3.6.0"
@@ -199,13 +199,13 @@
199
199
  "react": "^18.0.0 || ^19.0.0"
200
200
  },
201
201
  "scripts": {
202
- "build": "rm -rf ./dist && tsup ./src/index.ts ./src/assets.ts ./src/badge.tsx ./src/button.tsx ./src/card.tsx ./src/input.tsx ./src/menu.tsx ./src/select.tsx ./src/sidebar.tsx ./src/textarea.tsx ./src/spinner.tsx ./src/skeleton.tsx ./src/icon-button.tsx ./src/progress-bar.tsx ./src/lib/utils.ts ./src/reactions.ts ./src/status-badge.tsx ./src/toast.tsx ./src/toggle.tsx ./src/toggle-group.tsx ./src/tooltip.tsx --format esm --out-dir ./dist --platform node --no-splitting --external react --external @base-ui/react --external @q9labsai/chalk-assets --external class-variance-authority --external clsx --external tailwind-merge && pnpm run build:types && pnpm run build:css && pnpm run build:logos",
203
- "build:types": "rm -f tsconfig.tsbuildinfo && tsc --emitDeclarationOnly --declaration --outDir dist",
204
- "build:css": "mkdir -p ./dist && cp ./src/styles/index.css ./dist/styles.css",
205
- "build:logos": "mkdir -p ./dist && cp -R ../assets/src/logos ./dist/",
206
- "dev": "pnpm run build:css && pnpm run build:logos && tsup ./src/index.ts ./src/assets.ts ./src/badge.tsx ./src/button.tsx ./src/card.tsx ./src/input.tsx ./src/menu.tsx ./src/select.tsx ./src/sidebar.tsx ./src/textarea.tsx ./src/spinner.tsx ./src/skeleton.tsx ./src/icon-button.tsx ./src/progress-bar.tsx ./src/lib/utils.ts ./src/reactions.ts ./src/status-badge.tsx ./src/toast.tsx ./src/toggle.tsx ./src/toggle-group.tsx ./src/tooltip.tsx --format esm --out-dir ./dist --platform node --no-splitting --external react --external @base-ui/react --external @q9labsai/chalk-assets --external class-variance-authority --external clsx --external tailwind-merge --watch",
202
+ "build": "node ../../scripts/fs.mjs rm ./dist && tsup && pnpm run build:types && pnpm run build:css && pnpm run build:logos",
203
+ "build:types": "node ../../scripts/fs.mjs rm tsconfig.tsbuildinfo && tsc --emitDeclarationOnly --declaration --outDir dist",
204
+ "build:css": "node ../../scripts/fs.mjs cp ./src/styles/index.css ./dist/styles.css",
205
+ "build:logos": "node ../../scripts/fs.mjs cp ../assets/src/logos ./dist/",
206
+ "dev": "pnpm run build:css && pnpm run build:logos && tsup --watch",
207
207
  "check-types": "tsc-rs --project tsconfig.check-types.json --noEmit",
208
208
  "lint": "pnpm exec oxfmt --check . && tsc --project tsconfig.check-types.json --noEmit",
209
- "clean": "rm -rf dist"
209
+ "clean": "node ../../scripts/fs.mjs rm dist"
210
210
  }
211
211
  }