@neetechs/ui 0.0.4 → 0.1.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 (299) hide show
  1. package/CHANGELOG.md +103 -0
  2. package/CONTRIBUTING.md +60 -0
  3. package/LICENSE +21 -21
  4. package/README.md +861 -752
  5. package/dist/ai/ai-action-button/ai-action-button.css +271 -271
  6. package/dist/ai/ai-approval-card/ai-approval-card.css +323 -323
  7. package/dist/ai/ai-conversation-panel/ai-conversation-panel.css +447 -447
  8. package/dist/ai/ai-prompt-input/ai-prompt-input.css +380 -380
  9. package/dist/ai/ai-proposal-card/ai-proposal-card.css +358 -358
  10. package/dist/ai/ai-suggestion-card/ai-suggestion-card.css +295 -295
  11. package/dist/ai/ai-tool-call/ai-tool-call.css +256 -256
  12. package/dist/ai/index.css +7 -7
  13. package/dist/appearance/index.d.ts +2 -0
  14. package/dist/appearance/index.d.ts.map +1 -1
  15. package/dist/appearance/index.js +1 -0
  16. package/dist/appearance/index.js.map +1 -1
  17. package/dist/appearance/inline-bootstrap.d.ts +29 -0
  18. package/dist/appearance/inline-bootstrap.d.ts.map +1 -0
  19. package/dist/appearance/inline-bootstrap.js +154 -0
  20. package/dist/appearance/inline-bootstrap.js.map +1 -0
  21. package/dist/appearance/preference.js +1 -1
  22. package/dist/appearance/preference.js.map +1 -1
  23. package/dist/appearance/theme-controller.d.ts +6 -0
  24. package/dist/appearance/theme-controller.d.ts.map +1 -1
  25. package/dist/appearance/theme-controller.js +5 -0
  26. package/dist/appearance/theme-controller.js.map +1 -1
  27. package/dist/behaviors/index.d.ts +3 -0
  28. package/dist/behaviors/index.d.ts.map +1 -1
  29. package/dist/behaviors/index.js +3 -0
  30. package/dist/behaviors/index.js.map +1 -1
  31. package/dist/behaviors/navigation.d.ts +98 -0
  32. package/dist/behaviors/navigation.d.ts.map +1 -0
  33. package/dist/behaviors/navigation.js +295 -0
  34. package/dist/behaviors/navigation.js.map +1 -0
  35. package/dist/behaviors/popover.d.ts +22 -0
  36. package/dist/behaviors/popover.d.ts.map +1 -0
  37. package/dist/behaviors/popover.js +126 -0
  38. package/dist/behaviors/popover.js.map +1 -0
  39. package/dist/behaviors/sidebar.d.ts +78 -0
  40. package/dist/behaviors/sidebar.d.ts.map +1 -0
  41. package/dist/behaviors/sidebar.js +263 -0
  42. package/dist/behaviors/sidebar.js.map +1 -0
  43. package/dist/components/alert/alert.css +220 -220
  44. package/dist/components/avatar/avatar.css +220 -220
  45. package/dist/components/badge/badge.css +174 -174
  46. package/dist/components/breadcrumb/breadcrumb.css +207 -207
  47. package/dist/components/button/button.css +238 -195
  48. package/dist/components/button-group/button-group.css +111 -0
  49. package/dist/components/card/card.css +265 -221
  50. package/dist/components/checkbox/checkbox.css +189 -189
  51. package/dist/components/chip/chip.css +269 -269
  52. package/dist/components/data-grid/data-grid.css +520 -520
  53. package/dist/components/description-list/description-list.css +187 -0
  54. package/dist/components/dialog/dialog.css +339 -339
  55. package/dist/components/drawer/drawer.css +484 -484
  56. package/dist/components/dropdown/dropdown.css +316 -316
  57. package/dist/components/icon-button/icon-button.css +162 -162
  58. package/dist/components/index.css +4 -0
  59. package/dist/components/input/input.css +163 -163
  60. package/dist/components/menu/menu.css +315 -315
  61. package/dist/components/pagination/pagination.css +250 -250
  62. package/dist/components/panel/panel.css +284 -284
  63. package/dist/components/popover/popover.css +153 -0
  64. package/dist/components/progress/progress.css +256 -256
  65. package/dist/components/radio/radio.css +166 -166
  66. package/dist/components/segmented-control/segmented-control.css +205 -205
  67. package/dist/components/select/select.css +117 -117
  68. package/dist/components/skeleton/skeleton.css +267 -262
  69. package/dist/components/split-button/split-button.css +292 -292
  70. package/dist/components/stat/stat.css +403 -0
  71. package/dist/components/switch/switch.css +195 -195
  72. package/dist/components/table/table.css +220 -220
  73. package/dist/components/tabs/tabs.css +293 -293
  74. package/dist/components/textarea/textarea.css +86 -86
  75. package/dist/components/toast/toast.css +345 -345
  76. package/dist/components/tooltip/tooltip.css +258 -258
  77. package/dist/domain/billing/index.css +629 -498
  78. package/dist/domain/calendar/agenda-list/agenda-list.css +224 -224
  79. package/dist/domain/calendar/day-slice/day-slice.css +384 -384
  80. package/dist/domain/calendar/day-timeline/day-timeline.css +332 -332
  81. package/dist/domain/calendar/event-card/event-card.css +338 -338
  82. package/dist/domain/calendar/index.css +5 -5
  83. package/dist/domain/calendar/month-grid/month-grid.css +426 -426
  84. package/dist/domain/calendar/week-grid/week-grid.css +480 -480
  85. package/dist/domain/companies/index.css +526 -526
  86. package/dist/domain/index.css +3 -3
  87. package/dist/index.css +5 -5
  88. package/dist/index.d.ts +1 -1
  89. package/dist/index.d.ts.map +1 -1
  90. package/dist/index.js +1 -1
  91. package/dist/index.js.map +1 -1
  92. package/dist/patterns/command-palette/command-palette.css +447 -447
  93. package/dist/patterns/company-switcher/company-switcher.css +390 -390
  94. package/dist/patterns/content-state/content-state.css +236 -236
  95. package/dist/patterns/empty-state/empty-state.css +260 -260
  96. package/dist/patterns/error-state/error-state.css +272 -272
  97. package/dist/patterns/form-layout/form-layout.css +106 -106
  98. package/dist/patterns/index.css +1 -0
  99. package/dist/patterns/loading-state/loading-state.css +287 -287
  100. package/dist/patterns/master-detail/master-detail.css +103 -103
  101. package/dist/patterns/notification-center/notification-center.css +443 -443
  102. package/dist/patterns/page/page.css +303 -219
  103. package/dist/patterns/profile-menu/profile-menu.css +298 -298
  104. package/dist/patterns/record-list/record-list.css +302 -0
  105. package/dist/patterns/search-bar/search-bar.css +457 -457
  106. package/dist/patterns/settings-layout/settings-layout.css +150 -150
  107. package/dist/patterns/workflow/workflow.css +168 -168
  108. package/dist/shell/app-shell/app-shell.css +211 -75
  109. package/dist/shell/content-frame/content-frame.css +93 -93
  110. package/dist/shell/footer/footer.css +256 -0
  111. package/dist/shell/header/header.css +328 -180
  112. package/dist/shell/index.css +8 -6
  113. package/dist/shell/mobile-nav/mobile-nav.css +254 -173
  114. package/dist/shell/navbar/navbar.css +255 -0
  115. package/dist/shell/sidebar/sidebar.css +314 -146
  116. package/dist/styles/accessibility.css +150 -116
  117. package/dist/styles/animations/motion.css +162 -162
  118. package/dist/styles/appearance/accent.css +215 -173
  119. package/dist/styles/appearance/density.css +61 -61
  120. package/dist/styles/appearance/motion.css +40 -40
  121. package/dist/styles/base.css +83 -83
  122. package/dist/styles/index.css +28 -28
  123. package/dist/styles/localization.css +56 -56
  124. package/dist/styles/reset.css +51 -51
  125. package/dist/styles/responsive.css +101 -101
  126. package/dist/styles/themes/dark.css +202 -202
  127. package/dist/styles/themes/high-contrast.css +290 -290
  128. package/dist/styles/themes/light.css +201 -201
  129. package/dist/styles/tokens/breakpoints.css +37 -37
  130. package/dist/styles/tokens/color.css +102 -96
  131. package/dist/styles/tokens/compatibility.css +33 -33
  132. package/dist/styles/tokens/elevation.css +26 -26
  133. package/dist/styles/tokens/index.css +9 -9
  134. package/dist/styles/tokens/motion.css +35 -35
  135. package/dist/styles/tokens/radius.css +26 -26
  136. package/dist/styles/tokens/spacing.css +56 -56
  137. package/dist/styles/tokens/typography.css +85 -85
  138. package/dist/styles/tokens/z-index.css +14 -14
  139. package/dist/styles/utilities/layout.css +153 -153
  140. package/dist/styles/utilities/text.css +152 -152
  141. package/dist/styles/utilities/visibility.css +47 -47
  142. package/dist/version.d.ts +2 -0
  143. package/dist/version.d.ts.map +1 -0
  144. package/dist/version.js +3 -0
  145. package/dist/version.js.map +1 -0
  146. package/docs/NEETECHS_UI_UPGRADE_PLAN.md +192 -0
  147. package/docs/accessibility.md +218 -218
  148. package/docs/appearance-and-theming.md +150 -118
  149. package/docs/brand-palette.md +36 -0
  150. package/docs/component-architecture.md +137 -137
  151. package/docs/component-guidelines.md +64 -64
  152. package/docs/components.md +173 -0
  153. package/docs/content-and-terminology.md +207 -207
  154. package/docs/design-system-audit.md +120 -0
  155. package/docs/design-system-baseline-audit.md +226 -226
  156. package/docs/design-token-contract.md +279 -279
  157. package/docs/layering.md +53 -0
  158. package/docs/localization-and-rtl.md +147 -147
  159. package/docs/migration.md +193 -142
  160. package/docs/page-patterns-and-workflows.md +275 -260
  161. package/docs/responsive-and-adaptive-design.md +351 -351
  162. package/docs/semantic-role-migration-audit.md +77 -77
  163. package/docs/site-chrome.md +313 -0
  164. package/docs/states-feedback-and-recovery.md +206 -206
  165. package/docs/theming.md +5 -5
  166. package/package.json +19 -6
  167. package/src/ai/ai-action-button/ai-action-button.css +271 -271
  168. package/src/ai/ai-approval-card/ai-approval-card.css +323 -323
  169. package/src/ai/ai-conversation-panel/ai-conversation-panel.css +447 -447
  170. package/src/ai/ai-prompt-input/ai-prompt-input.css +380 -380
  171. package/src/ai/ai-proposal-card/ai-proposal-card.css +358 -358
  172. package/src/ai/ai-suggestion-card/ai-suggestion-card.css +295 -295
  173. package/src/ai/ai-tool-call/ai-tool-call.css +256 -256
  174. package/src/ai/index.css +7 -7
  175. package/src/appearance/cache.ts +236 -236
  176. package/src/appearance/cookie.ts +184 -184
  177. package/src/appearance/index.ts +86 -80
  178. package/src/appearance/inline-bootstrap.ts +163 -0
  179. package/src/appearance/preference.ts +121 -121
  180. package/src/appearance/theme-controller.ts +384 -371
  181. package/src/appearance/types.ts +61 -61
  182. package/src/behaviors/announcer.ts +222 -222
  183. package/src/behaviors/calendar.ts +92 -92
  184. package/src/behaviors/data-grid.ts +133 -133
  185. package/src/behaviors/dialog.ts +203 -203
  186. package/src/behaviors/direction.ts +34 -34
  187. package/src/behaviors/drawer.ts +210 -210
  188. package/src/behaviors/dropdown.ts +344 -344
  189. package/src/behaviors/focus-trap.ts +304 -304
  190. package/src/behaviors/forms.ts +205 -205
  191. package/src/behaviors/ids.ts +47 -47
  192. package/src/behaviors/index.ts +3 -0
  193. package/src/behaviors/keyboard.ts +305 -305
  194. package/src/behaviors/navigation.ts +417 -0
  195. package/src/behaviors/overlay.ts +344 -344
  196. package/src/behaviors/popover.ts +157 -0
  197. package/src/behaviors/sidebar.ts +342 -0
  198. package/src/behaviors/state.ts +282 -282
  199. package/src/behaviors/tabs.ts +137 -137
  200. package/src/behaviors/viewport.ts +61 -61
  201. package/src/components/alert/alert.css +220 -220
  202. package/src/components/avatar/avatar.css +220 -220
  203. package/src/components/badge/badge.css +174 -174
  204. package/src/components/breadcrumb/breadcrumb.css +207 -207
  205. package/src/components/button/button.css +238 -195
  206. package/src/components/button-group/button-group.css +111 -0
  207. package/src/components/card/card.css +265 -221
  208. package/src/components/checkbox/checkbox.css +189 -189
  209. package/src/components/chip/chip.css +269 -269
  210. package/src/components/data-grid/data-grid.css +520 -520
  211. package/src/components/description-list/description-list.css +187 -0
  212. package/src/components/dialog/dialog.css +339 -339
  213. package/src/components/drawer/drawer.css +484 -484
  214. package/src/components/dropdown/dropdown.css +316 -316
  215. package/src/components/icon-button/icon-button.css +162 -162
  216. package/src/components/index.css +4 -0
  217. package/src/components/input/input.css +163 -163
  218. package/src/components/menu/menu.css +315 -315
  219. package/src/components/pagination/pagination.css +250 -250
  220. package/src/components/panel/panel.css +284 -284
  221. package/src/components/popover/popover.css +153 -0
  222. package/src/components/progress/progress.css +256 -256
  223. package/src/components/radio/radio.css +166 -166
  224. package/src/components/segmented-control/segmented-control.css +205 -205
  225. package/src/components/select/select.css +117 -117
  226. package/src/components/skeleton/skeleton.css +267 -262
  227. package/src/components/split-button/split-button.css +292 -292
  228. package/src/components/stat/stat.css +403 -0
  229. package/src/components/switch/switch.css +195 -195
  230. package/src/components/table/table.css +220 -220
  231. package/src/components/tabs/tabs.css +293 -293
  232. package/src/components/textarea/textarea.css +86 -86
  233. package/src/components/toast/toast.css +345 -345
  234. package/src/components/tooltip/tooltip.css +258 -258
  235. package/src/domain/billing/index.css +629 -498
  236. package/src/domain/calendar/agenda-list/agenda-list.css +224 -224
  237. package/src/domain/calendar/day-slice/day-slice.css +384 -384
  238. package/src/domain/calendar/day-timeline/day-timeline.css +332 -332
  239. package/src/domain/calendar/event-card/event-card.css +338 -338
  240. package/src/domain/calendar/index.css +5 -5
  241. package/src/domain/calendar/month-grid/month-grid.css +426 -426
  242. package/src/domain/calendar/week-grid/week-grid.css +480 -480
  243. package/src/domain/companies/index.css +526 -526
  244. package/src/domain/index.css +3 -3
  245. package/src/index.css +5 -5
  246. package/src/index.ts +7 -7
  247. package/src/localization/index.ts +56 -56
  248. package/src/patterns/command-palette/command-palette.css +447 -447
  249. package/src/patterns/company-switcher/company-switcher.css +390 -390
  250. package/src/patterns/content-state/content-state.css +236 -236
  251. package/src/patterns/empty-state/empty-state.css +260 -260
  252. package/src/patterns/error-state/error-state.css +272 -272
  253. package/src/patterns/form-layout/form-layout.css +106 -106
  254. package/src/patterns/index.css +1 -0
  255. package/src/patterns/loading-state/loading-state.css +287 -287
  256. package/src/patterns/master-detail/master-detail.css +103 -103
  257. package/src/patterns/notification-center/notification-center.css +443 -443
  258. package/src/patterns/page/page.css +303 -219
  259. package/src/patterns/profile-menu/profile-menu.css +298 -298
  260. package/src/patterns/record-list/record-list.css +302 -0
  261. package/src/patterns/search-bar/search-bar.css +457 -457
  262. package/src/patterns/settings-layout/settings-layout.css +150 -150
  263. package/src/patterns/workflow/workflow.css +168 -168
  264. package/src/shell/app-shell/app-shell.css +211 -75
  265. package/src/shell/content-frame/content-frame.css +93 -93
  266. package/src/shell/footer/footer.css +256 -0
  267. package/src/shell/header/header.css +328 -180
  268. package/src/shell/index.css +8 -6
  269. package/src/shell/mobile-nav/mobile-nav.css +254 -173
  270. package/src/shell/navbar/navbar.css +255 -0
  271. package/src/shell/sidebar/sidebar.css +314 -146
  272. package/src/styles/accessibility.css +150 -116
  273. package/src/styles/animations/motion.css +162 -162
  274. package/src/styles/appearance/accent.css +215 -173
  275. package/src/styles/appearance/density.css +61 -61
  276. package/src/styles/appearance/motion.css +40 -40
  277. package/src/styles/base.css +83 -83
  278. package/src/styles/index.css +28 -28
  279. package/src/styles/localization.css +56 -56
  280. package/src/styles/reset.css +51 -51
  281. package/src/styles/responsive.css +101 -101
  282. package/src/styles/themes/dark.css +202 -202
  283. package/src/styles/themes/high-contrast.css +290 -290
  284. package/src/styles/themes/light.css +201 -201
  285. package/src/styles/tokens/breakpoints.css +37 -37
  286. package/src/styles/tokens/color.css +102 -96
  287. package/src/styles/tokens/compatibility.css +33 -33
  288. package/src/styles/tokens/elevation.css +26 -26
  289. package/src/styles/tokens/index.css +9 -9
  290. package/src/styles/tokens/motion.css +35 -35
  291. package/src/styles/tokens/radius.css +26 -26
  292. package/src/styles/tokens/spacing.css +56 -56
  293. package/src/styles/tokens/typography.css +85 -85
  294. package/src/styles/tokens/z-index.css +14 -14
  295. package/src/styles/utilities/layout.css +153 -153
  296. package/src/styles/utilities/text.css +152 -152
  297. package/src/styles/utilities/visibility.css +47 -47
  298. package/src/types/index.ts +126 -126
  299. package/src/version.ts +2 -0
