@twoux/ui 0.0.0-stage → 0.1.1

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 (325) hide show
  1. package/LICENSE.md +61 -0
  2. package/LICENSES/Apache-2.0.txt +202 -0
  3. package/NOTICE.md +64 -0
  4. package/README.md +211 -2
  5. package/SHADCN-DIFF.md +228 -0
  6. package/agent/AGENTS.md +358 -0
  7. package/agent/docs-md/accessibility.md +49 -0
  8. package/agent/docs-md/action-catalogue.md +81 -0
  9. package/agent/docs-md/actions.md +74 -0
  10. package/agent/docs-md/agent-activity-log.md +70 -0
  11. package/agent/docs-md/agent-permissions.md +82 -0
  12. package/agent/docs-md/agent-run.md +90 -0
  13. package/agent/docs-md/agents-on-behalf.md +74 -0
  14. package/agent/docs-md/ai-column.md +85 -0
  15. package/agent/docs-md/ai-origin-label.md +70 -0
  16. package/agent/docs-md/announcing-features.md +73 -0
  17. package/agent/docs-md/answer-actions.md +81 -0
  18. package/agent/docs-md/app-shell.md +114 -0
  19. package/agent/docs-md/artifact-card.md +89 -0
  20. package/agent/docs-md/ask-on-screen.md +72 -0
  21. package/agent/docs-md/assistant-page.md +100 -0
  22. package/agent/docs-md/assistant-panel.md +142 -0
  23. package/agent/docs-md/avatar.md +82 -0
  24. package/agent/docs-md/banner.md +106 -0
  25. package/agent/docs-md/board.md +163 -0
  26. package/agent/docs-md/breadcrumb.md +89 -0
  27. package/agent/docs-md/breakdown-table.md +97 -0
  28. package/agent/docs-md/bulk-action-bar.md +112 -0
  29. package/agent/docs-md/button.md +293 -0
  30. package/agent/docs-md/card.md +115 -0
  31. package/agent/docs-md/change-list.md +99 -0
  32. package/agent/docs-md/change-request.md +166 -0
  33. package/agent/docs-md/chart-area.md +87 -0
  34. package/agent/docs-md/chart-bar.md +100 -0
  35. package/agent/docs-md/chart-box-plot.md +88 -0
  36. package/agent/docs-md/chart-bullet.md +89 -0
  37. package/agent/docs-md/chart-candlestick.md +112 -0
  38. package/agent/docs-md/chart-card-line.md +120 -0
  39. package/agent/docs-md/chart-donut.md +90 -0
  40. package/agent/docs-md/chart-drill-down.md +72 -0
  41. package/agent/docs-md/chart-funnel.md +71 -0
  42. package/agent/docs-md/chart-heatmap.md +76 -0
  43. package/agent/docs-md/chart-histogram.md +81 -0
  44. package/agent/docs-md/chart-map.md +165 -0
  45. package/agent/docs-md/chart-mixed.md +88 -0
  46. package/agent/docs-md/chart-price.md +92 -0
  47. package/agent/docs-md/chart-radial-bars.md +109 -0
  48. package/agent/docs-md/chart-radial-lines.md +111 -0
  49. package/agent/docs-md/chart-sankey.md +104 -0
  50. package/agent/docs-md/chart-scatter.md +87 -0
  51. package/agent/docs-md/chart-share-bar.md +89 -0
  52. package/agent/docs-md/chart-treemap.md +98 -0
  53. package/agent/docs-md/chart-waterfall.md +93 -0
  54. package/agent/docs-md/checkbox.md +131 -0
  55. package/agent/docs-md/choosing-selection-control.md +71 -0
  56. package/agent/docs-md/citations-sources.md +79 -0
  57. package/agent/docs-md/citing-sources.md +63 -0
  58. package/agent/docs-md/clarify-before-acting.md +69 -0
  59. package/agent/docs-md/clarifying-question.md +92 -0
  60. package/agent/docs-md/code-block.md +174 -0
  61. package/agent/docs-md/colours.md +87 -0
  62. package/agent/docs-md/columns-menu.md +140 -0
  63. package/agent/docs-md/combobox.md +161 -0
  64. package/agent/docs-md/command-palette.md +126 -0
  65. package/agent/docs-md/confidence-note.md +87 -0
  66. package/agent/docs-md/configurable-dashboard.md +76 -0
  67. package/agent/docs-md/confirmation-dialog.md +93 -0
  68. package/agent/docs-md/connected-tools.md +80 -0
  69. package/agent/docs-md/connector-picker.md +127 -0
  70. package/agent/docs-md/consistency.md +53 -0
  71. package/agent/docs-md/content-density.md +61 -0
  72. package/agent/docs-md/conversation-history.md +78 -0
  73. package/agent/docs-md/create-record.md +80 -0
  74. package/agent/docs-md/csv-import.md +88 -0
  75. package/agent/docs-md/dashboard-items.md +78 -0
  76. package/agent/docs-md/data-export.md +61 -0
  77. package/agent/docs-md/data-grid.md +137 -0
  78. package/agent/docs-md/data-vis-colours.md +76 -0
  79. package/agent/docs-md/data-visualisation.md +76 -0
  80. package/agent/docs-md/date-picker.md +178 -0
  81. package/agent/docs-md/delete-record.md +75 -0
  82. package/agent/docs-md/dense-table.md +495 -0
  83. package/agent/docs-md/design-tokens.md +53 -0
  84. package/agent/docs-md/disabled-read-only.md +75 -0
  85. package/agent/docs-md/drag-and-drop.md +74 -0
  86. package/agent/docs-md/dropdown-menu.md +137 -0
  87. package/agent/docs-md/edit-record.md +73 -0
  88. package/agent/docs-md/empty-loading-error.md +78 -0
  89. package/agent/docs-md/empty-state.md +128 -0
  90. package/agent/docs-md/error-messages.md +75 -0
  91. package/agent/docs-md/error-state.md +123 -0
  92. package/agent/docs-md/export-menu.md +86 -0
  93. package/agent/docs-md/feedback-prompt.md +88 -0
  94. package/agent/docs-md/field-mapping.md +78 -0
  95. package/agent/docs-md/file-drop.md +110 -0
  96. package/agent/docs-md/filter-bar.md +138 -0
  97. package/agent/docs-md/filter-panel.md +103 -0
  98. package/agent/docs-md/filtering-search.md +79 -0
  99. package/agent/docs-md/follow-ups-starters.md +79 -0
  100. package/agent/docs-md/form-validation.md +95 -0
  101. package/agent/docs-md/generated-columns.md +65 -0
  102. package/agent/docs-md/generated-drafts-files.md +71 -0
  103. package/agent/docs-md/grouped-list.md +89 -0
  104. package/agent/docs-md/guide-cue.md +170 -0
  105. package/agent/docs-md/help-panel.md +103 -0
  106. package/agent/docs-md/help-system.md +74 -0
  107. package/agent/docs-md/iconography.md +49 -0
  108. package/agent/docs-md/inbox.md +108 -0
  109. package/agent/docs-md/inline-editing-validation.md +80 -0
  110. package/agent/docs-md/inline-input-in-answer.md +70 -0
  111. package/agent/docs-md/items-palette.md +116 -0
  112. package/agent/docs-md/keyboard-model.md +47 -0
  113. package/agent/docs-md/keyboard-navigation.md +68 -0
  114. package/agent/docs-md/keyboard-shortcut-hint.md +87 -0
  115. package/agent/docs-md/keyboard-shortcut-sheet.md +90 -0
  116. package/agent/docs-md/labelling-ai-output.md +66 -0
  117. package/agent/docs-md/layout.md +47 -0
  118. package/agent/docs-md/list-table.md +254 -0
  119. package/agent/docs-md/loading-skeleton.md +91 -0
  120. package/agent/docs-md/managing-agents.md +71 -0
  121. package/agent/docs-md/message-composer.md +105 -0
  122. package/agent/docs-md/migrating.md +49 -0
  123. package/agent/docs-md/motion.md +93 -0
  124. package/agent/docs-md/navigation.md +76 -0
  125. package/agent/docs-md/notification-channels.md +65 -0
  126. package/agent/docs-md/notifications-decision.md +100 -0
  127. package/agent/docs-md/onboarding-step.md +114 -0
  128. package/agent/docs-md/order-book.md +108 -0
  129. package/agent/docs-md/page-header.md +96 -0
  130. package/agent/docs-md/pagination.md +88 -0
  131. package/agent/docs-md/pane-layout.md +105 -0
  132. package/agent/docs-md/period-comparison.md +66 -0
  133. package/agent/docs-md/plan-card.md +120 -0
  134. package/agent/docs-md/popover-rules.md +88 -0
  135. package/agent/docs-md/prompt-editor.md +90 -0
  136. package/agent/docs-md/propose-apply.md +65 -0
  137. package/agent/docs-md/provider-logo.md +97 -0
  138. package/agent/docs-md/radio.md +83 -0
  139. package/agent/docs-md/ranked-list.md +102 -0
  140. package/agent/docs-md/reasoning-progress.md +72 -0
  141. package/agent/docs-md/record-detail.md +71 -0
  142. package/agent/docs-md/regenerating-answers.md +70 -0
  143. package/agent/docs-md/run-status-bar.md +94 -0
  144. package/agent/docs-md/saved-tasks-schedules.md +63 -0
  145. package/agent/docs-md/saved-views.md +149 -0
  146. package/agent/docs-md/saving-views.md +68 -0
  147. package/agent/docs-md/scheduler.md +258 -0
  148. package/agent/docs-md/secondary-panels.md +72 -0
  149. package/agent/docs-md/segmented-control.md +88 -0
  150. package/agent/docs-md/selection-bulk-actions.md +70 -0
  151. package/agent/docs-md/separator.md +75 -0
  152. package/agent/docs-md/setup-checklist.md +92 -0
  153. package/agent/docs-md/shape-elevation.md +55 -0
  154. package/agent/docs-md/sheet-grid.md +211 -0
  155. package/agent/docs-md/side-panel.md +134 -0
  156. package/agent/docs-md/sign-in.md +114 -0
  157. package/agent/docs-md/spacing.md +55 -0
  158. package/agent/docs-md/split-button.md +100 -0
  159. package/agent/docs-md/stat-compare.md +82 -0
  160. package/agent/docs-md/static-dashboard.md +75 -0
  161. package/agent/docs-md/status-badge.md +140 -0
  162. package/agent/docs-md/step-card.md +75 -0
  163. package/agent/docs-md/stepper.md +92 -0
  164. package/agent/docs-md/suggested-changes.md +91 -0
  165. package/agent/docs-md/switch.md +78 -0
  166. package/agent/docs-md/table-settings.md +81 -0
  167. package/agent/docs-md/tabs.md +85 -0
  168. package/agent/docs-md/tag-input.md +108 -0
  169. package/agent/docs-md/tag.md +79 -0
  170. package/agent/docs-md/task-builder.md +87 -0
  171. package/agent/docs-md/team-instructions.md +72 -0
  172. package/agent/docs-md/templates-gallery.md +85 -0
  173. package/agent/docs-md/text-input.md +160 -0
  174. package/agent/docs-md/thinking-steps.md +89 -0
  175. package/agent/docs-md/timeline.md +189 -0
  176. package/agent/docs-md/timestamp.md +84 -0
  177. package/agent/docs-md/timestamps.md +70 -0
  178. package/agent/docs-md/toast.md +117 -0
  179. package/agent/docs-md/tooltip.md +90 -0
  180. package/agent/docs-md/typography.md +62 -0
  181. package/agent/docs-md/undo-destructive.md +66 -0
  182. package/agent/docs-md/unsaved-changes.md +71 -0
  183. package/agent/docs-md/usage-meter.md +80 -0
  184. package/agent/docs-md/user-feedback.md +71 -0
  185. package/agent/docs-md/voice-and-tone.md +60 -0
  186. package/agent/docs-md/why-choice.md +93 -0
  187. package/agent/docs-md/workspace-onboarding.md +74 -0
  188. package/agent/docs-md/writing.md +48 -0
  189. package/agent/llms-full.txt +18369 -0
  190. package/agent/llms.txt +198 -0
  191. package/agent/skills/twoux-audit/SKILL.md +49 -0
  192. package/agent/skills/twoux-build/SKILL.md +39 -0
  193. package/agent/skills/twoux-design/SKILL.md +54 -0
  194. package/agent/skills/twoux-write/SKILL.md +32 -0
  195. package/bin/check.mjs +123 -0
  196. package/bin/docs.mjs +24 -0
  197. package/bin/guard.mjs +27 -0
  198. package/bin/init.mjs +113 -0
  199. package/bin/knowledge.mjs +87 -0
  200. package/bin/mcp.mjs +116 -0
  201. package/bin/theme.mjs +168 -0
  202. package/bin/twoux.mjs +25 -0
  203. package/package.json +80 -3
  204. package/registry/jobs.json +1028 -0
  205. package/registry/palette.json +770 -0
  206. package/registry/rules.json +913 -0
  207. package/src/components/agent-review.tsx +364 -0
  208. package/src/components/ai-basics.tsx +212 -0
  209. package/src/components/ai-work.tsx +304 -0
  210. package/src/components/ai.tsx +227 -0
  211. package/src/components/alert-dialog.tsx +203 -0
  212. package/src/components/alert.tsx +86 -0
  213. package/src/components/avatar.tsx +114 -0
  214. package/src/components/badge.tsx +59 -0
  215. package/src/components/board.tsx +397 -0
  216. package/src/components/breadcrumb.tsx +114 -0
  217. package/src/components/button-group.tsx +90 -0
  218. package/src/components/button.tsx +109 -0
  219. package/src/components/calendar.tsx +247 -0
  220. package/src/components/card.tsx +102 -0
  221. package/src/components/chart-map.tsx +336 -0
  222. package/src/components/charts-more.tsx +1331 -0
  223. package/src/components/charts-radial.tsx +328 -0
  224. package/src/components/charts.tsx +390 -0
  225. package/src/components/checkbox.tsx +40 -0
  226. package/src/components/code.tsx +139 -0
  227. package/src/components/collapsible.tsx +37 -0
  228. package/src/components/combobox.tsx +339 -0
  229. package/src/components/command-extras.tsx +11 -0
  230. package/src/components/command.tsx +196 -0
  231. package/src/components/data-grid.tsx +213 -0
  232. package/src/components/data-table.tsx +334 -0
  233. package/src/components/data-views.tsx +740 -0
  234. package/src/components/date-picker.tsx +686 -0
  235. package/src/components/dense-table.tsx +207 -0
  236. package/src/components/dialog.tsx +162 -0
  237. package/src/components/dropdown-menu.tsx +264 -0
  238. package/src/components/empty.tsx +114 -0
  239. package/src/components/feedback-prompt.tsx +80 -0
  240. package/src/components/field.tsx +254 -0
  241. package/src/components/fields.tsx +112 -0
  242. package/src/components/flow.tsx +840 -0
  243. package/src/components/guide-cue.tsx +273 -0
  244. package/src/components/inbox.tsx +113 -0
  245. package/src/components/input-group.tsx +176 -0
  246. package/src/components/input.tsx +26 -0
  247. package/src/components/kbd.tsx +34 -0
  248. package/src/components/label.tsx +27 -0
  249. package/src/components/labels.tsx +176 -0
  250. package/src/components/motion.tsx +136 -0
  251. package/src/components/onboarding.tsx +454 -0
  252. package/src/components/order-book.tsx +185 -0
  253. package/src/components/pane-layout.tsx +417 -0
  254. package/src/components/popover.tsx +96 -0
  255. package/src/components/provider-logos.data.ts +49 -0
  256. package/src/components/radio-group.tsx +52 -0
  257. package/src/components/scheduler.tsx +997 -0
  258. package/src/components/segmented-control.tsx +28 -0
  259. package/src/components/select.tsx +195 -0
  260. package/src/components/separator.tsx +31 -0
  261. package/src/components/sheet.tsx +148 -0
  262. package/src/components/shell.tsx +426 -0
  263. package/src/components/shortcut-sheet.tsx +83 -0
  264. package/src/components/skeleton.tsx +18 -0
  265. package/src/components/sonner.tsx +107 -0
  266. package/src/components/spinner.tsx +13 -0
  267. package/src/components/split-button.tsx +58 -0
  268. package/src/components/stepper.tsx +78 -0
  269. package/src/components/switch.tsx +43 -0
  270. package/src/components/table.tsx +126 -0
  271. package/src/components/tabs.tsx +118 -0
  272. package/src/components/tag-input.tsx +253 -0
  273. package/src/components/textarea.tsx +21 -0
  274. package/src/components/theme.tsx +80 -0
  275. package/src/components/timeline.tsx +408 -0
  276. package/src/components/toggle-group.tsx +87 -0
  277. package/src/components/toggle.tsx +54 -0
  278. package/src/components/tooltip.tsx +65 -0
  279. package/src/components/workspace-actions.tsx +294 -0
  280. package/src/components/workspace-import.tsx +465 -0
  281. package/src/components/workspace.tsx +1884 -0
  282. package/src/index.ts +80 -0
  283. package/src/lib/active-indicator.tsx +53 -0
  284. package/src/lib/chart-kit.tsx +72 -0
  285. package/src/lib/cn.ts +6 -0
  286. package/src/lib/shortcuts.tsx +61 -0
  287. package/src/lib/workspace.tsx +10 -0
  288. package/src/shadcn/alert-dialog.tsx +196 -0
  289. package/src/shadcn/alert.tsx +65 -0
  290. package/src/shadcn/avatar.tsx +108 -0
  291. package/src/shadcn/badge.tsx +47 -0
  292. package/src/shadcn/breadcrumb.tsx +108 -0
  293. package/src/shadcn/button-group.tsx +83 -0
  294. package/src/shadcn/button.tsx +63 -0
  295. package/src/shadcn/calendar.tsx +220 -0
  296. package/src/shadcn/card.tsx +91 -0
  297. package/src/shadcn/checkbox.tsx +31 -0
  298. package/src/shadcn/collapsible.tsx +33 -0
  299. package/src/shadcn/command.tsx +184 -0
  300. package/src/shadcn/dialog.tsx +158 -0
  301. package/src/shadcn/dropdown-menu.tsx +256 -0
  302. package/src/shadcn/empty.tsx +103 -0
  303. package/src/shadcn/field.tsx +248 -0
  304. package/src/shadcn/input-group.tsx +170 -0
  305. package/src/shadcn/input.tsx +20 -0
  306. package/src/shadcn/kbd.tsx +28 -0
  307. package/src/shadcn/label.tsx +23 -0
  308. package/src/shadcn/popover.tsx +88 -0
  309. package/src/shadcn/radio-group.tsx +44 -0
  310. package/src/shadcn/select.tsx +189 -0
  311. package/src/shadcn/separator.tsx +27 -0
  312. package/src/shadcn/sheet.tsx +142 -0
  313. package/src/shadcn/skeleton.tsx +13 -0
  314. package/src/shadcn/sonner.tsx +40 -0
  315. package/src/shadcn/switch.tsx +34 -0
  316. package/src/shadcn/table.tsx +115 -0
  317. package/src/shadcn/tabs.tsx +90 -0
  318. package/src/shadcn/textarea.tsx +17 -0
  319. package/src/shadcn/toggle-group.tsx +83 -0
  320. package/src/shadcn/toggle.tsx +46 -0
  321. package/src/shadcn/tooltip.tsx +56 -0
  322. package/src/styles/palette.css +127 -0
  323. package/src/styles/theme.css +35 -0
  324. package/src/styles/twoux.css +236 -0
  325. package/theme.json +14 -0
