banhaten 0.1.3 → 0.3.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 (275) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/CONTRIBUTING.md +44 -0
  3. package/README.md +65 -13
  4. package/SECURITY.md +15 -0
  5. package/banhaten.config.example.json +0 -2
  6. package/docs/design-system/README.md +9 -0
  7. package/docs/design-system/adoption-quality-remediation.md +87 -0
  8. package/docs/design-system/agent-usage.md +13 -0
  9. package/docs/design-system/appearance-presets.md +6 -1
  10. package/docs/design-system/component-docs-pattern.md +81 -0
  11. package/docs/design-system/component-implementation-ownership-audit.md +244 -0
  12. package/docs/design-system/component-quality-audit-2026-08-20.md +223 -0
  13. package/docs/design-system/component-showcase-consistency-report.md +2 -0
  14. package/docs/design-system/component-token-consistency-audit.md +13 -3
  15. package/docs/design-system/components/README.md +4 -2
  16. package/docs/design-system/components/accordion.md +16 -0
  17. package/docs/design-system/components/activity-feed.md +17 -1
  18. package/docs/design-system/components/activity-heatmap.md +73 -0
  19. package/docs/design-system/components/alert-dialog.md +17 -0
  20. package/docs/design-system/components/alert.md +46 -14
  21. package/docs/design-system/components/aspect-ratio.md +15 -0
  22. package/docs/design-system/components/attribute.md +16 -0
  23. package/docs/design-system/components/autocomplete.md +19 -0
  24. package/docs/design-system/components/avatar.md +18 -0
  25. package/docs/design-system/components/badge.md +19 -0
  26. package/docs/design-system/components/banner.md +19 -1
  27. package/docs/design-system/components/breadcrumbs.md +17 -0
  28. package/docs/design-system/components/button-group.md +35 -0
  29. package/docs/design-system/components/button.md +18 -0
  30. package/docs/design-system/components/card.md +26 -1
  31. package/docs/design-system/components/carousel.md +20 -3
  32. package/docs/design-system/components/catalog-components.md +18 -1
  33. package/docs/design-system/components/chart.md +15 -0
  34. package/docs/design-system/components/checkbox.md +16 -0
  35. package/docs/design-system/components/collapsible.md +15 -0
  36. package/docs/design-system/components/command.md +15 -0
  37. package/docs/design-system/components/context-menu.md +15 -0
  38. package/docs/design-system/components/date-picker.md +21 -1
  39. package/docs/design-system/components/divider.md +16 -0
  40. package/docs/design-system/components/empty-state.md +17 -0
  41. package/docs/design-system/components/field.md +17 -0
  42. package/docs/design-system/components/file-upload.md +18 -0
  43. package/docs/design-system/components/hover-card.md +15 -0
  44. package/docs/design-system/components/input-group.md +17 -0
  45. package/docs/design-system/components/input-otp.md +18 -0
  46. package/docs/design-system/components/input.md +43 -7
  47. package/docs/design-system/components/item.md +72 -0
  48. package/docs/design-system/components/kbd.md +18 -0
  49. package/docs/design-system/components/label.md +16 -0
  50. package/docs/design-system/components/menu.md +17 -0
  51. package/docs/design-system/components/menubar.md +15 -0
  52. package/docs/design-system/components/modal.md +25 -4
  53. package/docs/design-system/components/native-select.md +18 -0
  54. package/docs/design-system/components/navigation-menu.md +15 -0
  55. package/docs/design-system/components/onboarding-step-list-item.md +16 -1
  56. package/docs/design-system/components/page-header.md +17 -1
  57. package/docs/design-system/components/pagination.md +31 -8
  58. package/docs/design-system/components/popover.md +19 -0
  59. package/docs/design-system/components/progress-slider.md +18 -0
  60. package/docs/design-system/components/progress.md +17 -0
  61. package/docs/design-system/components/radio-card.md +16 -0
  62. package/docs/design-system/components/radio-group.md +17 -0
  63. package/docs/design-system/components/resizable.md +15 -0
  64. package/docs/design-system/components/scroll-area.md +20 -1
  65. package/docs/design-system/components/segmented-control.md +71 -0
  66. package/docs/design-system/components/select.md +44 -7
  67. package/docs/design-system/components/sheet.md +17 -0
  68. package/docs/design-system/components/sidebar.md +17 -0
  69. package/docs/design-system/components/skeleton.md +18 -0
  70. package/docs/design-system/components/slideout.md +17 -0
  71. package/docs/design-system/components/slider.md +20 -0
  72. package/docs/design-system/components/social-button.md +21 -3
  73. package/docs/design-system/components/spinner.md +16 -0
  74. package/docs/design-system/components/steps.md +19 -0
  75. package/docs/design-system/components/table.md +36 -4
  76. package/docs/design-system/components/tabs.md +17 -0
  77. package/docs/design-system/components/tag.md +17 -0
  78. package/docs/design-system/components/textarea.md +16 -0
  79. package/docs/design-system/components/timeline.md +17 -0
  80. package/docs/design-system/components/toast.md +17 -0
  81. package/docs/design-system/components/toggle.md +17 -0
  82. package/docs/design-system/components/toolbar.md +21 -1
  83. package/docs/design-system/components/tooltip.md +18 -1
  84. package/docs/design-system/density-and-elevation.md +61 -0
  85. package/docs/design-system/direction-and-localization.md +23 -0
  86. package/docs/design-system/form-recipes.md +73 -0
  87. package/docs/design-system/gap-promotion-policy.md +21 -0
  88. package/docs/design-system/gap-promotion-report.md +100 -0
  89. package/docs/design-system/installation.md +68 -0
  90. package/docs/design-system/launch-comparison-shadcn.md +98 -0
  91. package/docs/design-system/registry-and-cli.md +30 -7
  92. package/docs/design-system/release-policy.md +30 -0
  93. package/docs/design-system/roadmap.md +14 -0
  94. package/docs/design-system/support-matrix.md +23 -0
  95. package/docs/design-system/tabs.md +1 -1
  96. package/docs/design-system/token-governance.md +23 -1
  97. package/package.json +30 -15
  98. package/registry/component-contract.json +40 -0
  99. package/registry/components/alert-dialog.tsx +2 -2
  100. package/registry/components/alert.tsx +101 -76
  101. package/registry/components/autocomplete.tsx +23 -9
  102. package/registry/components/avatar.tsx +14 -10
  103. package/registry/components/badge.tsx +18 -18
  104. package/registry/components/button-group.tsx +324 -5
  105. package/registry/components/button.tsx +38 -17
  106. package/registry/components/card.tsx +87 -62
  107. package/registry/components/carousel.tsx +67 -5
  108. package/registry/components/chart.tsx +36 -3
  109. package/registry/components/checkbox.tsx +3 -3
  110. package/registry/components/collapsible.tsx +1 -1
  111. package/registry/components/command.tsx +38 -4
  112. package/registry/components/context-menu.tsx +1 -1
  113. package/registry/components/date-picker.tsx +312 -135
  114. package/registry/components/expanded/ActivityFeed.tsx +9 -22
  115. package/registry/components/expanded/ActivityHeatmap.tsx +64 -0
  116. package/registry/components/expanded/Banner.tsx +3 -4
  117. package/registry/components/expanded/Breadcrumbs.tsx +8 -5
  118. package/registry/components/expanded/CatalogComponentsShowcase.tsx +16 -17
  119. package/registry/components/expanded/CatalogDivider.tsx +4 -3
  120. package/registry/components/expanded/EmptyState.tsx +1 -1
  121. package/registry/components/expanded/FileUpload.tsx +16 -7
  122. package/registry/components/expanded/OnboardingStepListItem.tsx +2 -6
  123. package/registry/components/expanded/PageHeader.tsx +47 -56
  124. package/registry/components/expanded/Slideout.tsx +29 -424
  125. package/registry/components/expanded/Steps.tsx +151 -13
  126. package/registry/components/expanded/Table.tsx +161 -82
  127. package/registry/components/expanded/Timeline.tsx +14 -27
  128. package/registry/components/expanded/activityFeed.css +9 -9
  129. package/registry/components/expanded/activityHeatmap.css +66 -0
  130. package/registry/components/expanded/banner.css +21 -11
  131. package/registry/components/expanded/breadcrumbs.css +2 -2
  132. package/registry/components/expanded/divider.css +1 -1
  133. package/registry/components/expanded/emptyState.css +1 -1
  134. package/registry/components/expanded/fileUpload.css +7 -7
  135. package/registry/components/expanded/onboardingStepListItem.css +2 -2
  136. package/registry/components/expanded/pageHeader.css +14 -11
  137. package/registry/components/expanded/slideout.css +10 -690
  138. package/registry/components/expanded/steps.css +78 -15
  139. package/registry/components/expanded/table.css +60 -69
  140. package/registry/components/expanded/timeline.css +19 -18
  141. package/registry/components/field.tsx +61 -8
  142. package/registry/components/input-content.ts +1 -0
  143. package/registry/components/input-otp.tsx +13 -3
  144. package/registry/components/input.tsx +68 -43
  145. package/registry/components/item.tsx +189 -0
  146. package/registry/components/kbd.tsx +111 -4
  147. package/registry/components/menu.tsx +87 -251
  148. package/registry/components/menubar.tsx +1 -1
  149. package/registry/components/modal.tsx +143 -103
  150. package/registry/components/native-select.tsx +2 -2
  151. package/registry/components/navigation-menu.tsx +1 -1
  152. package/registry/components/pagination.css +36 -0
  153. package/registry/components/pagination.tsx +88 -64
  154. package/registry/components/popover.tsx +162 -664
  155. package/registry/components/progress-slider.tsx +1 -1
  156. package/registry/components/radio-card.tsx +116 -87
  157. package/registry/components/resizable.tsx +36 -2
  158. package/registry/components/scroll-area.tsx +30 -6
  159. package/registry/components/segmented-control.tsx +87 -0
  160. package/registry/components/select-content.tsx +2 -2
  161. package/registry/components/select.tsx +86 -27
  162. package/registry/components/sheet.tsx +1 -1
  163. package/registry/components/sidebar.tsx +12 -6
  164. package/registry/components/skeleton.css +0 -3
  165. package/registry/components/social-button.tsx +59 -30
  166. package/registry/components/spinner.tsx +18 -55
  167. package/registry/components/table-elements.tsx +128 -0
  168. package/registry/components/tabs.css +1 -1
  169. package/registry/components/tabs.tsx +13 -14
  170. package/registry/components/tag.tsx +3 -3
  171. package/registry/components/textarea.tsx +3 -3
  172. package/registry/components/toast.tsx +16 -11
  173. package/registry/components/toggle.tsx +4 -4
  174. package/registry/components/toolbar.tsx +94 -22
  175. package/registry/components/tooltip.tsx +2 -2
  176. package/registry/examples/alert-demo.tsx +25 -5
  177. package/registry/examples/attribute-demo.tsx +1 -1
  178. package/registry/examples/autocomplete-demo.tsx +3 -3
  179. package/registry/examples/avatar-demo.tsx +14 -11
  180. package/registry/examples/badge-demo.tsx +1 -1
  181. package/registry/examples/button-demo.tsx +6 -6
  182. package/registry/examples/button-group-demo.tsx +23 -2
  183. package/registry/examples/card-demo.tsx +46 -8
  184. package/registry/examples/carousel-demo.tsx +20 -2
  185. package/registry/examples/chart-demo.tsx +1 -1
  186. package/registry/examples/checkbox-demo.tsx +5 -5
  187. package/registry/examples/collection-filter-bar-demo.tsx +135 -0
  188. package/registry/examples/command-demo.tsx +3 -3
  189. package/registry/examples/{expanded/command-bar-demo.tsx → command-palette-demo.tsx} +5 -15
  190. package/registry/examples/context-menu-demo.tsx +1 -1
  191. package/registry/examples/control-density-contract-demo.tsx +61 -0
  192. package/registry/examples/date-picker-demo.tsx +12 -12
  193. package/registry/examples/divider-demo.tsx +3 -3
  194. package/registry/examples/expanded/activity-heatmap-demo.tsx +29 -0
  195. package/registry/examples/expanded/banner-demo.tsx +1 -1
  196. package/registry/examples/expanded/breadcrumbs-demo.tsx +4 -4
  197. package/registry/examples/expanded/empty-state-demo.tsx +1 -1
  198. package/registry/examples/expanded/file-upload-demo.tsx +1 -1
  199. package/registry/examples/expanded/onboarding-step-demo.tsx +1 -1
  200. package/registry/examples/expanded/slideout-demo.tsx +2 -2
  201. package/registry/examples/expanded/steps-demo.tsx +1 -1
  202. package/registry/examples/expanded/tabs-demo.tsx +1 -1
  203. package/registry/examples/expanded/timeline-demo.tsx +1 -1
  204. package/registry/examples/hover-card-demo.tsx +2 -2
  205. package/registry/examples/input-demo.tsx +6 -6
  206. package/registry/examples/input-otp-demo.tsx +4 -4
  207. package/registry/examples/item-demo.tsx +46 -0
  208. package/registry/examples/kbd-demo.tsx +1 -1
  209. package/registry/examples/label-demo.tsx +1 -1
  210. package/registry/examples/menu-demo.tsx +1 -1
  211. package/registry/examples/modal-demo.tsx +67 -9
  212. package/registry/examples/navigation-menu-demo.tsx +1 -1
  213. package/registry/examples/pagination-demo.tsx +10 -7
  214. package/registry/examples/popover-demo.tsx +19 -19
  215. package/registry/examples/progress-demo.tsx +1 -1
  216. package/registry/examples/progress-slider-demo.tsx +1 -1
  217. package/registry/examples/radio-card-demo.tsx +4 -4
  218. package/registry/examples/radio-group-demo.tsx +2 -2
  219. package/registry/examples/resizable-demo.tsx +1 -1
  220. package/registry/examples/results-toolbar-demo.tsx +44 -0
  221. package/registry/examples/scroll-area-demo.tsx +3 -3
  222. package/registry/examples/segmented-control-demo.tsx +39 -0
  223. package/registry/examples/select-demo.tsx +1 -1
  224. package/registry/examples/sidebar-demo.tsx +5 -3
  225. package/registry/examples/slider-demo.tsx +3 -3
  226. package/registry/examples/social-button-demo.tsx +18 -8
  227. package/registry/examples/spinner-demo.tsx +13 -13
  228. package/registry/examples/tabs-demo.tsx +1 -1
  229. package/registry/examples/tag-demo.tsx +1 -1
  230. package/registry/examples/textarea-demo.tsx +4 -4
  231. package/registry/examples/toast-demo.tsx +1 -1
  232. package/registry/examples/toggle-demo.tsx +6 -6
  233. package/registry/examples/tooltip-demo.tsx +4 -4
  234. package/registry/guidance/USAGE.md +27 -0
  235. package/registry/hooks/use-direction.ts +193 -13
  236. package/registry/index.json +5668 -375
  237. package/registry/styles/globals.css +2404 -3999
  238. package/registry.json +156 -149
  239. package/schema/config.schema.json +11 -8
  240. package/schema/registry.schema.json +150 -45
  241. package/schema/tokens.schema.json +134 -34
  242. package/src/cli/command-line.js +194 -0
  243. package/src/cli/config-editors.js +9 -0
  244. package/src/cli/doctor.js +399 -0
  245. package/src/cli/file-transaction.js +295 -0
  246. package/src/cli/global-css.js +153 -0
  247. package/src/cli/index.js +567 -1613
  248. package/src/cli/install-plan.js +592 -0
  249. package/src/cli/install-receipt.js +171 -0
  250. package/src/cli/jsonc.js +203 -0
  251. package/src/cli/package-install-state.js +254 -0
  252. package/src/cli/package-manager.js +238 -0
  253. package/src/cli/package-plan.js +185 -0
  254. package/src/cli/package-version.js +97 -0
  255. package/src/cli/registry-query.js +207 -0
  256. package/src/cli/reporting.js +55 -0
  257. package/src/cli/schema-validation.js +19 -0
  258. package/src/cli/source-scanner.js +686 -0
  259. package/src/cli/vite-config.js +478 -0
  260. package/tokens/banhaten.tokens.json +4444 -331
  261. package/docs/design-system/components/command-bar.md +0 -57
  262. package/registry/components/expanded/BannerBoard.tsx +0 -225
  263. package/registry/components/expanded/CatalogTag.tsx +0 -85
  264. package/registry/components/expanded/CommandBar.tsx +0 -386
  265. package/registry/components/expanded/IconExplorer.tsx +0 -612
  266. package/registry/components/expanded/TimelineShowcase.tsx +0 -158
  267. package/registry/components/expanded/commandBar.css +0 -470
  268. package/registry/components/expanded/iconExplorer.css +0 -764
  269. package/registry/components/expanded/iconPacks.ts +0 -866
  270. package/registry/components/expanded/tag.css +0 -148
  271. package/registry/examples/expanded/icons-demo.tsx +0 -5
  272. package/tokens/Color mode.zip +0 -0
  273. package/tokens/Numbers.zip +0 -0
  274. package/tokens/Radius.zip +0 -0
  275. package/tokens/Theme.zip +0 -0