package/README.md CHANGED
@@ -1,752 +1,861 @@
1
- # @neetechs/ui
2
-
3
- Official framework-agnostic Neetechs UI design system.
4
-
5
- ## Responsive and adaptive behavior
6
-
7
- Reusable components respond to their *container*, not the viewport: the shell content area, dialog and drawer bodies, tables, data grids, and forms are query containers, and `.nt-region` makes any dashboard column or split pane one. Viewport media queries are reserved for shell-level layout and use a documented rem scale (30/40/48/64/80rem — mirrored by `NT_VIEWPORTS` in `@neetechs/ui/behaviors`). Mobile contracts include the `.nt-mobile-nav` drawer shell mode, table priority columns and row details, data-grid constrained/record modes, the `.nt-calendar-agenda` phone calendar, dvh-safe full-height utilities (`.nt-fill-viewport`), safe-area padding, and coarse-pointer touch targets. See [docs/responsive-and-adaptive-design.md](./docs/responsive-and-adaptive-design.md).
8
-
9
- ```bash
10
- npm run check:responsive
11
- ```
12
-
13
- ## Page patterns and content standards
14
-
15
- Shared page anatomy (`.nt-page-header`, `.nt-page-toolbar`, `.nt-page-section`, `.nt-page-footer-actions`), responsive forms (`.nt-form`), settings layouts, master-detail, and multi-step workflow patterns are documented in [docs/page-patterns-and-workflows.md](./docs/page-patterns-and-workflows.md). Terminology, action-label, validation, empty-state, confirmation, and AI-copy rules live in [docs/content-and-terminology.md](./docs/content-and-terminology.md) and are enforced for repository-owned fixtures by:
16
-
17
- ```bash
18
- npm run check:content
19
- ```
20
-
21
- ## Localization and RTL
22
-
23
- Use native document metadata; components inherit nested direction changes:
24
-
25
- ```html
26
- <html lang="ar" dir="rtl">
27
- <code dir="ltr" class="nt-technical-value">POST /api/v1/invoices</code>
28
- </html>
29
- ```
30
-
31
- Use `.nt-icon--directional` only for arrows whose inline meaning should mirror. Explicit-locale number/date helpers are exported from `@neetechs/ui/localization`. Applications provide translations, locale/time-zone selection, and approved font loading. See [the RTL and localization contract](./docs/localization-and-rtl.md).
32
-
33
- `@neetechs/ui` is pure CSS + pure TypeScript helpers. It does not depend on Angular, React, Next.js, Bootstrap, Tailwind, or Angular Material.
34
-
35
- Use it in:
36
-
37
- - Angular
38
- - React
39
- - Next.js
40
- - plain JavaScript
41
- - plain HTML
42
- - future Neetechs apps
43
-
44
- ## Core rules
45
-
46
- - Use `nt-` class prefix.
47
- - Use `--nt-` token prefix.
48
- - Do not hardcode component colors.
49
- - Components must consume design tokens.
50
- - Keep this base package framework-agnostic.
51
- - Build Angular or React wrappers later, outside this package.
52
-
53
- ## Install
54
-
55
- ```bash
56
- npm install @neetechs/ui
57
- ```
58
-
59
- ## Import all styles
60
-
61
- In TypeScript or JavaScript:
62
-
63
- ```ts
64
- import '@neetechs/ui/styles.css';
65
- ```
66
-
67
- In CSS:
68
-
69
- ```css
70
- @import '@neetechs/ui/styles.css';
71
- ```
72
-
73
- This imports:
74
-
75
- ```txt
76
- styles
77
- shell
78
- components
79
- patterns
80
- ai
81
- domain
82
- ```
83
-
84
- ## Import only what you need
85
-
86
- ```css
87
- @import '@neetechs/ui/base.css';
88
- @import '@neetechs/ui/shell.css';
89
- @import '@neetechs/ui/components.css';
90
- @import '@neetechs/ui/patterns.css';
91
- @import '@neetechs/ui/ai.css';
92
- @import '@neetechs/ui/domain.css';
93
- ```
94
-
95
- Specific CSS entry points:
96
-
97
- ```css
98
- @import '@neetechs/ui/components/button.css';
99
- @import '@neetechs/ui/components/input.css';
100
- @import '@neetechs/ui/components/card.css';
101
- @import '@neetechs/ui/components/dropdown.css';
102
- @import '@neetechs/ui/patterns/company-switcher.css';
103
- @import '@neetechs/ui/patterns/profile-menu.css';
104
- @import '@neetechs/ui/ai/ai-prompt-input.css';
105
- @import '@neetechs/ui/domain/calendar.css';
106
- @import '@neetechs/ui/domain/billing.css';
107
- @import '@neetechs/ui/domain/companies.css';
108
- ```
109
-
110
- ## Theme setup
111
-
112
- For the shared SSR-safe appearance system, use `@neetechs/ui/appearance` and
113
- see [docs/appearance-and-theming.md](./docs/appearance-and-theming.md).
114
-
115
- ```ts
116
- import { bootstrapNeetechsAppearance, createAppearanceController } from '@neetechs/ui/appearance';
117
-
118
- bootstrapNeetechsAppearance(); // before framework rendering
119
- const appearance = createAppearanceController();
120
- appearance.initialize();
121
- ```
122
-
123
- The controller applies the public contract to the root `html` element.
124
-
125
- ```html
126
- <html data-nt-theme="dark" data-nt-theme-preference="system"
127
- data-nt-accent="orange" data-nt-density="comfortable"
128
- data-nt-contrast="normal" data-nt-motion="full">
129
- ...
130
- </html>
131
- ```
132
-
133
- Supported preferences are `system`, `light`, and `dark`; resolved themes are:
134
-
135
- ```txt
136
- dark
137
- light
138
- ```
139
-
140
- Supported accents:
141
-
142
- ```txt
143
- orange
144
- blue
145
- green
146
- purple
147
- neutral
148
- ```
149
-
150
- Supported density:
151
-
152
- ```txt
153
- compact
154
- comfortable
155
- spacious
156
- ```
157
-
158
- ## Recommended app setup
159
-
160
- For a full Neetechs app, import the full stylesheet once at the app root:
161
-
162
- ```ts
163
- import '@neetechs/ui/styles.css';
164
- ```
165
-
166
- Then initialize appearance before rendering. Do not create a competing body-level theme:
167
-
168
- ```html
169
- <body>
170
- <div class="nt-app-shell">
171
- ...
172
- </div>
173
- </body>
174
- ```
175
-
176
- Do not import random component CSS files all over the app unless you are intentionally optimizing bundle size. For most Neetechs apps, one root import is cleaner.
177
-
178
- ## Basic button
179
-
180
- ```html
181
- <button class="nt-button nt-button--primary">
182
- Save changes
183
- </button>
184
-
185
- <button class="nt-button nt-button--secondary">
186
- Cancel
187
- </button>
188
-
189
- <button class="nt-button nt-button--ghost">
190
- More
191
- </button>
192
- ```
193
-
194
- Async actions keep their visible name, expose busy state, and prevent accidental duplicate activation without treating pending as native disabled:
195
-
196
- ```ts
197
- import { ntCreateAsyncAction } from '@neetechs/ui';
198
-
199
- const save = ntCreateAsyncAction({
200
- control: document.querySelector<HTMLButtonElement>('#save')!,
201
- async run(_event, signal) {
202
- await saveChanges({ signal });
203
- },
204
- });
205
- ```
206
-
207
- ```html
208
- <button id="save" class="nt-button nt-button--primary">
209
- Save changes
210
- </button>
211
- ```
212
-
213
- ## Basic input
214
-
215
- ```html
216
- <label class="nt-field">
217
- <span class="nt-field__label">Company name</span>
218
- <input class="nt-input" placeholder="Neetechs" />
219
- <span class="nt-field__hint">Used across your workspace.</span>
220
- </label>
221
- ```
222
-
223
- Invalid input:
224
-
225
- ```html
226
- <label class="nt-field nt-field--error">
227
- <span class="nt-field__label" id="email-label">Email</span>
228
- <input id="email" class="nt-input" aria-labelledby="email-label"
229
- aria-describedby="email-error" aria-invalid="true" />
230
- <span id="email-error" class="nt-field__error">Enter a valid email.</span>
231
- </label>
232
- ```
233
-
234
- For full form submission state, use `ntConnectField`, `ntFocusErrorSummary`, and `ntCreateFormController` from `@neetechs/ui`.
235
-
236
- ## Feedback and recovery
237
-
238
- New content-state work uses the shared pattern:
239
-
240
- ```html
241
- <section class="nt-content-state nt-content-state--section"
242
- data-nt-content-state="offline"
243
- aria-labelledby="offline-title">
244
- <h2 id="offline-title" class="nt-content-state__title">Connection lost</h2>
245
- <p class="nt-content-state__description">
246
- Cached records are still visible. Retry when the connection returns.
247
- </p>
248
- <div class="nt-content-state__actions">
249
- <button class="nt-button nt-button--secondary">Retry</button>
250
- </div>
251
- </section>
252
- ```
253
-
254
- `ntCreateToastController` manages toast semantics, dedupe, stack limits, pause-on-hover/focus, and cleanup. Use toasts for brief noncritical feedback, not field validation, permission-denied pages, or irreversible-action confirmation.
255
-
256
- See [docs/states-feedback-and-recovery.md](./docs/states-feedback-and-recovery.md) for the canonical state vocabulary, forms, loading, empty/error/offline patterns, confirmations, unsaved changes, AI write-action approval, and recovery rules.
257
-
258
- ## Card
259
-
260
- ```html
261
- <section class="nt-card">
262
- <header class="nt-card__header">
263
- <div class="nt-card__header-main">
264
- <p class="nt-card__eyebrow">Workspace</p>
265
- <h2 class="nt-card__title">Company Center</h2>
266
- <p class="nt-card__subtitle">
267
- Manage companies, branding, team, and billing.
268
- </p>
269
- </div>
270
-
271
- <div class="nt-card__actions">
272
- <button class="nt-button nt-button--secondary">Settings</button>
273
- </div>
274
- </header>
275
-
276
- <div class="nt-card__body">
277
- <p>Put your content here.</p>
278
- </div>
279
-
280
- <footer class="nt-card__footer">
281
- <span class="nt-card__meta">Updated today</span>
282
- <button class="nt-button nt-button--primary">Open</button>
283
- </footer>
284
- </section>
285
- ```
286
-
287
- ## App shell
288
-
289
- ```html
290
- <div class="nt-app-shell">
291
- <aside class="nt-sidebar">
292
- ...
293
- </aside>
294
-
295
- <div class="nt-shell-main">
296
- <header class="nt-header">
297
- ...
298
- </header>
299
-
300
- <main class="nt-content-frame">
301
- ...
302
- </main>
303
- </div>
304
- </div>
305
- ```
306
-
307
- ## Company switcher
308
-
309
- ```html
310
- <div class="nt-company-switcher">
311
- <header class="nt-company-switcher__header">
312
- <div class="nt-company-switcher__header-main">
313
- <span class="nt-company-switcher__eyebrow">Active company</span>
314
- <h2 class="nt-company-switcher__title">Switch company</h2>
315
- <p class="nt-company-switcher__description">
316
- Choose the company you want to manage.
317
- </p>
318
- </div>
319
- </header>
320
-
321
- <div class="nt-company-switcher__body">
322
- <button class="nt-company-switcher__item nt-company-switcher__item--active">
323
- <span class="nt-company-switcher__logo">SD</span>
324
-
325
- <span class="nt-company-switcher__item-main">
326
- <span class="nt-company-switcher__name">Sydfix</span>
327
- <span class="nt-company-switcher__meta">
328
- <span class="nt-company-switcher__country">SE</span>
329
- <span class="nt-company-switcher__role">owner</span>
330
- <span class="nt-company-switcher__currency">SEK</span>
331
- </span>
332
- </span>
333
-
334
- <span class="nt-company-switcher__check">✓</span>
335
- </button>
336
- </div>
337
-
338
- <footer class="nt-company-switcher__footer">
339
- <a class="nt-company-switcher__footer-action" href="/companies/create">
340
- Create company
341
- </a>
342
- </footer>
343
- </div>
344
- ```
345
-
346
- ## Profile menu
347
-
348
- ```html
349
- <div class="nt-profile-menu">
350
- <header class="nt-profile-menu__header">
351
- <span class="nt-avatar">SJ</span>
352
-
353
- <div class="nt-profile-menu__identity">
354
- <span class="nt-profile-menu__name">Sayed Jihad ElSayed</span>
355
- <span class="nt-profile-menu__email">jelsayed@uab.edu</span>
356
- </div>
357
- </header>
358
-
359
- <div class="nt-profile-menu__body">
360
- <a class="nt-profile-menu__item" href="/profile">
361
- <span class="nt-profile-menu__item-icon">👤</span>
362
- <span class="nt-profile-menu__item-main">
363
- <span class="nt-profile-menu__item-title">Profile</span>
364
- </span>
365
- </a>
366
-
367
- <a class="nt-profile-menu__item" href="/settings">
368
- <span class="nt-profile-menu__item-icon">⚙</span>
369
- <span class="nt-profile-menu__item-main">
370
- <span class="nt-profile-menu__item-title">Settings</span>
371
- </span>
372
- </a>
373
- </div>
374
- </div>
375
- ```
376
-
377
- ## AI prompt input
378
-
379
- ```html
380
- <form class="nt-ai-prompt-input">
381
- <div class="nt-ai-prompt-input__header">
382
- <div class="nt-ai-prompt-input__title" id="ai-prompt-label">
383
- <span class="nt-ai-prompt-input__title-icon">✦</span>
384
- Ask AI
385
- </div>
386
-
387
- <div class="nt-ai-prompt-input__meta">GPT</div>
388
- </div>
389
-
390
- <div class="nt-ai-prompt-input__body">
391
- <textarea
392
- class="nt-ai-prompt-input__textarea"
393
- aria-labelledby="ai-prompt-label"
394
- placeholder="Ask AI to plan your day..."
395
- ></textarea>
396
- </div>
397
-
398
- <footer class="nt-ai-prompt-input__footer">
399
- <div class="nt-ai-prompt-input__tools">
400
- <button class="nt-ai-prompt-input__tool" type="button">Calendar</button>
401
- <button class="nt-ai-prompt-input__tool" type="button">Company</button>
402
- </div>
403
-
404
- <div class="nt-ai-prompt-input__actions">
405
- <button class="nt-ai-prompt-input__submit" type="submit">
406
- Generate
407
- </button>
408
- </div>
409
- </footer>
410
- </form>
411
- ```
412
-
413
- ## AI proposal card
414
-
415
- ```html
416
- <section class="nt-ai-proposal-card">
417
- <header class="nt-ai-proposal-card__header">
418
- <span class="nt-ai-proposal-card__icon">✦</span>
419
-
420
- <div class="nt-ai-proposal-card__header-main">
421
- <span class="nt-ai-proposal-card__eyebrow">AI proposal</span>
422
- <h2 class="nt-ai-proposal-card__title">Schedule focus block</h2>
423
- <p class="nt-ai-proposal-card__description">
424
- AI found a free slot based on your calendar.
425
- </p>
426
- </div>
427
-
428
- <span class="nt-ai-proposal-card__confidence nt-ai-proposal-card__confidence--high">
429
- High confidence
430
- </span>
431
- </header>
432
-
433
- <div class="nt-ai-proposal-card__body">
434
- <div class="nt-ai-proposal-card__summary">
435
- <h3 class="nt-ai-proposal-card__summary-title">Summary</h3>
436
- <p class="nt-ai-proposal-card__summary-text">
437
- Create a 90-minute deep work session tomorrow morning.
438
- </p>
439
- </div>
440
- </div>
441
-
442
- <footer class="nt-ai-proposal-card__footer">
443
- <span class="nt-ai-proposal-card__footer-text">
444
- Review before applying.
445
- </span>
446
-
447
- <div class="nt-ai-proposal-card__actions">
448
- <button class="nt-button nt-button--secondary">Reject</button>
449
- <button class="nt-button nt-button--primary">Apply</button>
450
- </div>
451
- </footer>
452
- </section>
453
- ```
454
-
455
- ## Calendar month grid
456
-
457
- ```html
458
- <section class="nt-calendar-month-grid">
459
- <header class="nt-calendar-month-grid__header">
460
- <div class="nt-calendar-month-grid__header-main">
461
- <span class="nt-calendar-month-grid__eyebrow">Calendar</span>
462
- <h2 class="nt-calendar-month-grid__title">June 2026</h2>
463
- </div>
464
-
465
- <div class="nt-calendar-month-grid__actions">
466
- <button class="nt-button nt-button--secondary">Today</button>
467
- <button class="nt-button nt-button--primary">New event</button>
468
- </div>
469
- </header>
470
-
471
- <div class="nt-calendar-month-grid__body">
472
- <div class="nt-calendar-month-grid__weekdays">
473
- <div class="nt-calendar-month-grid__weekday">Mon</div>
474
- <div class="nt-calendar-month-grid__weekday">Tue</div>
475
- <div class="nt-calendar-month-grid__weekday">Wed</div>
476
- <div class="nt-calendar-month-grid__weekday">Thu</div>
477
- <div class="nt-calendar-month-grid__weekday">Fri</div>
478
- <div class="nt-calendar-month-grid__weekday">Sat</div>
479
- <div class="nt-calendar-month-grid__weekday">Sun</div>
480
- </div>
481
-
482
- <div class="nt-calendar-month-grid__days">
483
- <button class="nt-calendar-month-grid__day nt-calendar-month-grid__day--interactive">
484
- <span class="nt-calendar-month-grid__day-header">
485
- <span class="nt-calendar-month-grid__day-number">1</span>
486
- </span>
487
-
488
- <span class="nt-calendar-month-grid__events">
489
- <span class="nt-calendar-month-grid__event nt-calendar-month-grid__event--busy">
490
- <span class="nt-calendar-month-grid__event-dot"></span>
491
- <span class="nt-calendar-month-grid__event-title">Team sync</span>
492
- </span>
493
- </span>
494
- </button>
495
- </div>
496
- </div>
497
- </section>
498
- ```
499
-
500
- ## Billing document
501
-
502
- ```html
503
- <section class="nt-billing-document">
504
- <header class="nt-billing-document__header">
505
- <div class="nt-billing-document__header-main">
506
- <span class="nt-billing-document__eyebrow">Invoice</span>
507
- <h2 class="nt-billing-document__title">INV-1001</h2>
508
- <p class="nt-billing-document__description">Issued to Sydfix customer.</p>
509
- </div>
510
-
511
- <span class="nt-billing-status nt-billing-status--paid">
512
- <span class="nt-billing-status__dot"></span>
513
- Paid
514
- </span>
515
- </header>
516
-
517
- <div class="nt-billing-document__body">
518
- <div class="nt-billing-amount-list">
519
- <div class="nt-billing-amount-row">
520
- <span class="nt-billing-amount-row__label">Subtotal</span>
521
- <span class="nt-billing-amount-row__value">1,000 SEK</span>
522
- </div>
523
-
524
- <div class="nt-billing-amount-row nt-billing-amount-row--total">
525
- <span class="nt-billing-amount-row__label">Total</span>
526
- <span class="nt-billing-amount-row__value">1,250 SEK</span>
527
- </div>
528
- </div>
529
- </div>
530
- </section>
531
- ```
532
-
533
- ## TypeScript helpers
534
-
535
- ```ts
536
- import {
537
- ntCreateCalendarGrid,
538
- ntCreateDataGrid,
539
- ntCreateDialog,
540
- ntCreateDrawer,
541
- ntCreateDropdown,
542
- ntCreateMenu,
543
- ntCreateTabs,
544
- } from '@neetechs/ui/behaviors';
545
- ```
546
-
547
- ## Accessibility
548
-
549
- The package targets WCAG 2.2 AA as an engineering baseline, not a certification. Native HTML remains required: CSS classes do not add roles, names, labels, or keyboard behavior. Shared helpers cover tabs, menus, modal focus management, data-grid navigation, calendar-grid navigation, form relationships, and announcements.
550
-
551
- See [docs/accessibility.md](./docs/accessibility.md) for component contracts and manual checks. Repository verification includes:
552
-
553
- ```bash
554
- npm run check:a11y
555
- npm run test:browser
556
- ```
557
-
558
- Dropdown example:
559
-
560
- ```ts
561
- import { ntCreateDropdown } from '@neetechs/ui/behaviors';
562
-
563
- const trigger = document.querySelector<HTMLElement>('#profile-trigger');
564
- const content = document.querySelector<HTMLElement>('#profile-menu');
565
-
566
- if (trigger && content) {
567
- ntCreateDropdown({
568
- trigger,
569
- content,
570
- });
571
- }
572
- ```
573
-
574
- Dialog example:
575
-
576
- ```ts
577
- import { ntCreateDialog } from '@neetechs/ui/behaviors';
578
-
579
- const trigger = document.querySelector<HTMLElement>('#open-dialog');
580
- const dialog = document.querySelector<HTMLElement>('#dialog');
581
- const backdrop = document.querySelector<HTMLElement>('#dialog-backdrop');
582
- const title = document.querySelector<HTMLElement>('#dialog-title');
583
-
584
- if (dialog) {
585
- ntCreateDialog({
586
- trigger,
587
- dialog,
588
- backdrop,
589
- title,
590
- });
591
- }
592
- ```
593
-
594
- Drawer example:
595
-
596
- ```ts
597
- import { ntCreateDrawer } from '@neetechs/ui/behaviors';
598
-
599
- const trigger = document.querySelector<HTMLElement>('#open-drawer');
600
- const drawer = document.querySelector<HTMLElement>('#drawer');
601
- const backdrop = document.querySelector<HTMLElement>('#drawer-backdrop');
602
-
603
- if (drawer) {
604
- ntCreateDrawer({
605
- trigger,
606
- drawer,
607
- backdrop,
608
- placement: 'inline-end',
609
- });
610
- }
611
- ```
612
-
613
- ## Canonical components and compatibility
614
-
615
- Modal is a mode of the canonical dialog controller. `ntCreateModal`, `.nt-modal*`, and `@neetechs/ui/components/modal.css` remain deprecated compatibility contracts; new code uses `ntCreateDialog({ modal: true })` and dialog classes. Drawers use logical `placement`; the old right-drawer CSS path/classes remain mapped to the canonical drawer source. Company and workspace switchers retain distinct product class names while sharing one visual/menu foundation.
616
-
617
- Native read-only tables use `@neetechs/ui/components/table.css`. Use data grid only for genuinely interactive two-dimensional data. See [docs/component-architecture.md](./docs/component-architecture.md) for the complete decision and deprecation matrix.
618
-
619
- Architecture verification:
620
-
621
- ```bash
622
- npm run check:architecture
623
- ```
624
-
625
- ## Package exports
626
-
627
- Main TypeScript export:
628
-
629
- ```ts
630
- import { NEETECHS_UI_PACKAGE, NEETECHS_UI_VERSION } from '@neetechs/ui';
631
- ```
632
-
633
- Behavior helpers:
634
-
635
- ```ts
636
- import { ntCreateDropdown } from '@neetechs/ui/behaviors';
637
- ```
638
-
639
- CSS exports:
640
-
641
- ```txt
642
- @neetechs/ui/styles.css
643
- @neetechs/ui/base.css
644
- @neetechs/ui/tokens.css
645
- @neetechs/ui/reset.css
646
- @neetechs/ui/shell.css
647
- @neetechs/ui/components.css
648
- @neetechs/ui/patterns.css
649
- @neetechs/ui/ai.css
650
- @neetechs/ui/domain.css
651
- @neetechs/ui/domain/calendar.css
652
- @neetechs/ui/domain/billing.css
653
- @neetechs/ui/domain/companies.css
654
- ```
655
-
656
- ## Framework usage
657
-
658
- ### Angular
659
-
660
- In `styles.scss`:
661
-
662
- ```scss
663
- @import '@neetechs/ui/styles.css';
664
- ```
665
-
666
- Or in `angular.json` styles:
667
-
668
- ```json
669
- [
670
- "node_modules/@neetechs/ui/src/index.css",
671
- "src/styles.scss"
672
- ]
673
- ```
674
-
675
- ### React / Next.js
676
-
677
- In your root layout or app entry:
678
-
679
- ```ts
680
- import '@neetechs/ui/styles.css';
681
- ```
682
-
683
- ### Plain HTML
684
-
685
- ```html
686
- <link rel="stylesheet" href="/node_modules/@neetechs/ui/src/index.css" />
687
- ```
688
-
689
- For production, serve the built CSS from your bundler output instead of directly referencing `node_modules`.
690
-
691
- ## Current package structure
692
-
693
- ```txt
694
- packages/ui
695
- src
696
- styles
697
- tokens
698
- themes
699
- utilities
700
- animations
701
- shell
702
- components
703
- patterns
704
- ai
705
- domain
706
- calendar
707
- billing
708
- companies
709
- behaviors
710
- types
711
- docs
712
- ```
713
-
714
- ## What belongs here
715
-
716
- Good:
717
-
718
- ```txt
719
- CSS tokens
720
- themes
721
- base/reset styles
722
- utility CSS
723
- component CSS classes
724
- shell CSS
725
- AI UI CSS
726
- domain UI CSS
727
- pure TypeScript DOM helpers
728
- ```
729
-
730
- Bad:
731
-
732
- ```txt
733
- Angular components
734
- React components
735
- business API calls
736
- Tailwind config
737
- Bootstrap overrides
738
- Angular Material wrappers
739
- app-specific routing
740
- backend logic
741
- ```
742
-
743
- ## Wrapper packages later
744
-
745
- These should be separate packages:
746
-
747
- ```txt
748
- @neetechs/ui-angular
749
- @neetechs/ui-react
750
- ```
751
-
752
- Do not put wrappers inside `@neetechs/ui`.
1
+ # @neetechs/ui
2
+
3
+ Official framework-agnostic Neetechs UI design system.
4
+
5
+ ## Responsive and adaptive behavior
6
+
7
+ Reusable components respond to their *container*, not the viewport: the shell content area, dialog and drawer bodies, tables, data grids, and forms are query containers, and `.nt-region` makes any dashboard column or split pane one. Viewport media queries are reserved for shell-level layout and use a documented rem scale (30/40/48/64/80rem — mirrored by `NT_VIEWPORTS` in `@neetechs/ui/behaviors`). Mobile contracts include the `.nt-mobile-nav` drawer shell mode, table priority columns and row details, data-grid constrained/record modes, the `.nt-calendar-agenda` phone calendar, dvh-safe full-height utilities (`.nt-fill-viewport`), safe-area padding, and coarse-pointer touch targets. See [docs/responsive-and-adaptive-design.md](./docs/responsive-and-adaptive-design.md).
8
+
9
+ ```bash
10
+ npm run check:responsive
11
+ ```
12
+
13
+ ## Page patterns and content standards
14
+
15
+ Shared page anatomy (`.nt-page-header`, `.nt-page-toolbar`, `.nt-page-section`, `.nt-page-footer-actions`), responsive forms (`.nt-form`), settings layouts, master-detail, and multi-step workflow patterns are documented in [docs/page-patterns-and-workflows.md](./docs/page-patterns-and-workflows.md). Terminology, action-label, validation, empty-state, confirmation, and AI-copy rules live in [docs/content-and-terminology.md](./docs/content-and-terminology.md) and are enforced for repository-owned fixtures by:
16
+
17
+ ```bash
18
+ npm run check:content
19
+ ```
20
+
21
+ ## Localization and RTL
22
+
23
+ Use native document metadata; components inherit nested direction changes:
24
+
25
+ ```html
26
+ <html lang="ar" dir="rtl">
27
+ <code dir="ltr" class="nt-technical-value">POST /api/v1/invoices</code>
28
+ </html>
29
+ ```
30
+
31
+ Use `.nt-icon--directional` only for arrows whose inline meaning should mirror. Explicit-locale number/date helpers are exported from `@neetechs/ui/localization`. Applications provide translations, locale/time-zone selection, and approved font loading. See [the RTL and localization contract](./docs/localization-and-rtl.md).
32
+
33
+ `@neetechs/ui` is pure CSS + pure TypeScript helpers. It does not depend on Angular, React, Next.js, Bootstrap, Tailwind, or Angular Material.
34
+
35
+ Use it in:
36
+
37
+ - Angular
38
+ - React
39
+ - Next.js
40
+ - plain JavaScript
41
+ - plain HTML
42
+ - future Neetechs apps
43
+
44
+ ## Core rules
45
+
46
+ - Use `nt-` class prefix.
47
+ - Use `--nt-` token prefix.
48
+ - Do not hardcode component colors.
49
+ - Components must consume design tokens.
50
+ - Keep this base package framework-agnostic.
51
+ - Build Angular or React wrappers later, outside this package.
52
+
53
+ ## Install
54
+
55
+ ```bash
56
+ npm install @neetechs/ui
57
+ ```
58
+
59
+ ## Import all styles
60
+
61
+ In TypeScript or JavaScript:
62
+
63
+ ```ts
64
+ import '@neetechs/ui/styles.css';
65
+ ```
66
+
67
+ In CSS:
68
+
69
+ ```css
70
+ @import '@neetechs/ui/styles.css';
71
+ ```
72
+
73
+ This imports:
74
+
75
+ ```txt
76
+ styles
77
+ shell
78
+ components
79
+ patterns
80
+ ai
81
+ domain
82
+ ```
83
+
84
+ ## Import only what you need
85
+
86
+ ```css
87
+ @import '@neetechs/ui/base.css';
88
+ @import '@neetechs/ui/shell.css';
89
+ @import '@neetechs/ui/components.css';
90
+ @import '@neetechs/ui/patterns.css';
91
+ @import '@neetechs/ui/ai.css';
92
+ @import '@neetechs/ui/domain.css';
93
+ ```
94
+
95
+ Specific CSS entry points:
96
+
97
+ ```css
98
+ @import '@neetechs/ui/components/button.css';
99
+ @import '@neetechs/ui/components/input.css';
100
+ @import '@neetechs/ui/components/card.css';
101
+ @import '@neetechs/ui/components/dropdown.css';
102
+ @import '@neetechs/ui/patterns/company-switcher.css';
103
+ @import '@neetechs/ui/patterns/profile-menu.css';
104
+ @import '@neetechs/ui/ai/ai-prompt-input.css';
105
+ @import '@neetechs/ui/domain/calendar.css';
106
+ @import '@neetechs/ui/domain/billing.css';
107
+ @import '@neetechs/ui/domain/companies.css';
108
+ ```
109
+
110
+ ## Default brand colors
111
+
112
+ Neetechs now defaults to a softer navy dark theme with a blue product accent.
113
+ The canonical palette, accessible foreground rules, and rollout notes are in
114
+ [docs/brand-palette.md](./docs/brand-palette.md). Existing saved accent preferences
115
+ continue to work (including orange); applications must resolve appearance from
116
+ the backend rather than overriding user choices.
117
+
118
+ ## Theme setup
119
+
120
+ For the shared SSR-safe appearance system, use `@neetechs/ui/appearance` and
121
+ see [docs/appearance-and-theming.md](./docs/appearance-and-theming.md).
122
+
123
+ ```ts
124
+ import { bootstrapNeetechsAppearance, createAppearanceController } from '@neetechs/ui/appearance';
125
+
126
+ bootstrapNeetechsAppearance(); // before framework rendering
127
+ const appearance = createAppearanceController();
128
+ appearance.initialize();
129
+ ```
130
+
131
+ To avoid a theme flash on client-rendered pages, emit the pre-paint bootstrap
132
+ as an inline script in `<head>` (server/build time). It reads the same cookie
133
+ and cache as the controller and only sets root attributes:
134
+
135
+ ```ts
136
+ import { ntAppearanceBootstrapScript } from '@neetechs/ui/appearance';
137
+
138
+ const headScript = `<script>${ntAppearanceBootstrapScript()}</script>`;
139
+ ```
140
+
141
+ Switch one dimension without resetting the others (saved accent and density
142
+ are kept):
143
+
144
+ ```ts
145
+ appearance.updatePreference({ theme: 'light' });
146
+ ```
147
+
148
+ The controller applies the public contract to the root `html` element.
149
+
150
+ ```html
151
+ <html data-nt-theme="dark" data-nt-theme-preference="system"
152
+ data-nt-accent="blue" data-nt-density="comfortable"
153
+ data-nt-contrast="normal" data-nt-motion="full">
154
+ ...
155
+ </html>
156
+ ```
157
+
158
+ Supported preferences are `system`, `light`, and `dark`; resolved themes are:
159
+
160
+ ```txt
161
+ dark
162
+ light
163
+ ```
164
+
165
+ Supported accents:
166
+
167
+ ```txt
168
+ orange
169
+ blue
170
+ green
171
+ purple
172
+ neutral
173
+ ```
174
+
175
+ Supported density:
176
+
177
+ ```txt
178
+ compact
179
+ comfortable
180
+ spacious
181
+ ```
182
+
183
+ ## Recommended app setup
184
+
185
+ For a full Neetechs app, import the full stylesheet once at the app root:
186
+
187
+ ```ts
188
+ import '@neetechs/ui/styles.css';
189
+ ```
190
+
191
+ Then initialize appearance before rendering. Do not create a competing body-level theme:
192
+
193
+ ```html
194
+ <body>
195
+ <div class="nt-app-shell">
196
+ ...
197
+ </div>
198
+ </body>
199
+ ```
200
+
201
+ Do not import random component CSS files all over the app unless you are intentionally optimizing bundle size. For most Neetechs apps, one root import is cleaner.
202
+
203
+ ## Basic button
204
+
205
+ ```html
206
+ <button class="nt-button nt-button--primary">
207
+ Save changes
208
+ </button>
209
+
210
+ <button class="nt-button nt-button--secondary">
211
+ Cancel
212
+ </button>
213
+
214
+ <button class="nt-button nt-button--ghost">
215
+ More
216
+ </button>
217
+ ```
218
+
219
+ Async actions keep their visible name, expose busy state, and prevent accidental duplicate activation without treating pending as native disabled:
220
+
221
+ ```ts
222
+ import { ntCreateAsyncAction } from '@neetechs/ui';
223
+
224
+ const save = ntCreateAsyncAction({
225
+ control: document.querySelector<HTMLButtonElement>('#save')!,
226
+ async run(_event, signal) {
227
+ await saveChanges({ signal });
228
+ },
229
+ });
230
+ ```
231
+
232
+ ```html
233
+ <button id="save" class="nt-button nt-button--primary">
234
+ Save changes
235
+ </button>
236
+ ```
237
+
238
+ ## Button group
239
+
240
+ ```html
241
+ <div class="nt-button-group nt-button-group--attached" role="group" aria-label="Text alignment">
242
+ <button class="nt-button nt-button--secondary" type="button" aria-pressed="true">Start</button>
243
+ <button class="nt-button nt-button--secondary" type="button" aria-pressed="false">Center</button>
244
+ </div>
245
+ ```
246
+
247
+ Spaced by default; `--attached` joins buttons, `--vertical` stacks them, `--full`
248
+ stretches them. Pressed state uses `aria-pressed` (color plus an inset ring).
249
+
250
+ ## Popover
251
+
252
+ Non-modal panel for rich content such as filters or quick settings:
253
+
254
+ ```html
255
+ <div class="nt-popover">
256
+ <button class="nt-button nt-button--secondary" type="button" id="filters-trigger">Filters</button>
257
+ <div class="nt-popover__content" id="filters" aria-labelledby="filters-title" hidden>
258
+ <div class="nt-popover__header"><h3 class="nt-popover__title" id="filters-title">Filter invoices</h3></div>
259
+ <div class="nt-popover__body">...</div>
260
+ </div>
261
+ </div>
262
+ ```
263
+
264
+ ```ts
265
+ import { ntCreatePopover } from '@neetechs/ui/behaviors';
266
+
267
+ ntCreatePopover({
268
+ trigger: document.querySelector<HTMLElement>('#filters-trigger')!,
269
+ content: document.querySelector<HTMLElement>('#filters')!,
270
+ });
271
+ ```
272
+
273
+ Full catalog of components and behaviors: [docs/components.md](./docs/components.md).
274
+
275
+ ## Basic input
276
+
277
+ ```html
278
+ <label class="nt-field">
279
+ <span class="nt-field__label">Company name</span>
280
+ <input class="nt-input" placeholder="Neetechs" />
281
+ <span class="nt-field__help">Used across your workspace.</span>
282
+ </label>
283
+ ```
284
+
285
+ Invalid input:
286
+
287
+ ```html
288
+ <label class="nt-field">
289
+ <span class="nt-field__label" id="email-label">Email</span>
290
+ <input id="email" class="nt-input" aria-labelledby="email-label"
291
+ aria-describedby="email-error" aria-invalid="true" />
292
+ <span id="email-error" class="nt-field__error">Enter a valid email.</span>
293
+ </label>
294
+ ```
295
+
296
+ For full form submission state, use `ntConnectField`, `ntFocusErrorSummary`, and `ntCreateFormController` from `@neetechs/ui`.
297
+
298
+ ## Feedback and recovery
299
+
300
+ New content-state work uses the shared pattern:
301
+
302
+ ```html
303
+ <section class="nt-content-state nt-content-state--section"
304
+ data-nt-content-state="offline"
305
+ aria-labelledby="offline-title">
306
+ <h2 id="offline-title" class="nt-content-state__title">Connection lost</h2>
307
+ <p class="nt-content-state__description">
308
+ Cached records are still visible. Retry when the connection returns.
309
+ </p>
310
+ <div class="nt-content-state__actions">
311
+ <button class="nt-button nt-button--secondary">Retry</button>
312
+ </div>
313
+ </section>
314
+ ```
315
+
316
+ `ntCreateToastController` manages toast semantics, dedupe, stack limits, pause-on-hover/focus, and cleanup. Use toasts for brief noncritical feedback, not field validation, permission-denied pages, or irreversible-action confirmation.
317
+
318
+ See [docs/states-feedback-and-recovery.md](./docs/states-feedback-and-recovery.md) for the canonical state vocabulary, forms, loading, empty/error/offline patterns, confirmations, unsaved changes, AI write-action approval, and recovery rules.
319
+
320
+ ## Card
321
+
322
+ ```html
323
+ <section class="nt-card">
324
+ <header class="nt-card__header">
325
+ <div class="nt-card__header-main">
326
+ <p class="nt-card__eyebrow">Workspace</p>
327
+ <h2 class="nt-card__title">Company Center</h2>
328
+ <p class="nt-card__subtitle">
329
+ Manage companies, branding, team, and billing.
330
+ </p>
331
+ </div>
332
+
333
+ <div class="nt-card__actions">
334
+ <button class="nt-button nt-button--secondary">Settings</button>
335
+ </div>
336
+ </header>
337
+
338
+ <div class="nt-card__body">
339
+ <p>Put your content here.</p>
340
+ </div>
341
+
342
+ <footer class="nt-card__footer">
343
+ <span class="nt-card__meta">Updated today</span>
344
+ <button class="nt-button nt-button--primary">Open</button>
345
+ </footer>
346
+ </section>
347
+ ```
348
+
349
+ ## App shell
350
+
351
+ ```html
352
+ <div class="nt-app-shell">
353
+ <aside class="nt-app-shell__sidebar nt-sidebar">
354
+ ...
355
+ </aside>
356
+
357
+ <div class="nt-app-shell__main">
358
+ <header class="nt-app-shell__header nt-header">
359
+ ...
360
+ </header>
361
+
362
+ <main class="nt-app-shell__content nt-content-frame">
363
+ ...
364
+ </main>
365
+ </div>
366
+ </div>
367
+ ```
368
+
369
+ ## Site chrome: header, navbar, account, mobile nav, footer
370
+
371
+ Reusable website chrome with configurable logo, navigation, account actions,
372
+ footer columns, and social links. Routing, auth, and URLs stay in the app.
373
+
374
+ ```ts
375
+ import { ntCreateAccountMenu, ntCreateMobileNav, ntCreateNavbar } from '@neetechs/ui/behaviors';
376
+ ```
377
+
378
+ ```html
379
+ <header class="nt-header nt-header--sticky">
380
+ <div class="nt-header__left">
381
+ <a class="nt-header__brand" href="/"><span class="nt-header__brand-name">Neetechs</span></a>
382
+ </div>
383
+ <div class="nt-header__nav"><nav class="nt-navbar" aria-label="Primary">...</nav></div>
384
+ <div class="nt-header__right">...</div>
385
+ </header>
386
+ <footer class="nt-footer">...</footer>
387
+ ```
388
+
389
+ Full markup, keyboard contract, and examples: [docs/site-chrome.md](./docs/site-chrome.md).
390
+ Stacking rules: [docs/layering.md](./docs/layering.md).
391
+
392
+ ## Company switcher
393
+
394
+ ```html
395
+ <div class="nt-company-switcher">
396
+ <header class="nt-company-switcher__header">
397
+ <div class="nt-company-switcher__header-main">
398
+ <span class="nt-company-switcher__eyebrow">Active company</span>
399
+ <h2 class="nt-company-switcher__title">Switch company</h2>
400
+ <p class="nt-company-switcher__description">
401
+ Choose the company you want to manage.
402
+ </p>
403
+ </div>
404
+ </header>
405
+
406
+ <div class="nt-company-switcher__body">
407
+ <button class="nt-company-switcher__item nt-company-switcher__item--active">
408
+ <span class="nt-company-switcher__logo">SD</span>
409
+
410
+ <span class="nt-company-switcher__item-main">
411
+ <span class="nt-company-switcher__name">Sydfix</span>
412
+ <span class="nt-company-switcher__meta">
413
+ <span class="nt-company-switcher__country">SE</span>
414
+ <span class="nt-company-switcher__role">owner</span>
415
+ <span class="nt-company-switcher__currency">SEK</span>
416
+ </span>
417
+ </span>
418
+
419
+ <span class="nt-company-switcher__check">✓</span>
420
+ </button>
421
+ </div>
422
+
423
+ <footer class="nt-company-switcher__footer">
424
+ <a class="nt-company-switcher__footer-action" href="/companies/create">
425
+ Create company
426
+ </a>
427
+ </footer>
428
+ </div>
429
+ ```
430
+
431
+ ## Profile menu
432
+
433
+ ```html
434
+ <div class="nt-profile-menu">
435
+ <header class="nt-profile-menu__header">
436
+ <span class="nt-avatar">SJ</span>
437
+
438
+ <div class="nt-profile-menu__identity">
439
+ <span class="nt-profile-menu__name">Sayed Jihad ElSayed</span>
440
+ <span class="nt-profile-menu__email">jelsayed@uab.edu</span>
441
+ </div>
442
+ </header>
443
+
444
+ <div class="nt-profile-menu__body">
445
+ <a class="nt-profile-menu__item" href="/profile">
446
+ <span class="nt-profile-menu__item-icon">👤</span>
447
+ <span class="nt-profile-menu__item-main">
448
+ <span class="nt-profile-menu__item-title">Profile</span>
449
+ </span>
450
+ </a>
451
+
452
+ <a class="nt-profile-menu__item" href="/settings">
453
+ <span class="nt-profile-menu__item-icon">⚙</span>
454
+ <span class="nt-profile-menu__item-main">
455
+ <span class="nt-profile-menu__item-title">Settings</span>
456
+ </span>
457
+ </a>
458
+ </div>
459
+ </div>
460
+ ```
461
+
462
+ ## AI prompt input
463
+
464
+ ```html
465
+ <form class="nt-ai-prompt-input">
466
+ <div class="nt-ai-prompt-input__header">
467
+ <div class="nt-ai-prompt-input__title" id="ai-prompt-label">
468
+ <span class="nt-ai-prompt-input__title-icon">✦</span>
469
+ Ask AI
470
+ </div>
471
+
472
+ <div class="nt-ai-prompt-input__meta">GPT</div>
473
+ </div>
474
+
475
+ <div class="nt-ai-prompt-input__body">
476
+ <textarea
477
+ class="nt-ai-prompt-input__textarea"
478
+ aria-labelledby="ai-prompt-label"
479
+ placeholder="Ask AI to plan your day..."
480
+ ></textarea>
481
+ </div>
482
+
483
+ <footer class="nt-ai-prompt-input__footer">
484
+ <div class="nt-ai-prompt-input__tools">
485
+ <button class="nt-ai-prompt-input__tool" type="button">Calendar</button>
486
+ <button class="nt-ai-prompt-input__tool" type="button">Company</button>
487
+ </div>
488
+
489
+ <div class="nt-ai-prompt-input__actions">
490
+ <button class="nt-ai-prompt-input__submit" type="submit">
491
+ Generate
492
+ </button>
493
+ </div>
494
+ </footer>
495
+ </form>
496
+ ```
497
+
498
+ ## AI proposal card
499
+
500
+ ```html
501
+ <section class="nt-ai-proposal-card">
502
+ <header class="nt-ai-proposal-card__header">
503
+ <span class="nt-ai-proposal-card__icon">✦</span>
504
+
505
+ <div class="nt-ai-proposal-card__header-main">
506
+ <span class="nt-ai-proposal-card__eyebrow">AI proposal</span>
507
+ <h2 class="nt-ai-proposal-card__title">Schedule focus block</h2>
508
+ <p class="nt-ai-proposal-card__description">
509
+ AI found a free slot based on your calendar.
510
+ </p>
511
+ </div>
512
+
513
+ <span class="nt-ai-proposal-card__confidence nt-ai-proposal-card__confidence--high">
514
+ High confidence
515
+ </span>
516
+ </header>
517
+
518
+ <div class="nt-ai-proposal-card__body">
519
+ <div class="nt-ai-proposal-card__summary">
520
+ <h3 class="nt-ai-proposal-card__summary-title">Summary</h3>
521
+ <p class="nt-ai-proposal-card__summary-text">
522
+ Create a 90-minute deep work session tomorrow morning.
523
+ </p>
524
+ </div>
525
+ </div>
526
+
527
+ <footer class="nt-ai-proposal-card__footer">
528
+ <span class="nt-ai-proposal-card__footer-text">
529
+ Review before applying.
530
+ </span>
531
+
532
+ <div class="nt-ai-proposal-card__actions">
533
+ <button class="nt-button nt-button--secondary">Reject</button>
534
+ <button class="nt-button nt-button--primary">Apply</button>
535
+ </div>
536
+ </footer>
537
+ </section>
538
+ ```
539
+
540
+ ## Calendar month grid
541
+
542
+ ```html
543
+ <section class="nt-calendar-month-grid">
544
+ <header class="nt-calendar-month-grid__header">
545
+ <div class="nt-calendar-month-grid__header-main">
546
+ <span class="nt-calendar-month-grid__eyebrow">Calendar</span>
547
+ <h2 class="nt-calendar-month-grid__title">June 2026</h2>
548
+ </div>
549
+
550
+ <div class="nt-calendar-month-grid__actions">
551
+ <button class="nt-button nt-button--secondary">Today</button>
552
+ <button class="nt-button nt-button--primary">New event</button>
553
+ </div>
554
+ </header>
555
+
556
+ <div class="nt-calendar-month-grid__body">
557
+ <div class="nt-calendar-month-grid__weekdays">
558
+ <div class="nt-calendar-month-grid__weekday">Mon</div>
559
+ <div class="nt-calendar-month-grid__weekday">Tue</div>
560
+ <div class="nt-calendar-month-grid__weekday">Wed</div>
561
+ <div class="nt-calendar-month-grid__weekday">Thu</div>
562
+ <div class="nt-calendar-month-grid__weekday">Fri</div>
563
+ <div class="nt-calendar-month-grid__weekday">Sat</div>
564
+ <div class="nt-calendar-month-grid__weekday">Sun</div>
565
+ </div>
566
+
567
+ <div class="nt-calendar-month-grid__days">
568
+ <button class="nt-calendar-month-grid__day nt-calendar-month-grid__day--interactive">
569
+ <span class="nt-calendar-month-grid__day-header">
570
+ <span class="nt-calendar-month-grid__day-number">1</span>
571
+ </span>
572
+
573
+ <span class="nt-calendar-month-grid__events">
574
+ <span class="nt-calendar-month-grid__event nt-calendar-month-grid__event--busy">
575
+ <span class="nt-calendar-month-grid__event-dot"></span>
576
+ <span class="nt-calendar-month-grid__event-title">Team sync</span>
577
+ </span>
578
+ </span>
579
+ </button>
580
+ </div>
581
+ </div>
582
+ </section>
583
+ ```
584
+
585
+ ## Billing document
586
+
587
+ ```html
588
+ <section class="nt-billing-document">
589
+ <header class="nt-billing-document__header">
590
+ <div class="nt-billing-document__header-main">
591
+ <span class="nt-billing-document__eyebrow">Invoice</span>
592
+ <h2 class="nt-billing-document__title">INV-1001</h2>
593
+ <p class="nt-billing-document__description">Issued to Sydfix customer.</p>
594
+ </div>
595
+
596
+ <span class="nt-billing-status nt-billing-status--paid">
597
+ <span class="nt-billing-status__dot"></span>
598
+ Paid
599
+ </span>
600
+ </header>
601
+
602
+ <div class="nt-billing-document__body">
603
+ <div class="nt-billing-amount-list">
604
+ <div class="nt-billing-amount-row">
605
+ <span class="nt-billing-amount-row__label">Subtotal</span>
606
+ <span class="nt-billing-amount-row__value">1,000 SEK</span>
607
+ </div>
608
+
609
+ <div class="nt-billing-amount-row nt-billing-amount-row--total">
610
+ <span class="nt-billing-amount-row__label">Total</span>
611
+ <span class="nt-billing-amount-row__value">1,250 SEK</span>
612
+ </div>
613
+ </div>
614
+ </div>
615
+ </section>
616
+ ```
617
+
618
+ Totals cards separate every row with `.nt-billing-amount-list--divided` and
619
+ box the amount due with `.nt-billing-amount-row--grand`. Headers can keep the
620
+ status inline with the reference via `.nt-billing-document__title-row` and
621
+ `.nt-billing-document__status`. Workflow states outside the named set use the
622
+ generic tones `.nt-billing-status--neutral`, `--info`, `--success`,
623
+ `--warning`, `--danger` (the text always names the state). Dashboard metrics
624
+ can show a tone bar (`.nt-billing-metric__accent`), an info tone
625
+ (`.nt-billing-metric--info`), and a headline size
626
+ (`.nt-billing-metric--prominent`); new dashboards should prefer the
627
+ domain-neutral `.nt-stat` card.
628
+
629
+ ```html
630
+ <div class="nt-billing-amount-list nt-billing-amount-list--divided">
631
+ <div class="nt-billing-amount-row">
632
+ <span class="nt-billing-amount-row__label">VAT 25%</span>
633
+ <span class="nt-billing-amount-row__value">250 SEK</span>
634
+ </div>
635
+ <div class="nt-billing-amount-row nt-billing-amount-row--grand">
636
+ <span class="nt-billing-amount-row__label">Amount due</span>
637
+ <span class="nt-billing-amount-row__value">1,250 SEK</span>
638
+ </div>
639
+ </div>
640
+ ```
641
+
642
+ ## TypeScript helpers
643
+
644
+ ```ts
645
+ import {
646
+ ntCreateCalendarGrid,
647
+ ntCreateDataGrid,
648
+ ntCreateDialog,
649
+ ntCreateDrawer,
650
+ ntCreateDropdown,
651
+ ntCreateMenu,
652
+ ntCreateTabs,
653
+ } from '@neetechs/ui/behaviors';
654
+ ```
655
+
656
+ ## Accessibility
657
+
658
+ The package targets WCAG 2.2 AA as an engineering baseline, not a certification. Native HTML remains required: CSS classes do not add roles, names, labels, or keyboard behavior. Shared helpers cover tabs, menus, modal focus management, data-grid navigation, calendar-grid navigation, form relationships, and announcements.
659
+
660
+ See [docs/accessibility.md](./docs/accessibility.md) for component contracts and manual checks. Repository verification includes:
661
+
662
+ ```bash
663
+ npm run check:a11y
664
+ npm run test:browser
665
+ ```
666
+
667
+ Dropdown example:
668
+
669
+ ```ts
670
+ import { ntCreateDropdown } from '@neetechs/ui/behaviors';
671
+
672
+ const trigger = document.querySelector<HTMLElement>('#profile-trigger');
673
+ const content = document.querySelector<HTMLElement>('#profile-menu');
674
+
675
+ if (trigger && content) {
676
+ ntCreateDropdown({
677
+ trigger,
678
+ content,
679
+ });
680
+ }
681
+ ```
682
+
683
+ Dialog example:
684
+
685
+ ```ts
686
+ import { ntCreateDialog } from '@neetechs/ui/behaviors';
687
+
688
+ const trigger = document.querySelector<HTMLElement>('#open-dialog');
689
+ const dialog = document.querySelector<HTMLElement>('#dialog');
690
+ const backdrop = document.querySelector<HTMLElement>('#dialog-backdrop');
691
+ const title = document.querySelector<HTMLElement>('#dialog-title');
692
+
693
+ if (dialog) {
694
+ ntCreateDialog({
695
+ trigger,
696
+ dialog,
697
+ backdrop,
698
+ title,
699
+ });
700
+ }
701
+ ```
702
+
703
+ Drawer example:
704
+
705
+ ```ts
706
+ import { ntCreateDrawer } from '@neetechs/ui/behaviors';
707
+
708
+ const trigger = document.querySelector<HTMLElement>('#open-drawer');
709
+ const drawer = document.querySelector<HTMLElement>('#drawer');
710
+ const backdrop = document.querySelector<HTMLElement>('#drawer-backdrop');
711
+
712
+ if (drawer) {
713
+ ntCreateDrawer({
714
+ trigger,
715
+ drawer,
716
+ backdrop,
717
+ placement: 'inline-end',
718
+ });
719
+ }
720
+ ```
721
+
722
+ ## Canonical components and compatibility
723
+
724
+ Modal is a mode of the canonical dialog controller. `ntCreateModal`, `.nt-modal*`, and `@neetechs/ui/components/modal.css` remain deprecated compatibility contracts; new code uses `ntCreateDialog({ modal: true })` and dialog classes. Drawers use logical `placement`; the old right-drawer CSS path/classes remain mapped to the canonical drawer source. Company and workspace switchers retain distinct product class names while sharing one visual/menu foundation.
725
+
726
+ Native read-only tables use `@neetechs/ui/components/table.css`. Use data grid only for genuinely interactive two-dimensional data. See [docs/component-architecture.md](./docs/component-architecture.md) for the complete decision and deprecation matrix.
727
+
728
+ Architecture verification:
729
+
730
+ ```bash
731
+ npm run check:architecture
732
+ ```
733
+
734
+ ## Package exports
735
+
736
+ Main TypeScript export:
737
+
738
+ ```ts
739
+ import { NEETECHS_UI_PACKAGE, NEETECHS_UI_VERSION } from '@neetechs/ui';
740
+ ```
741
+
742
+ Behavior helpers:
743
+
744
+ ```ts
745
+ import { ntCreateDropdown } from '@neetechs/ui/behaviors';
746
+ ```
747
+
748
+ CSS exports:
749
+
750
+ ```txt
751
+ @neetechs/ui/styles.css
752
+ @neetechs/ui/base.css
753
+ @neetechs/ui/tokens.css
754
+ @neetechs/ui/reset.css
755
+ @neetechs/ui/shell.css
756
+ @neetechs/ui/components.css
757
+ @neetechs/ui/patterns.css
758
+ @neetechs/ui/ai.css
759
+ @neetechs/ui/domain.css
760
+ @neetechs/ui/domain/calendar.css
761
+ @neetechs/ui/domain/billing.css
762
+ @neetechs/ui/domain/companies.css
763
+ ```
764
+
765
+ ## Framework usage
766
+
767
+ ### Angular
768
+
769
+ In `styles.scss`:
770
+
771
+ ```scss
772
+ @import '@neetechs/ui/styles.css';
773
+ ```
774
+
775
+ Or in `angular.json` styles:
776
+
777
+ ```json
778
+ [
779
+ "node_modules/@neetechs/ui/src/index.css",
780
+ "src/styles.scss"
781
+ ]
782
+ ```
783
+
784
+ ### React / Next.js
785
+
786
+ In your root layout or app entry:
787
+
788
+ ```ts
789
+ import '@neetechs/ui/styles.css';
790
+ ```
791
+
792
+ ### Plain HTML
793
+
794
+ ```html
795
+ <link rel="stylesheet" href="/node_modules/@neetechs/ui/src/index.css" />
796
+ ```
797
+
798
+ For production, serve the built CSS from your bundler output instead of directly referencing `node_modules`.
799
+
800
+ ## Current package structure
801
+
802
+ ```txt
803
+ packages/ui
804
+ src
805
+ styles
806
+ tokens
807
+ themes
808
+ utilities
809
+ animations
810
+ shell
811
+ components
812
+ patterns
813
+ ai
814
+ domain
815
+ calendar
816
+ billing
817
+ companies
818
+ behaviors
819
+ types
820
+ docs
821
+ ```
822
+
823
+ ## What belongs here
824
+
825
+ Good:
826
+
827
+ ```txt
828
+ CSS tokens
829
+ themes
830
+ base/reset styles
831
+ utility CSS
832
+ component CSS classes
833
+ shell CSS
834
+ AI UI CSS
835
+ domain UI CSS
836
+ pure TypeScript DOM helpers
837
+ ```
838
+
839
+ Bad:
840
+
841
+ ```txt
842
+ Angular components
843
+ React components
844
+ business API calls
845
+ Tailwind config
846
+ Bootstrap overrides
847
+ Angular Material wrappers
848
+ app-specific routing
849
+ backend logic
850
+ ```
851
+
852
+ ## Wrapper packages later
853
+
854
+ These should be separate packages:
855
+
856
+ ```txt
857
+ @neetechs/ui-angular
858
+ @neetechs/ui-react
859
+ ```
860
+
861
+ Do not put wrappers inside `@neetechs/ui`.