package/SHADCN-DIFF.md ADDED
@@ -0,0 +1,228 @@
1
+ # How TwoUX differs from shadcn/ui
2
+
3
+ Generated by `scripts/tailor-shadcn.mjs`. Each component starts from the untouched shadcn source in `packages/ui/src/shadcn/`.
4
+
5
+ ## Every component
6
+
7
+ - Import paths point at TwoUX
8
+ - dark: classes removed: the dark theme comes from the role tokens (light-dark()), so components need no dark variants
9
+ - Type mapped to TwoUX's compact scale (shadcn text-xs/sm/base = 12/14/16px → TwoUX text-sm/base/md = 12/13/14px)
10
+ - Arbitrary radii replaced with tokens
11
+ - Every state change eases (colour, background, border and ring, 120ms ease-out); shadcn only animates colour and ring, so borders snapped
12
+ - Menu and palette items fade their highlight in and out (120ms) instead of snapping
13
+ - Invalid fields get a softer red edge; the message carries the error
14
+ - While someone types into an invalid field it shows the normal focus edge, not red: the message below still names the error
15
+ - Overlays: TwoUX's scrim, which works in light and dark. shadcn's own motion (timing, easing, 95% zoom) is kept as it is
16
+ - Dialogs: 16px corners, the soft edge, TwoUX's floating shadow and 20px padding
17
+ - Tighter corners: 6px (sm) for buttons, fields and cards, 4px (xs) for what sits inside them, 8px (md) for popovers, menus and dialogs. Every shadcn radius moves one step down
18
+ - Corners follow the role, not shadcn's class: menus and the command palette are overlays (8px); empty-state frames and media tiles are cards (6px)
19
+
20
+ ## button
21
+
22
+ - Compact heights: 32px default, 28px sm, 24px xs, 36px lg
23
+ - Primary gets a hairline shadow so it sits on grey and white alike
24
+ - Outline uses the light input edge and darkens it on hover
25
+ - Adds warning: risky but reversible actions (from Geist)
26
+ - Icons 14px beside 13px text, so they support the label instead of outweighing it
27
+ - Button corners come from theme.json (radius.button: a px value or "pill"), so buttons can be rounder than fields without touching the component
28
+ - Tactile press
29
+ - Adds loading (spinner, aria-busy, stays focusable) and shortcut (Kbd after the label)
30
+ - The shortcut works, not just shows: inside ShortcutsProvider, typing it presses the button (single keys obey the off setting, WCAG 2.1.4)
31
+
32
+ ## badge
33
+
34
+ - Status badges are small soft pills, square-ish to read as labels, not buttons
35
+ - Soft tones: the word carries the meaning, colour repeats it (WCAG 1.4.1)
36
+ - Adds dot: a leading dot for scanning long columns
37
+
38
+ ## kbd
39
+
40
+ - Inside a primary or destructive button, the key sits on a darker tint so white text keeps 4.5:1
41
+
42
+ ## checkbox
43
+
44
+ - Edge at 3.59:1: nothing else identifies a checkbox (WCAG 1.4.11)
45
+ - Invisible 26px hit area (WCAG 2.5.8)
46
+ - The tick scales in instead of appearing
47
+ - Indeterminate (some rows selected) shows an indigo box with a minus, not a tick on an empty box
48
+
49
+ ## radio-group
50
+
51
+ - Edge at 3.59:1 (WCAG 1.4.11)
52
+ - Invisible 26px hit area (WCAG 2.5.8)
53
+ - Compact rows
54
+ - The dot scales in instead of appearing
55
+
56
+ ## switch
57
+
58
+ - Thumb glides with TwoUX's ease-out
59
+ - Off track at 3.59:1 so the switch is visible when off (WCAG 1.4.11)
60
+ - Invisible hit area: 28px around the 16px track (WCAG 2.5.8)
61
+ - Sized to its label: a 16×28 track by default (14×24 small), no taller than the 15px text beside it, with 2px of track around the thumb
62
+ - Thumb travels the full track at each size
63
+
64
+ ## tabs
65
+
66
+ - Inactive tabs use secondary text (9:1), not 60% ink, which is 4.46:1 on the tab rail
67
+ - TwoUX's default is the underline (line) style for page sections
68
+ - Line tabs span the width with a divider underneath
69
+ - Line tabs: no padding, indigo text and underline when active
70
+ - Adds count after the label; it pops when it changes
71
+ - One indicator slides to the active tab (underline or pill) instead of jumping; vertical tabs keep per-tab styling
72
+
73
+ ## toggle
74
+
75
+ - Compact heights
76
+ - On reads as chosen, not hovered: indigo tint and text, which stay while the pointer is over it
77
+ - Icons 14px, in proportion with 13px text
78
+ - Outline: light edge that darkens on hover, indigo edge when on
79
+
80
+ ## toggle-group
81
+
82
+ - Shared changes only
83
+
84
+ ## tooltip
85
+
86
+ - Short delay so moving across a toolbar does not flash labels
87
+ - Keeps a gap from the trigger and stays inside the window
88
+ - Compact padding
89
+
90
+ ## input
91
+
92
+ - Compact 32px, light edge that darkens on hover
93
+ - One size on every screen
94
+
95
+ ## input-group
96
+
97
+ - Compact 32px
98
+ - Light edge darkens on hover
99
+
100
+ ## textarea
101
+
102
+ - Shared changes only
103
+
104
+ ## label
105
+
106
+ - Shared changes only
107
+
108
+ ## separator
109
+
110
+ - Shared changes only
111
+
112
+ ## field
113
+
114
+ - TwoUX spacing between fields is tighter (compact density)
115
+ - An invalid field keeps its label and value in normal text; only the edge and the message turn red (less alarming, still clear)
116
+
117
+ ## dropdown-menu
118
+
119
+ - Shortcut slot holds keys; no letter-spacing so Kbd groups read cleanly
120
+ - Icons stay smaller than the 13px label and muted
121
+ - Check and radio marks sit at the end of the item, so every label in a menu starts at the same edge
122
+ - Group headings are smaller and muted, so they read as headings, not as items people can choose
123
+
124
+ ## dialog
125
+
126
+ - Shared changes only
127
+
128
+ ## breadcrumb
129
+
130
+ - One line in the top bar: never wraps; the current page truncates last and reads darker
131
+ - Separator chevrons are small and muted
132
+
133
+ ## avatar
134
+
135
+ - 22px by default (18px small, 32px large); initials 11px semibold in white on a per-person colour
136
+ - Stacks overlap by 6px with a 2px white ring
137
+
138
+ ## sheet
139
+
140
+ - Panels are 440px on the right (full width on phones), slide with TwoUX's motion, and float with the overlay shadow
141
+ - Motion from shadcn's Base UI sheet: a 40px slide with a fade, 200ms ease-in-out both ways (the full-width 500ms slide felt heavy)
142
+
143
+ ## popover
144
+
145
+ - Floats like every overlay: 8px corners, light edge, the floating shadow, 12px padding
146
+ - Never cut off: keeps 8px from the viewport edge and flips when there is no room
147
+
148
+ ## collapsible
149
+
150
+ - Shared changes only
151
+
152
+ ## button-group
153
+
154
+ - Text segment on the quiet surface with the light edge, 12px padding and 14px icons, in proportion with compact buttons
155
+ - The divider between two filled buttons uses the primary-on-primary edge, so a split primary button reads as one control with two parts
156
+
157
+ ## select
158
+
159
+ - Compact heights (32px, 28px small), field edge with hover, white fill, 14px chevron
160
+ - The list floats: 8px corners, light edge, floating shadow
161
+
162
+ ## table
163
+
164
+ - Adds containerClassName, so a table can scroll inside a fixed height and keep its header sticky
165
+ - Adds size="dense": 28px rows and header with 8px padding, the same 13px text, for spreadsheet-like data (inventories, ledgers, imports, mapping). Not a density setting
166
+ - Sticky header on the quiet surface, with the light divider
167
+ - Rows: light divider, hover fill, indigo tint when selected, an indigo edge on the keyboard-focused row
168
+ - Rows and header use the row tokens (36px, or 28px dense), 12px side padding and 2px top and bottom, so a 28px control in a cell keeps the row at 36px; header labels 12px medium grey, in sentence case
169
+ - Frozen columns: data-pinned on a head and its cells keeps them in view when the table scrolls sideways, at left var(--pin); data-pinned="last" draws the edge
170
+
171
+ ## card
172
+
173
+ - Compact card: 16px padding and gaps, light edge, 6px corners, the resting card shadow
174
+ - Title 14px semibold, description in readable grey
175
+ - Optional level makes the title a heading, for cards that hold a page section
176
+ - Adds CardFooter band: a tinted strip across the bottom for a secondary line (as in Clerk's “Already have an account?”)
177
+
178
+ ## alert
179
+
180
+ - Compact banner: 8px corners, 14px icon, room for one action on the right
181
+ - Information is neutral grey, not blue: colour is kept for problems
182
+ - Errors: soft red fill and edge, dark text; adds warning
183
+ - Only errors interrupt a screen reader (role alert); information and warnings are polite (role status)
184
+ - Title wraps instead of being cut to one line
185
+ - Adds AlertAction: Dismiss (ghost) then one action, on the right
186
+
187
+ ## alert-dialog
188
+
189
+ - Confirmations are 420px wide at most
190
+ - Body text readable at 6:1, not the muted grey
191
+ - Smaller media tile
192
+
193
+ ## skeleton
194
+
195
+ - Shimmer at 1.4s instead of a pulse, on TwoUX's hover grey; stops with reduced motion
196
+
197
+ ## empty
198
+
199
+ - Dashed container sized to the region it replaces, compact spacing
200
+ - 32px neutral icon tile, no illustration; adds the error tile for the error state
201
+ - The title is a real heading for screen readers (level 2 by default, set level to fit the page)
202
+ - Description at most 36 characters wide, readable grey
203
+
204
+ ## sonner
205
+
206
+ - Theme from TwoUX's <html data-theme> (light by default), not next-themes
207
+ - Status icons 14px in their status colour
208
+ - TwoUX defaults: bottom right, 16px from the edges, one at a time, 6 seconds, 340px wide; Undo is a quiet text button
209
+ - Solid surface: shadcn points at --popover and --border, which TwoUX names --color-popover and --color-line, so the toast was see-through
210
+ - Anti-collision: the toast rises above the focused element and anything marked data-toast-avoid (such as a sticky footer), so it never hides them (WCAG 2.4.11)
211
+
212
+ ## calendar
213
+
214
+ - UK English by default: en-GB month and weekday names, weeks start on Monday
215
+ - Month buttons named in plain words: Previous month, Next month
216
+ - Weekday and week-number labels on TwoUX's 12px muted text, not an arbitrary 0.8rem
217
+ - Today gets a ring, not a fill, so it never looks selected; the day's name also says Today
218
+ - Days inside a range use the selection fill, as selected rows do
219
+ - Parts kept between renders: shadcn creates Root, Chevron and WeekNumber afresh each render, so any state change remounted the grid and a click that started on one day button ended on a new one and was lost
220
+
221
+ ## command
222
+
223
+ - Icons stay smaller than the label and muted
224
+ - Group labels in sentence case, quiet
225
+ - Dialog keeps compact rows and 14px icons; shadcn enlarges them to 20px with 12px padding
226
+ - Shortcut slot holds words as well as keys: no letter-spacing, icons align
227
+ - Adds commandProps (shouldFilter, loop…) passed to the inner Command
228
+ - Opens near the top like a search, with the floating shadow; Esc closes it so no close button