@@ -0,0 +1,100 @@
1
+ # Gap promotion report
2
+
3
+ This file is generated from background scenario gap metadata. A candidate appears when the same normalized need occurs in at least three distinct backgrounds. Heuristics cover common shells, navigation, tables, steps, composers, timelines, assets, and elevation; use `promotionKey` on a gap when an explicit cross-background grouping is more accurate.
4
+
5
+ Scanned 100 gaps across 38 backgrounds. Found 4 promotion candidates at the 3-background threshold.
6
+
7
+ ## Application/workspace shell
8
+
9
+ Key: `application-workspace-shell` · 20 backgrounds
10
+
11
+ Backgrounds: `accounting-workspace-setup`, `acme-finance-advisor`, `ai-node-detail`, `audit-log`, `bauhow-room-planning`, `benefits-enrollment`, `data-source-browser`, `debt-payoff`, `delivery-tracking`, `hooch-storefront-dashboard`, `inference-providers`, `marcohr-people`, `order-shipment-timeline`, `people-add-member`, `quran-audio-add-employee`, `recent-orders`, `school-assignments`, `shipment-list`, `sku-management`, `stripe-demo-account`
12
+
13
+ | Background | Gap | Kind | Status |
14
+ | --- | --- | --- | --- |
15
+ | `accounting-workspace-setup` | onboarding workspace shell (`setup-onboarding-shell`) | layout/composition pattern | missing |
16
+ | `acme-finance-advisor` | finance advisor workspace shell (`acme-finance-workspace-shell`) | layout/composition pattern | missing |
17
+ | `ai-node-detail` | node graph workspace shell (`node-graph-workspace-shell`) | layout/composition pattern | missing |
18
+ | `audit-log` | audit browser workspace shell (`audit-browser-workspace-shell`) | layout/composition pattern | missing |
19
+ | `bauhow-room-planning` | room-planning workspace shell (`room-planning-workspace-shell`) | layout/composition pattern | missing |
20
+ | `benefits-enrollment` | benefits enrollment screen shell (`angled-benefits-screen-shell`) | layout/composition pattern | missing |
21
+ | `data-source-browser` | desktop browser and app-shell scene (`desktop-browser-and-app-shell-scene`) | layout/composition pattern | missing |
22
+ | `debt-payoff` | finance workspace shell (`finance-workspace-shell`) | layout/composition pattern | missing |
23
+ | `delivery-tracking` | delivery tracking dashboard shell (`delivery-tracking-dashboard-shell`) | layout/composition pattern | missing |
24
+ | `hooch-storefront-dashboard` | storefront dashboard workspace shell (`hooch-workspace-shell`) | layout/composition pattern | missing |
25
+ | `inference-providers` | inference settings workspace shell (`settings-workspace-shell`) | layout/composition pattern | missing |
26
+ | `marcohr-people` | HR workspace shell (`marcohr-workspace-shell`) | layout/composition pattern | missing |
27
+ | `order-shipment-timeline` | cropped order workspace shell (`cropped-order-workspace-shell`) | layout/composition pattern | missing |
28
+ | `people-add-member` | HR workspace shell (`people-hr-workspace-shell`) | layout/composition pattern | missing |
29
+ | `quran-audio-add-employee` | people-and-culture workspace shell (`quran-audio-workspace-shell`) | layout/composition pattern | missing |
30
+ | `recent-orders` | orders dashboard workspace shell (`recent-orders-workspace-shell`) | layout/composition pattern | missing |
31
+ | `school-assignments` | school app workspace shell (`school-app-workspace-shell`) | layout/composition pattern | missing |
32
+ | `shipment-list` | shipment management workspace shell (`shipment-list-workspace-shell`) | layout/composition pattern | missing |
33
+ | `sku-management` | SKU management workspace shell (`sku-management-workspace-shell`) | layout/composition pattern | missing |
34
+ | `stripe-demo-account` | payments dashboard shell (`payments-dashboard-shell`) | layout/composition pattern | missing |
35
+
36
+ ## Brand and product icon assets
37
+
38
+ Key: `brand-icon-assets` · 16 backgrounds
39
+
40
+ Backgrounds: `ai-growth-marketing`, `ai-node-detail`, `bauhow-room-planning`, `crm-intelligence`, `data-source-browser`, `debt-payoff`, `email-compose`, `inference-providers`, `investor-profile`, `model-overview`, `mora-attio-integration`, `order-shipment-timeline`, `profile-menu`, `refund-simulation`, `shipment-list`, `sku-management`
41
+
42
+ | Background | Gap | Kind | Status |
43
+ | --- | --- | --- | --- |
44
+ | `ai-growth-marketing` | AI provider and company marks (`ai-provider-and-company-marks`) | icon asset | missing |
45
+ | `ai-node-detail` | node and action icon assets (`node-directional-provider-icons`) | icon asset | approximation |
46
+ | `bauhow-room-planning` | Bauhow brand and navigation glyphs (`room-planning-brand-glyphs`) | icon asset | approximation |
47
+ | `crm-intelligence` | brand logo mark (`brand-logo-mark`) | icon asset | missing |
48
+ | `data-source-browser` | Programa and vendor glyphs (`programa-and-vendor-glyphs`) | icon asset | missing |
49
+ | `debt-payoff` | finance brand and navigation glyphs (`finance-brand-glyphs`) | icon asset | approximation |
50
+ | `email-compose` | verified badge and model mark (`verified-badge-and-model-mark`) | icon asset | missing |
51
+ | `inference-providers` | provider brand marks (`provider-brand-marks`) | icon asset | approximation |
52
+ | `investor-profile` | verification and brand marks (`verification-and-brand-marks`) | icon asset | missing |
53
+ | `model-overview` | Mistral logo (`mistral-logo`) | icon asset | missing |
54
+ | `mora-attio-integration` | Mora and Attio brand marks (`mora-attio-brand-assets`) | icon asset | approximation |
55
+ | `order-shipment-timeline` | carrier mark (`carrier-mark`) | icon asset | missing |
56
+ | `profile-menu` | reference icon family (`reference-icon-family`) | icon asset | missing |
57
+ | `refund-simulation` | customer identity glyph (`customer-identity-glyph`) | icon asset | missing |
58
+ | `shipment-list` | carrier brand mark (`shipment-carrier-brand-mark`) | icon asset | approximation |
59
+ | `sku-management` | product and assistant icon set (`sku-product-icons`) | icon asset | approximation |
60
+
61
+ ## Elevation/blur semantic effects
62
+
63
+ Key: `elevation-effects` · 10 backgrounds
64
+
65
+ Backgrounds: `ai-growth-marketing`, `audit-log`, `data-source-browser`, `email-compose`, `investor-profile`, `model-overview`, `profile-menu`, `refund-simulation`, `school-assignments`, `share-of-voice`
66
+
67
+ | Background | Gap | Kind | Status |
68
+ | --- | --- | --- | --- |
69
+ | `ai-growth-marketing` | near-black overlay and chart glow (`near-black-overlay-and-chart-glow`) | token | missing |
70
+ | `audit-log` | audit blur and elevation (`audit-blur-and-elevation`) | token | missing |
71
+ | `data-source-browser` | browser chrome radius and elevation (`browser-chrome-radius-and-elevation`) | token | missing |
72
+ | `email-compose` | large composer radius/elevation (`large-composer-radius-elevation`) | token | missing |
73
+ | `investor-profile` | large card radius and soft elevation (`large-card-radius-and-soft-elevation`) | token | missing |
74
+ | `model-overview` | backdrop blur and modal elevation (`backdrop-blur-and-modal-elevation`) | token | missing |
75
+ | `profile-menu` | large radius and reflection elevation (`large-radius-and-reflection-elevation`) | token | missing |
76
+ | `refund-simulation` | warm canvas and large elevation (`warm-canvas-and-large-elevation`) | token | missing |
77
+ | `school-assignments` | warm dark backdrop and oversized shadow (`warm-dark-backdrop-and-oversized-shadow`) | token | missing |
78
+ | `share-of-voice` | dark translucent elevation and reflection (`share-of-voice-dark-elevation`) | token | approximation |
79
+
80
+ ## Avatar image assets
81
+
82
+ Key: `avatar-image-assets` · 9 backgrounds
83
+
84
+ Backgrounds: `delivery-tracking`, `investor-profile`, `mcp-settings`, `profile-menu`, `recent-orders`, `refund-simulation`, `remove-model`, `school-assignments`, `stripe-demo-account`
85
+
86
+ | Background | Gap | Kind | Status |
87
+ | --- | --- | --- | --- |
88
+ | `delivery-tracking` | courier avatar asset (`delivery-courier-avatar-asset`) | image asset | approximation |
89
+ | `investor-profile` | avatar artwork (`avatar-artwork`) | image asset | missing |
90
+ | `mcp-settings` | account avatar badge (`account-avatar-badge`) | image asset | missing |
91
+ | `profile-menu` | avatar and hand cursor (`avatar-and-hand-cursor`) | image asset | missing |
92
+ | `recent-orders` | brand mark and customer avatar (`recent-orders-brand-avatar-assets`) | image asset | approximation |
93
+ | `refund-simulation` | agent blue mosaic avatar (`agent-blue-mosaic-avatar`) | image asset | missing |
94
+ | `remove-model` | user and provider avatar crops (`remove-model-provider-assets`) | image asset | approximation |
95
+ | `school-assignments` | teacher avatar (`teacher-avatar`) | image asset | missing |
96
+ | `stripe-demo-account` | Stripe mark and account avatar (`stripe-brand-and-avatar-assets`) | image asset | approximation |
97
+
98
+ ## Review rule
99
+
100
+ A report entry is a prioritization signal, not automatic authorization to add a primitive. Review the mapped backgrounds, define the smallest stable API, migrate at least one real background, and remove the resolved gap metadata only after behavior, RTL, accessibility, and visual checks pass.
@@ -0,0 +1,68 @@
1
+ # Installation
2
+
3
+ ## Requirements
4
+
5
+ Banhaten installs source into a React 18.2/19 project using Tailwind CSS 4. Use Node 18.18 or newer.
6
+
7
+ ```bash
8
+ npx banhaten init
9
+ npx banhaten add button input select
10
+ ```
11
+
12
+ Run the package-manager command printed by the CLI. It detects npm, pnpm, Yarn, and Bun from `packageManager` or lockfiles.
13
+
14
+ Dependency declarations are validated with npm-compatible semantic-version
15
+ ranges. A consumer range is kept only when every version it allows satisfies the
16
+ Banhaten requirement. If the Banhaten range is wholly contained by a broader
17
+ consumer range, the CLI safely narrows the declaration in its existing package
18
+ section, updates `package.json`, and prints an install command so the package
19
+ manager can reconcile its lockfile. Partial overlaps, disjoint ranges, mutable
20
+ tags, workspace protocols, aliases, Git URLs, and local file specs fail without
21
+ writing. Banhaten deliberately does not treat a current lockfile resolution as a
22
+ durable compatibility guarantee. When the manifest is already safe, the CLI also
23
+ checks package versions inside the target project or declared workspace boundary.
24
+ For npm lockfiles v2 and v3 it verifies the importer declarations and exact locked
25
+ resolutions; stale, missing, incompatible, or opaque lock state keeps the install
26
+ action visible. Machine-readable output exposes the same
27
+ `{ required, command, cwd }` state, including the project or workspace directory
28
+ where the command must run.
29
+
30
+ ## Vite
31
+
32
+ Before writing, the CLI resolves a canonical install plan from
33
+ `banhaten.config.json`, the TypeScript `@/*` path, and the Vite `@` alias. If
34
+ TypeScript and Vite agree, that root is used even when another `src` directory
35
+ exists. If only one side declares the alias, the CLI mirrors it to the other.
36
+ Conflicting roots, multi-target TypeScript paths, destination-overlapping aliases,
37
+ inherited TypeScript aliases without local `baseUrl`/`paths`, and Vite aliases
38
+ that cannot be inspected statically fail without changing the project. When a
39
+ supported Vite config exists, `init` also adds the Tailwind Vite plugin while
40
+ preserving its existing structure.
41
+
42
+ CLI commands use strict schemas. Unknown or duplicate flags, missing values, and
43
+ unexpected positional arguments are rejected before project discovery. The
44
+ install receipt pins the resolved destinations; changing roots later requires
45
+ moving or removing the old generated files and receipt first.
46
+
47
+ ## Next.js and other frameworks
48
+
49
+ Without Vite, the CLI installs Tailwind and writes the configured global stylesheet, aliases, `cn` utility, and direction hook. Import the generated global stylesheet from the framework root layout and ensure the `@/*` TypeScript alias resolves to the source directory.
50
+
51
+ ## Fonts and direction
52
+
53
+ The generated stylesheet imports Inter weights 400–700 and IBM Plex Sans Arabic weights 400–700. Set document language and direction at the application boundary:
54
+
55
+ ```tsx
56
+ <html lang="ar" dir="rtl" data-theme="blue" data-radius="default">
57
+ ```
58
+
59
+ Wrap server-rendered component trees in `DirectionProvider` when request data already determines the direction; this keeps the first server and client snapshots identical. It is also the boundary for nested surfaces that differ from the document. Without it, components hydrate from a stable LTR snapshot and then synchronize from the document through one shared observer.
60
+
61
+ ## Updating safely
62
+
63
+ ```bash
64
+ npx banhaten diff
65
+ npx banhaten update
66
+ ```
67
+
68
+ The receipt records generated hashes. Unmodified files update automatically. Locally modified files and token blocks stop without writing; pass `--force` only after reviewing the unified diff. Put product overrides outside the marked token block and product composition in wrapper components.
@@ -0,0 +1,98 @@
1
+ # Launch Comparison: Banhaten and shadcn/ui
2
+
3
+ Benchmark references reviewed against the official shadcn/ui CLI, registry, theming, and RTL documentation on 2026-07-10; Banhaten implementation status refreshed on 2026-08-20. shadcn/ui is the distribution and documentation benchmark—not Banhaten’s visual source.
4
+
5
+ ## Outcome
6
+
7
+ Banhaten is a launch candidate with a distinct product contract: Arabic and English-first typography, inherited RTL by default, seven brand themes, three radius modes, stable primitives separated from larger Patterns, and a hard rule that distributable components consume canonical Banhaten tokens.
8
+
9
+ The former color-contrast exception is closed. The reviewed semantic-role corrections preserve the Banhaten palette while selecting valid foreground/background roles across themes and states. The Color Contrast page now evaluates 910 theme/mode scenarios and reports **910 passes and 0 failures**, with every pair, score, threshold, state, and swatch retained as inspectable evidence.
10
+
11
+ ## Benchmark Summary
12
+
13
+ | Area | shadcn/ui benchmark | Banhaten launch answer | Status |
14
+ | --- | --- | --- | --- |
15
+ | Distribution | Source registry and CLI installation | Canonical Banhaten registry plus generated shadcn-compatible `registry.json` | Verified |
16
+ | Component ownership | Copied source is consumer-owned | Receipt-backed generated ownership; local drift blocks updates unless explicitly forced | Stronger safety |
17
+ | Registry dependencies | Dependency closure and typed registry items | Dependency graph, schema validation, mirror checks, and isolated compilation of all 68 items | Verified |
18
+ | CLI | `init`, `add`, `view`, `docs`, migrations, presets | `init`, `add`, real `diff`, safe `update`, `list`, `search`, full `docs`, and `view` | Launch scope verified |
19
+ | Framework setup | Multiple framework templates | Vite auto-configuration and framework-neutral/Next-style source installation | Verified |
20
+ | Package managers | npm, pnpm, Yarn, Bun | Detection and install hints tested for all four | Verified |
21
+ | Theming | CSS variables, dark mode, presets | Live semantic aliases, light/dark, seven brand themes, three radius modes | Verified |
22
+ | Token contract | Optional CSS-variable path | CSS variables are mandatory; raw component colors, sizes, opacity, duration, z-index, shadow, and generic internal aliases fail CI | Banhaten-specific |
23
+ | RTL | First-class RTL and install-time transformations | Authored logical layout, inherited direction hook/provider, Arabic font, explicit message catalogs, and RTL keyboard tests | Banhaten-specific |
24
+ | Documentation | Live preview/code, component examples, API and CLI docs | Live registry previews, exact example source, extracted TypeScript props, token contract, accessibility contract, RTL, files, navigation/token search, and copy actions | Verified |
25
+ | Components vs blocks | Components and larger blocks | Stable Components and broader Patterns; experiments and visual QA isolated under Lab | Verified |
26
+ | Accessibility | Primitive semantics and per-component guidance | Native/Radix semantics, focus handling, dialog traps, tabs contract, reduced motion, forced colors, 910/910 contrast, strict route Axe, and Chromium/Firefox/WebKit tests | Verified |
27
+ | Release governance | Changelog and frequent CLI/schema evolution | Changelog, security, contributing, support matrix, stability tiers, deprecation, release gate, and roadmap | Verified |
28
+
29
+ ## Full Finding Register
30
+
31
+ ### Components and behavior
32
+
33
+ - Removed sample titles, images, actions, close controls, dates, time rows, and no-op callbacks from production defaults. Examples now own demonstration content.
34
+ - Added Item and controlled/uncontrolled Toggle Group APIs, including single/multiple selection and RTL-aware keyboard movement.
35
+ - Repaired Command Bar search/clear/submit behavior, Table disabled/action behavior, File Upload progress semantics, Spinner reduced-motion behavior, and Date Picker presets/month-year interaction.
36
+ - Standardized direction resolution for Alert, Pagination, Input OTP, Carousel, and Toast through explicit props, `DirectionProvider`, nearest `[dir]`, then document direction.
37
+ - Corrected Arabic Pagination copy and kept product strings explicit rather than silently localizing demo text.
38
+ - Added focused behavior tests; the component suite currently runs 205 tests.
39
+
40
+ ### Colors and tokens
41
+
42
+ - Repaired semantic foreground/background role selection across component states while preserving the canonical palette; all 910 generated contrast combinations now pass.
43
+ - Split system, typography, effects, component variables, dark effects, and
44
+ scoped aliases into owned `tokens/source/` fragments that compile to
45
+ `tokens/banhaten.tokens.json`.
46
+ - Generated live `var(...)` alias graphs rather than flattened semantic values and verified custom-property closure.
47
+ - Added named categorical chart semantics, spinner/skeleton/motion tokens, exact icon stroke tokens, Item tokens, default border/transition wiring, reduced motion, and forced-color focus rules.
48
+ - Generated exact component token metadata from source. All 68 registry components have non-empty, current token contracts.
49
+ - Deduplicated theme CSS against the default cascade and kept generated CSS at 156,729 bytes after the accessibility and component-token additions.
50
+ - Documented the no-global-density decision and the semantic elevation hierarchy.
51
+
52
+ ### Usage and composition
53
+
54
+ - Added installation, direction/localization, form recipes, density/elevation, support, roadmap, and release-policy guides.
55
+ - Separated stable Components from broader Patterns and isolated Component Matrix, Theme Test, Theme Lab, and screenshot review under Lab/Visual QA.
56
+ - Added explicit TypeScript prop source, token contract, accessibility contract, composition notes, RTL behavior, and registry file links to shared component documentation.
57
+ - Added searchable/copyable token pages with computed values and `var(--token)` usage syntax.
58
+
59
+ ### Installation and registry
60
+
61
+ - Added Inter and IBM Plex Sans Arabic weights 400–700 automatically and composed them through font-family tokens.
62
+ - Removed dead `style` and `tsx` config fields; config now contains only settings the CLI honors.
63
+ - Added real unified diff output and SHA-256 ownership receipts for base files, components, and the generated token block.
64
+ - Prevented `add` and `update` from overwriting local edits without `--force`; transactions roll back on failure.
65
+ - Kept CSS outside the marked Banhaten token block intact and protected edits inside the generated block.
66
+ - Tested Vite, non-Vite/Next-style projects, dependency conflicts, JSONC aliases, unsupported Vite config rollback, npm, pnpm, Yarn, and Bun.
67
+ - Generated a current shadcn-compatible registry and compiled every registry component in isolation.
68
+ - Removed design-source ZIP archives from the published package while keeping the canonical JSON contract and required registry assets.
69
+
70
+ ### Documentation and presentation
71
+
72
+ - Removed launch-blocking `noindex`, added description/social metadata, dynamic page titles, skip link, release status/version, and responsive searchable navigation.
73
+ - Reframed the overview around quick start, token rules, safe updates, and the now-enforced contrast contract.
74
+ - Added focus trap, Escape, initial focus, and focus return to Customize and Component Matrix dialogs.
75
+ - Completed Preview/Code tab IDs, `aria-controls`, `aria-labelledby`, roving focus, and keyboard navigation.
76
+ - Renamed ambiguous “Copy Page” to “Copy page link” and added clipboard fallback.
77
+ - Changed the CLI `docs` command from a path hint to the complete packaged component documentation plus metadata.
78
+
79
+ ### Verification and release
80
+
81
+ - Browser checks cover Chromium, Firefox, and WebKit; visual baselines stay on Chromium for deterministic snapshots.
82
+ - Automated checks cover LTR/RTL behavior, portals, focus return, docs navigation, mobile navigation, token copy/search, live theme overrides, the 910/910 contrast totals, reduced motion, forced colors, and strict route-wide Axe findings without a color-rule exception.
83
+ - Bundle budgets, schema validation, token generation, token-only styling, registry mirrors, documentation coverage, CLI integration, isolated installs, package audit, and tarball contents are release gates.
84
+
85
+ ## Deliberate Differences, Not Missing Copies
86
+
87
+ Banhaten does not copy shadcn’s preset marketplace, `create` templates, registry namespaces, programmatic registry API, or migration catalog for launch. Those are distribution-platform capabilities, not component-quality requirements. They belong on the roadmap only when Banhaten has a concrete consumer need and maintenance owner.
88
+
89
+ Banhaten also does not support opting out of CSS variables: the canonical token graph is the mechanism that keeps themes, Arabic typography, accessibility modes, and every component aligned. That constraint is intentional and is the core of Banhaten’s visual independence.
90
+
91
+ ## Reference Benchmark
92
+
93
+ - [shadcn/ui CLI](https://ui.shadcn.com/docs/cli)
94
+ - [shadcn/ui registry schema](https://ui.shadcn.com/docs/registry/registry-json)
95
+ - [shadcn/ui registry API](https://ui.shadcn.com/docs/registry/api-reference)
96
+ - [shadcn/ui theming](https://ui.shadcn.com/docs/theming)
97
+ - [shadcn/ui RTL](https://ui.shadcn.com/docs/rtl)
98
+ - [shadcn/ui changelog](https://ui.shadcn.com/docs/changelog)
@@ -1,19 +1,37 @@
1
1
  # Registry And CLI
2
2
 
3
- Banhaten publishes two registry shapes.
3
+ Banhaten maintains one authored registry catalog and publishes two compiled
4
+ registry shapes.
4
5
 
5
6
  | Artifact | Purpose |
6
7
  | --- | --- |
7
- | `registry/index.json` | Banhaten source of truth for the Banhaten CLI. Includes rich metadata for files, examples, dependencies, parts, RTL behavior, and design-system capabilities. |
8
+ | `registry/catalog/` | Authored base and component-owned contracts plus the intentional publication order. |
9
+ | `registry/index.json` | Compiled artifact consumed by the Banhaten CLI. Includes exhaustive module-aware runtime exports, non-exhaustive composition parts, files, examples, dependencies, RTL behavior, and design-system capabilities. |
8
10
  | `registry.json` | Generated shadcn-compatible export for tools that expect `https://ui.shadcn.com/schema/registry.json`. |
9
11
 
10
- Run `npm run registry:export` after editing `registry/index.json`.
12
+ Edit `registry/catalog/components/<id>.json` for a component or
13
+ `registry/catalog/base.json` for shared installation metadata, then run
14
+ `npm run registry:export` to compile `registry/index.json` and `registry.json`.
15
+
16
+ `npm run package:check` verifies the actual npm tarball rather than the
17
+ worktree: it extracts the archive, derives every required registry source and
18
+ example from the packed index, checks byte-for-byte closure, then runs the
19
+ packed CLI and installs the full component catalog into a clean project.
20
+
21
+ Each component groups its exhaustive runtime value API under
22
+ `supportedExports`, keyed by the exact registry source module that owns the
23
+ installed import path. The release gate resolves those modules with TypeScript
24
+ and rejects missing, stale, moved, type-only, or newly unlisted runtime values.
25
+ Run `npm run registry:exports` only after reviewing an intentional runtime API
26
+ change. The separate `parts` list is ordered component anatomy for examples and
27
+ composition; it is deliberately non-exhaustive and every part must resolve to a
28
+ supported runtime export.
11
29
 
12
30
  ## Generated Files
13
31
 
14
- Installed files are generated source. `banhaten add` and `banhaten update` compare installed files to registry files and replace stale generated files by default. Use `banhaten diff` before updating when a project has local edits inside generated components.
32
+ Installed files are generated source with receipt-backed ownership hashes. `banhaten add` and `banhaten update` replace a stale file automatically only when its current hash still matches the version Banhaten installed. A locally modified file stops the transaction and remains untouched unless the caller reviews `banhaten diff` and explicitly passes `--force`.
15
33
 
16
- The token stylesheet is generated-owned too. `init`, `add`, and `update` refresh the managed Banhaten token block while preserving CSS outside the block.
34
+ The token stylesheet is generated-owned too. `init`, `add`, and `update` refresh the marked Banhaten token block while preserving CSS outside the block. Local edits inside the marked block receive the same drift protection; place product overrides after the block.
17
35
 
18
36
  ## CLI Commands
19
37
 
@@ -21,14 +39,19 @@ The token stylesheet is generated-owned too. `init`, `add`, and `update` refresh
21
39
  npx banhaten init
22
40
  npx banhaten add button input select
23
41
  npx banhaten diff
24
- npx banhaten update button
42
+ npx banhaten update button --force
25
43
  npx banhaten list --json
26
44
  npx banhaten search input
27
45
  npx banhaten docs button
28
46
  npx banhaten view button
47
+ npx banhaten doctor
29
48
  ```
30
49
 
31
- The CLI detects `packageManager` and common lockfiles before printing dependency install hints.
50
+ `doctor` is read-only. It reports installed-version drift, missing or modified
51
+ managed files, missing agent guidance, deprecated ambiguous props, local raw
52
+ control geometry, and native date/select controls that bypass the registry.
53
+
54
+ The CLI resolves one unambiguous package-manager root before printing dependency install hints. Dependency requirements use `semver` containment rather than range overlap: already-narrow consumer ranges are preserved, broader ranges are narrowed only when the complete Banhaten range fits inside them, and partial/disjoint or non-semver declarations stop atomically. A narrowed manifest always produces an install hint; an unchanged manifest suppresses that action only when bounded installed packages and a supported npm lock agree. Other lock formats remain conservative and are reconciled by their selected package manager.
32
55
 
33
56
  ## Schema Files
34
57
 
@@ -0,0 +1,30 @@
1
+ # Release Policy
2
+
3
+ ## Stability tiers
4
+
5
+ | Tier | Promise | Documentation location |
6
+ | --- | --- | --- |
7
+ | Stable component | Supported public API, token contract, accessibility behavior, and migration notes | Components |
8
+ | Pattern | Supported composition with a broader layout and product-integration contract | Patterns |
9
+ | Lab | Evaluation or visual-QA surface; not a supported consumer API | Lab / Visual QA lab |
10
+
11
+ ## Versioning
12
+
13
+ Banhaten uses semantic versioning. Before 1.0, a minor release may contain a breaking API change, but every breaking change still requires a changelog entry and migration instructions. Patch releases must remain backward compatible.
14
+
15
+ Deprecations remain documented for at least one minor release before removal. Deprecated exports keep working during that window and include a replacement path.
16
+
17
+ ## Release gate
18
+
19
+ A release candidate must pass:
20
+
21
+ 1. Canonical schema and token generation checks.
22
+ 2. The component token checker with no raw-value or unresolved-variable violations.
23
+ 3. CLI integration tests and isolated compilation for every registry component.
24
+ 4. LTR and RTL interaction tests, accessibility checks, production build, and bundle budgets.
25
+ 5. Documentation coverage for install, usage, examples, API, tokens, direction, accessibility, and migration impact.
26
+ 6. Color Contrast report regeneration. Contrast failures are documented; color values change only through an explicit design decision.
27
+
28
+ ## Ownership
29
+
30
+ Every release has one maintainer responsible for the registry artifact, one design reviewer for token and visual changes, and one accessibility reviewer for interaction or semantic changes. A release is not complete until the changelog and package contents are verified from a packed tarball.
@@ -0,0 +1,14 @@
1
+ # Roadmap
2
+
3
+ The roadmap separates launch requirements from product-specific expansion. Items below are not stable APIs until they move into Components or Patterns with registry source, tokens, docs, and tests.
4
+
5
+ | Candidate | Current direction | Gate before promotion |
6
+ | --- | --- | --- |
7
+ | Drawer naming/API | Evaluate whether Sheet and Slideout already cover the use cases | Distinct semantics and migration value |
8
+ | Attachment/file item | Compose Item, File Upload, Progress, and actions first | Repeated product demand and a stable data model |
9
+ | Hijri calendar | Keep calendar formatting in the product layer for launch | Calendar-system adapter, locale rules, keyboard QA, and date-library decision |
10
+ | Compact density mode | Use supported component sizes | Named token mode, target-size guardrails, and full matrix QA |
11
+ | Additional Arabic fonts | IBM Plex Sans Arabic is the installed default | Licensing, loading cost, fallback metrics, and typography review |
12
+ | Framework adapters | Source installation remains framework-neutral | Maintained SSR/CSP tests and clear ownership |
13
+
14
+ Feature requests should describe the user problem, why existing primitives do not compose cleanly, accessibility requirements, direction/localization impact, and the proposed token contract.
@@ -0,0 +1,23 @@
1
+ # Support Matrix
2
+
3
+ | Area | Launch baseline |
4
+ | --- | --- |
5
+ | React | 18.2.x and 19.x; packed registry sources compile against both compatibility floors in CI |
6
+ | React DOM | 18.2.x and 19.x; kept on the same major as React |
7
+ | Tailwind CSS | 4.x |
8
+ | Node | Published CLI and registry: 18.18 or newer, with packed-artifact CI on 18.18.0, 20, and 22; the private playground build toolchain runs on Node 22 |
9
+ | TypeScript | Bundler-style module resolution; copied source is TypeScript/TSX |
10
+ | Browsers | Current stable Chrome/Edge, Firefox, and Safari; previous major versions are best-effort until they are included in automated release testing |
11
+ | Direction | Inherited LTR and RTL; explicit component overrides where documented |
12
+ | Fonts | Inter for Latin and IBM Plex Sans Arabic for Arabic, installed by the CLI |
13
+ | Package managers | npm, pnpm, Yarn, and Bun install hints |
14
+ | Tooling | Vite configured automatically when detected; framework-neutral source installation otherwise |
15
+
16
+ Internet Explorer and browsers without modern CSS custom properties, logical properties, or ES2022 support are not supported. Consumer applications remain responsible for their framework’s SSR, CSP, and browser-transpilation configuration.
17
+
18
+ Release verification builds and extracts the real npm tarball, derives its
19
+ required registry file and example closure from the packed index, executes the
20
+ packed CLI from outside the repository, and installs every registry component
21
+ into a clean fixture. React compatibility jobs then compile that packed source
22
+ against exact React 18.2 and React 19 floors instead of relying only on the
23
+ playground lockfile.
@@ -29,7 +29,7 @@ The implementation follows the Figma component at `Design system 3.0 Copy / Tabs
29
29
 
30
30
  ## Token Contract
31
31
 
32
- The component consumes Banhaten semantic tokens and component aliases. Do not hard-code Figma fallback literals in component source; promote any Figma value into `registry/styles/globals.css` as a `--bh-*` token or alias first.
32
+ The component consumes Banhaten semantic tokens and component aliases. Do not hard-code Figma fallback literals in component source; promote any Figma value into its owned `tokens/source/` fragment as a `--bh-*` token or alias first.
33
33
 
34
34
  - Backgrounds: `--bh-bg-neutral-subtle`, `--bh-bg-default`
35
35
  - Borders: `--bh-border-default`
@@ -3,7 +3,8 @@
3
3
  Banhaten components must be built from Banhaten tokens. Component source may use:
4
4
 
5
5
  - Generated `--bh-*` semantic tokens.
6
- - Component aliases emitted by `scripts/component-token-aliases.mjs`.
6
+ - System, typography, effect, and component variables compiled from their owned
7
+ fragments under `tokens/source/` into the published `cssVariables` contract.
7
8
  - shadcn alias bridge variables such as `--background`, `--foreground`, and `--ring` only when they point back to Banhaten tokens.
8
9
  - Documented exception-ledger values when the value is external, brand-owned, or required by a third-party primitive API.
9
10
 
@@ -18,6 +19,27 @@ Do not add raw component styling literals directly to `registry/components`:
18
19
 
19
20
  `npm run tokens:check` enforces the generated CSS contract and component token usage.
20
21
 
22
+ Structured tokens and aliases are authored in the domain and component-owned
23
+ fragments under `tokens/source/`. `tokens/banhaten.tokens.json` is output-only
24
+ and deterministically compiled from that manifest. Authored Tailwind mappings,
25
+ keyframes, global and accessibility rules, and typography utilities live in
26
+ `tokens/banhaten.utilities.css`. The distributable
27
+ `registry/styles/globals.css` is regenerated from the compiled token catalog and
28
+ that authored CSS source.
29
+
30
+ The generator emits the complete default-theme graph once, then emits only declarations whose values differ for each alternate theme. Dark mode and alternate themes inherit unchanged scoped aliases through the cascade. This keeps the live graph auditable without duplicating identical declarations.
31
+
32
+ The default appearance deliberately composes two concerns: `blue` owns brand
33
+ roles and `gray` owns the neutral ramp. As a result, default product surfaces
34
+ are achromatic, while links, focus states, and primary actions remain blue.
35
+ `cssContract.defaultTheme` and `cssContract.defaultNeutralTheme` record that
36
+ composition. `npm run tokens:build` synchronizes it into the authored default
37
+ theme and semantic color-mode values before compiling the public artifacts.
38
+ Alternate brand themes keep their reviewed neutral ramps unless their source is
39
+ explicitly changed.
40
+
41
+ Color values are design-owned. The generated Color Contrast page reports failing combinations and recommendations, but automation must not silently change source colors. A color change requires an explicit design review and regeneration of the contrast baseline.
42
+
21
43
  ## Exception Ledger
22
44
 
23
45
  The following exceptions are allowed only in token generation or documented alias source, not directly in component implementation:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "banhaten",
3
- "version": "0.1.3",
3
+ "version": "0.3.0",
4
4
  "description": "Banhaten design system: an Arabic and English-first React design system with shadcn-style component installation.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -9,8 +9,10 @@
9
9
  "files": [
10
10
  "src",
11
11
  "registry/index.json",
12
+ "registry/component-contract.json",
12
13
  "registry/components",
13
14
  "registry/examples",
15
+ "registry/guidance",
14
16
  "registry/hooks",
15
17
  "registry/styles",
16
18
  "registry/utils",
@@ -19,42 +21,50 @@
19
21
  "registry/assets/images/art-01.jpg",
20
22
  "registry.json",
21
23
  "tokens/banhaten.tokens.json",
22
- "tokens/Color mode.zip",
23
- "tokens/Theme.zip",
24
- "tokens/Numbers.zip",
25
- "tokens/Radius.zip",
26
24
  "schema",
27
25
  "docs",
28
26
  "banhaten.config.example.json",
29
27
  "README.md",
28
+ "CHANGELOG.md",
29
+ "CONTRIBUTING.md",
30
+ "SECURITY.md",
30
31
  "LICENSE"
31
32
  ],
32
33
  "scripts": {
33
34
  "build": "npm --prefix playground ci --include=dev --include=optional && npm --prefix playground run build",
34
35
  "build:railway": "npm --prefix playground ci --include=dev --include=optional && npm --prefix playground run build:railway",
35
36
  "start": "node playground/scripts/serve-static.mjs playground/dist",
36
- "check": "node --check src/cli/index.js && node --check scripts/generate-shadcn-registry.mjs && node --check scripts/normalize-component-docs.mjs && npm run cli:test && npm run tokens:check && npm run registry:check && npm run docs:check && npm run playground:test && npm run playground:audit",
37
- "cli:test": "node scripts/cli-integration-test.mjs",
37
+ "check": "node --check src/cli/index.js && node --check src/cli/command-line.js && node --check src/cli/doctor.js && node --check src/cli/config-editors.js && node --check src/cli/source-scanner.js && node --check src/cli/jsonc.js && node --check src/cli/vite-config.js && node --check src/cli/install-plan.js && node --check src/cli/install-receipt.js && node --check src/cli/package-install-state.js && node --check src/cli/package-manager.js && node --check src/cli/package-plan.js && node --check src/cli/package-version.js && node --check scripts/compile-token-catalog.mjs && node --check scripts/sync-default-theme-neutral-values.mjs && node --check scripts/token-catalog-test.mjs && node --check scripts/registry-catalog.mjs && node --check scripts/generate-registry-index.mjs && node --check scripts/generate-shadcn-registry.mjs && node --check scripts/normalize-component-docs.mjs && node --check scripts/package-artifact.mjs && node --check scripts/check-package-contents.mjs && node --check scripts/select-react-compatibility.mjs && npm run contracts:check && npm run cli:test && npm run tokens:check && npm run components:ownership:check && npm run registry:check && npm run docs:check && npm run package:check && npm run playground:build && npm run playground:test:browser && npm run playground:audit",
38
+ "contracts:check": "node scripts/validate-contracts.mjs",
39
+ "cli:test": "node scripts/cli-argument-test.mjs && node scripts/cli-dependency-test.mjs && node scripts/cli-install-plan-test.mjs && node scripts/cli-integration-test.mjs && node scripts/cli-doctor-test.mjs",
38
40
  "playground:build": "npm --prefix playground run build",
39
41
  "playground:dev": "npm --prefix playground run dev",
40
42
  "playground:test": "npm --prefix playground run test",
43
+ "playground:test:browser": "npm --prefix playground run test:browser",
41
44
  "playground:audit": "npm --prefix playground audit --audit-level=high",
42
- "registry:check": "node scripts/check-registry-mirrors.mjs && node scripts/generate-shadcn-registry.mjs --check",
43
- "registry:export": "node scripts/generate-shadcn-registry.mjs --write",
45
+ "package:check": "node scripts/generate-registry-index.mjs --check && node scripts/compile-token-catalog.mjs --check && node scripts/check-package-contents.mjs",
46
+ "registry:build": "node scripts/generate-registry-index.mjs --write",
47
+ "registry:check": "node scripts/generate-registry-index.mjs --check && node scripts/check-registry-mirrors.mjs && node scripts/generate-shadcn-registry.mjs --check && node scripts/registry-runtime-exports-test.mjs && node scripts/check-isolated-registry-installs.mjs --packed",
48
+ "registry:export": "node scripts/generate-registry-index.mjs --write && node scripts/generate-shadcn-registry.mjs --write",
49
+ "registry:exports": "node scripts/check-isolated-registry-installs.mjs --write-exports",
44
50
  "registry:sync": "node scripts/check-registry-mirrors.mjs --write",
45
51
  "components:tokens:check": "node scripts/check-component-token-usage.mjs",
52
+ "components:ownership:check": "npm --prefix playground run test:ownership",
53
+ "components:tokens:metadata": "node scripts/sync-component-token-metadata.mjs",
46
54
  "docs:check": "node scripts/check-component-docs.mjs && node scripts/normalize-component-docs.mjs",
47
55
  "docs:normalize": "node scripts/normalize-component-docs.mjs --write",
48
56
  "smoke": "node src/cli/index.js list",
49
- "tokens:build": "node scripts/generate-token-css.mjs --write",
50
- "tokens:check": "node scripts/generate-token-css.mjs --check && node scripts/check-token-contract.mjs && npm run components:tokens:check"
57
+ "tokens:aliases:check": "node scripts/sync-default-theme-neutral-values.mjs",
58
+ "tokens:aliases:sync": "node scripts/sync-default-theme-neutral-values.mjs --write",
59
+ "tokens:build": "npm run tokens:aliases:sync && node scripts/compile-token-catalog.mjs --write && node scripts/generate-token-css.mjs --write",
60
+ "tokens:check": "npm run tokens:aliases:check && node scripts/compile-token-catalog.mjs --check && node scripts/token-catalog-test.mjs && node scripts/generate-token-css.mjs --check && node scripts/check-token-css-reproducibility.mjs && node scripts/check-token-contract.mjs && npm run components:tokens:check && npm run components:tokens:metadata"
51
61
  },
52
62
  "engines": {
53
63
  "node": ">=18.18"
54
64
  },
55
65
  "peerDependencies": {
56
- "react": ">=18.2.0 || >=19.0.0",
57
- "react-dom": ">=18.2.0 || >=19.0.0",
66
+ "react": "^18.2.0 || ^19.0.0",
67
+ "react-dom": "^18.2.0 || ^19.0.0",
58
68
  "tailwindcss": "^4.0.0"
59
69
  },
60
70
  "keywords": [
@@ -78,6 +88,11 @@
78
88
  "directories": {
79
89
  "doc": "docs"
80
90
  },
81
- "devDependencies": {},
82
- "author": "Ahmad Galal"
91
+ "author": "Ahmad Galal",
92
+ "dependencies": {
93
+ "ajv": "^8.20.0",
94
+ "minimatch": "^10.2.5",
95
+ "semver": "^7.8.5",
96
+ "yaml": "^2.9.0"
97
+ }
83
98
  }
@@ -0,0 +1,40 @@
1
+ {
2
+ "capabilities": {
3
+ "actions": "Actions",
4
+ "alignments": "Alignments",
5
+ "breakpoints": "Breakpoints",
6
+ "cardPositions": "Card Positions",
7
+ "colors": "Colors",
8
+ "controlPositions": "Control Positions",
9
+ "densities": "Densities",
10
+ "directions": "Directions",
11
+ "features": "Features",
12
+ "forms": "Forms",
13
+ "indicators": "Indicators",
14
+ "intents": "Intents",
15
+ "itemKinds": "Item Kinds",
16
+ "itemTypes": "Item Types",
17
+ "kinds": "Kinds",
18
+ "labelPositions": "Label Positions",
19
+ "layouts": "Layouts",
20
+ "modes": "Modes",
21
+ "offsets": "Offsets",
22
+ "options": "Options",
23
+ "orientations": "Orientations",
24
+ "platforms": "Platforms",
25
+ "pointerPositions": "Pointer Positions",
26
+ "selectionTypes": "Selection Types",
27
+ "shapes": "Shapes",
28
+ "sides": "Sides",
29
+ "sizes": "Sizes",
30
+ "states": "States",
31
+ "statusColors": "Status Colors",
32
+ "styles": "Styles",
33
+ "tokens": "Tokens",
34
+ "tones": "Tones",
35
+ "types": "Types",
36
+ "valueModes": "Value Modes",
37
+ "variants": "Variants",
38
+ "widths": "Widths"
39
+ }
40
+ }
@@ -16,7 +16,7 @@ const alertDialogContentVariants = cva(
16
16
  "fixed left-1/2 top-1/2 z-[var(--bh-z-overlay)] flex max-h-[calc(100vh-(var(--bh-space-8xl-48)*2))] w-[var(--bh-alert-dialog-width)]",
17
17
  "max-w-[calc(100vw-(var(--bh-space-4xl-20)*2))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden",
18
18
  "rounded-[var(--bh-radius-2xl-12)] bg-[var(--bh-bg-raised)] text-[var(--bh-content-default)] shadow-[var(--shadow-modal)] outline-none",
19
- "[--bh-alert-dialog-border:var(--bh-border-subtle)] [--shadow-modal:inset_0px_0px_0px_var(--bh-border-width-default)_var(--bh-alert-dialog-border),var(--shadow-component-default)]",
19
+ "[--bh-alert-dialog-border:var(--bh-border-subtle)] [--shadow-modal:inset_0px_0px_0px_var(--bh-border-width-default)_var(--bh-alert-dialog-border),var(--shadow-lg)]",
20
20
  ],
21
21
  {
22
22
  variants: {
@@ -223,7 +223,7 @@ function AlertDialogIcon({
223
223
  {children ?? (
224
224
  <TriangleAlertIcon
225
225
  className="size-[var(--bh-space-3xl-16)]"
226
- strokeWidth={2}
226
+ strokeWidth="var(--bh-icon-stroke-200)"
227
227
  />
228
228
  )}
229
229
  </span>