@heigin/ui 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/LICENSE +15 -0
  3. package/README.md +28 -2
  4. package/dist/base.css +44 -0
  5. package/dist/components/crm/activity-timeline.d.ts +23 -0
  6. package/dist/components/crm/activity-timeline.js +41 -0
  7. package/dist/components/crm/approval-card.d.ts +33 -0
  8. package/dist/components/crm/approval-card.js +101 -0
  9. package/dist/components/crm/channel-mark.d.ts +10 -0
  10. package/dist/components/crm/channel-mark.js +57 -0
  11. package/dist/components/crm/conversation-list-item.d.ts +23 -0
  12. package/dist/components/crm/conversation-list-item.js +62 -0
  13. package/dist/components/crm/crm.module.js +161 -0
  14. package/dist/components/crm/deal-stage.d.ts +13 -0
  15. package/dist/components/crm/deal-stage.js +27 -0
  16. package/dist/components/crm/detail-list.d.ts +17 -0
  17. package/dist/components/crm/detail-list.js +35 -0
  18. package/dist/components/crm/filter-chip.d.ts +16 -0
  19. package/dist/components/crm/filter-chip.js +45 -0
  20. package/dist/components/crm/filter-toolbar.d.ts +16 -0
  21. package/dist/components/crm/filter-toolbar.js +42 -0
  22. package/dist/components/crm/metric-card.d.ts +30 -0
  23. package/dist/components/crm/metric-card.js +61 -0
  24. package/dist/components/crm/money-value.d.ts +9 -0
  25. package/dist/components/crm/money-value.js +27 -0
  26. package/dist/components/crm/page-header.d.ts +11 -0
  27. package/dist/components/crm/page-header.js +28 -0
  28. package/dist/components/crm/record-header.d.ts +22 -0
  29. package/dist/components/crm/record-header.js +53 -0
  30. package/dist/components/crm/sidebar-nav.d.ts +33 -0
  31. package/dist/components/crm/sidebar-nav.js +53 -0
  32. package/dist/components/crm/sla-clock.d.ts +11 -0
  33. package/dist/components/crm/sla-clock.js +41 -0
  34. package/dist/components/crm/status-badge.d.ts +94 -0
  35. package/dist/components/crm/status-badge.js +106 -0
  36. package/dist/components/crm/task-row.d.ts +18 -0
  37. package/dist/components/crm/task-row.js +52 -0
  38. package/dist/components/crm/trust-rung-badge.d.ts +14 -0
  39. package/dist/components/crm/trust-rung-badge.js +35 -0
  40. package/dist/components/ui/alert-dialog.d.ts +22 -0
  41. package/dist/components/ui/alert-dialog.js +87 -0
  42. package/dist/components/ui/avatar.d.ts +13 -0
  43. package/dist/components/ui/avatar.js +38 -0
  44. package/dist/components/ui/avatar.module.js +17 -0
  45. package/dist/components/ui/badge.d.ts +12 -0
  46. package/dist/components/ui/badge.js +28 -0
  47. package/dist/components/ui/badge.module.js +25 -0
  48. package/dist/components/ui/button.d.ts +19 -0
  49. package/dist/components/ui/button.js +39 -0
  50. package/dist/components/ui/button.module.js +27 -0
  51. package/dist/components/ui/card.d.ts +19 -0
  52. package/dist/components/ui/card.js +35 -0
  53. package/dist/components/ui/card.module.js +23 -0
  54. package/dist/components/ui/checkbox.d.ts +11 -0
  55. package/dist/components/ui/checkbox.js +47 -0
  56. package/dist/components/ui/choice.module.js +28 -0
  57. package/dist/components/ui/dialog.d.ts +32 -0
  58. package/dist/components/ui/dialog.js +67 -0
  59. package/dist/components/ui/dialog.module.js +39 -0
  60. package/dist/components/ui/drawer.d.ts +20 -0
  61. package/dist/components/ui/drawer.js +44 -0
  62. package/dist/components/ui/dropdown-menu.d.ts +38 -0
  63. package/dist/components/ui/dropdown-menu.js +66 -0
  64. package/dist/components/ui/empty-state.d.ts +12 -0
  65. package/dist/components/ui/empty-state.js +33 -0
  66. package/dist/components/ui/empty-state.module.js +19 -0
  67. package/dist/components/ui/field.d.ts +38 -0
  68. package/dist/components/ui/field.js +77 -0
  69. package/dist/components/ui/field.module.js +17 -0
  70. package/dist/components/ui/icon-button.d.ts +9 -0
  71. package/dist/components/ui/icon-button.js +21 -0
  72. package/dist/components/ui/input.d.ts +8 -0
  73. package/dist/components/ui/input.js +23 -0
  74. package/dist/components/ui/input.module.js +25 -0
  75. package/dist/components/ui/kbd.d.ts +3 -0
  76. package/dist/components/ui/kbd.js +34 -0
  77. package/dist/components/ui/native-select.d.ts +10 -0
  78. package/dist/components/ui/native-select.js +26 -0
  79. package/dist/components/ui/pagination.d.ts +12 -0
  80. package/dist/components/ui/pagination.js +54 -0
  81. package/dist/components/ui/popover.d.ts +17 -0
  82. package/dist/components/ui/popover.js +41 -0
  83. package/dist/components/ui/popup.module.js +39 -0
  84. package/dist/components/ui/radio-group.d.ts +18 -0
  85. package/dist/components/ui/radio-group.js +50 -0
  86. package/dist/components/ui/search-input.d.ts +15 -0
  87. package/dist/components/ui/search-input.js +64 -0
  88. package/dist/components/ui/select.d.ts +27 -0
  89. package/dist/components/ui/select.js +71 -0
  90. package/dist/components/ui/skeleton.d.ts +12 -0
  91. package/dist/components/ui/skeleton.js +23 -0
  92. package/dist/components/ui/skeleton.module.js +15 -0
  93. package/dist/components/ui/spinner.d.ts +8 -0
  94. package/dist/components/ui/spinner.js +19 -0
  95. package/dist/components/ui/spinner.module.js +13 -0
  96. package/dist/components/ui/switch.d.ts +10 -0
  97. package/dist/components/ui/switch.js +35 -0
  98. package/dist/components/ui/table.d.ts +52 -0
  99. package/dist/components/ui/table.js +143 -0
  100. package/dist/components/ui/table.module.js +42 -0
  101. package/dist/components/ui/tabs.d.ts +25 -0
  102. package/dist/components/ui/tabs.js +47 -0
  103. package/dist/components/ui/tabs.module.js +21 -0
  104. package/dist/components/ui/textarea.d.ts +6 -0
  105. package/dist/components/ui/textarea.js +23 -0
  106. package/dist/components/ui/toast.d.ts +30 -0
  107. package/dist/components/ui/toast.js +81 -0
  108. package/dist/components/ui/toast.module.js +21 -0
  109. package/dist/components/ui/tooltip.d.ts +18 -0
  110. package/dist/components/ui/tooltip.js +30 -0
  111. package/dist/components/ui/visually-hidden.d.ts +3 -0
  112. package/dist/components/ui/visually-hidden.js +26 -0
  113. package/dist/index.d.ts +48 -0
  114. package/dist/index.js +50 -0
  115. package/dist/lib/cn.d.ts +2 -0
  116. package/dist/lib/cn.js +7 -0
  117. package/dist/lib/format.d.ts +6 -0
  118. package/dist/lib/format.js +33 -0
  119. package/dist/styles.css +2317 -0
  120. package/dist/tailwind.css +82 -0
  121. package/dist/tokens.css +131 -0
  122. package/dist/tokens.d.ts +339 -0
  123. package/dist/tokens.js +791 -0
  124. package/package.json +54 -4
package/dist/tokens.js ADDED
@@ -0,0 +1,791 @@
1
+ //#region src/tokens.ts
2
+ /** Raw token values. */
3
+ var tokens = {
4
+ "color": {
5
+ "bg": "#fcfcfc",
6
+ "sidebar": "#f7f7f7",
7
+ "surface": "#ffffff",
8
+ "surface-hover": "#f2f2f2",
9
+ "surface-active": "#ebebeb",
10
+ "border": "#ebebeb",
11
+ "border-strong": "#dcdcdc",
12
+ "ink": "#1f1f1f",
13
+ "muted": "#737373",
14
+ "faint": "#a3a3a3",
15
+ "accent": "#1f1f1f",
16
+ "accent-hover": "#3a3a3a",
17
+ "accent-soft-bg": "#f2f2f2",
18
+ "accent-soft-ink": "#404040",
19
+ "on-accent": "#ffffff",
20
+ "info": "#3b82f6",
21
+ "info-soft-bg": "#eef4ff",
22
+ "info-ink": "#2563eb",
23
+ "danger": "#dc2626",
24
+ "danger-soft-bg": "#fef2f2",
25
+ "danger-ink": "#b91c1c",
26
+ "success": "#16a34a",
27
+ "success-soft-bg": "#f0fdf4",
28
+ "success-ink": "#15803d",
29
+ "warning": "#b45309",
30
+ "warning-soft-bg": "#fffbeb",
31
+ "channel-whatsapp": "#25d366",
32
+ "backdrop": "rgb(0 0 0 / 0.2)",
33
+ "focus": "#3b82f6",
34
+ "input-focus-border": "#737373",
35
+ "ink-soft": "color-mix(in oklab, #1f1f1f 85%, transparent)"
36
+ },
37
+ "font": {
38
+ "family": {
39
+ "sans": "Inter, \"Inter Fallback\", system-ui, -apple-system, \"Segoe UI\", sans-serif",
40
+ "mono": "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, monospace"
41
+ },
42
+ "weight": {
43
+ "regular": "400",
44
+ "medium": "500",
45
+ "semibold": "600",
46
+ "bold": "700"
47
+ },
48
+ "size": {
49
+ "2xs": "10px",
50
+ "xs": "11px",
51
+ "badge": "11.5px",
52
+ "sm": "12px",
53
+ "label": "12.5px",
54
+ "md": "13px",
55
+ "nav": "13.5px",
56
+ "lg": "14px",
57
+ "xl": "15px",
58
+ "2xl": "16px",
59
+ "3xl": "18px",
60
+ "4xl": "20px",
61
+ "page-title-mobile": "22px",
62
+ "5xl": "24px",
63
+ "6xl": "28px",
64
+ "7xl": "32px"
65
+ },
66
+ "leading": {
67
+ "none": "1",
68
+ "tight": "1.25",
69
+ "snug": "1.375",
70
+ "normal": "1.5",
71
+ "relaxed": "1.625"
72
+ },
73
+ "tracking": {
74
+ "tight": "-0.01em",
75
+ "tighter": "-0.015em",
76
+ "tightest": "-0.02em",
77
+ "body": "-0.006em"
78
+ },
79
+ "features": "\"cv11\", \"ss01\""
80
+ },
81
+ "space": {
82
+ "0": "0px",
83
+ "1": "4px",
84
+ "2": "8px",
85
+ "3": "12px",
86
+ "4": "16px",
87
+ "5": "20px",
88
+ "6": "24px",
89
+ "8": "32px",
90
+ "9": "36px",
91
+ "10": "40px",
92
+ "12": "48px",
93
+ "16": "64px",
94
+ "0.5": "2px",
95
+ "1.5": "6px",
96
+ "2.5": "10px"
97
+ },
98
+ "radius": {
99
+ "sm": "4px",
100
+ "md": "6px",
101
+ "lg": "8px",
102
+ "xl": "10px",
103
+ "full": "9999px"
104
+ },
105
+ "shadow": {
106
+ "card": "0 1px 2px #00000008",
107
+ "card-hover": "0 1px 3px #0000000f",
108
+ "popover": "0 0 0 1px #0000000a, 0 8px 24px -6px #0000001f",
109
+ "focus-input": "0 0 0 3px #0000000d"
110
+ },
111
+ "border": { "width": "1px" },
112
+ "focus": {
113
+ "width": "2px",
114
+ "offset": "1px"
115
+ },
116
+ "control": {
117
+ "height-sm": "28px",
118
+ "height-md": "32px",
119
+ "height-lg": "36px",
120
+ "height-touch": "44px",
121
+ "padding-x": "12px",
122
+ "input-padding-x": "10px",
123
+ "gap": "6px",
124
+ "icon": "16px",
125
+ "icon-sm": "14px",
126
+ "icon-stroke": "1.6"
127
+ },
128
+ "layout": {
129
+ "sidebar-width": "240px",
130
+ "content-max": "1180px",
131
+ "content-narrow": "760px",
132
+ "drawer-width": "min(360px, calc(100vw - 48px))",
133
+ "nav-drawer-width": "min(300px, 85vw)",
134
+ "topbar-height": "48px",
135
+ "detail-panel-width": "320px",
136
+ "list-pane-width": "340px",
137
+ "modal-width": "480px",
138
+ "page-padding-x": "40px"
139
+ },
140
+ "breakpoint": {
141
+ "sm": "640px",
142
+ "md": "768px",
143
+ "lg": "1024px",
144
+ "xl": "1280px",
145
+ "2xl": "1536px"
146
+ },
147
+ "z": {
148
+ "sticky": "20",
149
+ "header": "40",
150
+ "nav": "50",
151
+ "modal": "100",
152
+ "popover": "110",
153
+ "toast": "200",
154
+ "tooltip": "210"
155
+ },
156
+ "motion": {
157
+ "duration-fast": "120ms",
158
+ "duration-base": "150ms",
159
+ "duration-slow": "200ms",
160
+ "duration-drawer": "220ms",
161
+ "ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
162
+ "ease-emphasized": "cubic-bezier(0.2, 0.8, 0.2, 1)"
163
+ }
164
+ };
165
+ /** CSS custom property references, e.g. vars.color.ink === "var(--hg-color-ink)". */
166
+ var vars = {
167
+ "color": {
168
+ "bg": "var(--hg-color-bg)",
169
+ "sidebar": "var(--hg-color-sidebar)",
170
+ "surface": "var(--hg-color-surface)",
171
+ "surface-hover": "var(--hg-color-surface-hover)",
172
+ "surface-active": "var(--hg-color-surface-active)",
173
+ "border": "var(--hg-color-border)",
174
+ "border-strong": "var(--hg-color-border-strong)",
175
+ "ink": "var(--hg-color-ink)",
176
+ "muted": "var(--hg-color-muted)",
177
+ "faint": "var(--hg-color-faint)",
178
+ "accent": "var(--hg-color-accent)",
179
+ "accent-hover": "var(--hg-color-accent-hover)",
180
+ "accent-soft-bg": "var(--hg-color-accent-soft-bg)",
181
+ "accent-soft-ink": "var(--hg-color-accent-soft-ink)",
182
+ "on-accent": "var(--hg-color-on-accent)",
183
+ "info": "var(--hg-color-info)",
184
+ "info-soft-bg": "var(--hg-color-info-soft-bg)",
185
+ "info-ink": "var(--hg-color-info-ink)",
186
+ "danger": "var(--hg-color-danger)",
187
+ "danger-soft-bg": "var(--hg-color-danger-soft-bg)",
188
+ "danger-ink": "var(--hg-color-danger-ink)",
189
+ "success": "var(--hg-color-success)",
190
+ "success-soft-bg": "var(--hg-color-success-soft-bg)",
191
+ "success-ink": "var(--hg-color-success-ink)",
192
+ "warning": "var(--hg-color-warning)",
193
+ "warning-soft-bg": "var(--hg-color-warning-soft-bg)",
194
+ "channel-whatsapp": "var(--hg-color-channel-whatsapp)",
195
+ "backdrop": "var(--hg-color-backdrop)",
196
+ "focus": "var(--hg-color-focus)",
197
+ "input-focus-border": "var(--hg-color-input-focus-border)",
198
+ "ink-soft": "var(--hg-color-ink-soft)"
199
+ },
200
+ "font": {
201
+ "family": {
202
+ "sans": "var(--hg-font-family-sans)",
203
+ "mono": "var(--hg-font-family-mono)"
204
+ },
205
+ "weight": {
206
+ "regular": "var(--hg-font-weight-regular)",
207
+ "medium": "var(--hg-font-weight-medium)",
208
+ "semibold": "var(--hg-font-weight-semibold)",
209
+ "bold": "var(--hg-font-weight-bold)"
210
+ },
211
+ "size": {
212
+ "2xs": "var(--hg-font-size-2xs)",
213
+ "xs": "var(--hg-font-size-xs)",
214
+ "badge": "var(--hg-font-size-badge)",
215
+ "sm": "var(--hg-font-size-sm)",
216
+ "label": "var(--hg-font-size-label)",
217
+ "md": "var(--hg-font-size-md)",
218
+ "nav": "var(--hg-font-size-nav)",
219
+ "lg": "var(--hg-font-size-lg)",
220
+ "xl": "var(--hg-font-size-xl)",
221
+ "2xl": "var(--hg-font-size-2xl)",
222
+ "3xl": "var(--hg-font-size-3xl)",
223
+ "4xl": "var(--hg-font-size-4xl)",
224
+ "page-title-mobile": "var(--hg-font-size-page-title-mobile)",
225
+ "5xl": "var(--hg-font-size-5xl)",
226
+ "6xl": "var(--hg-font-size-6xl)",
227
+ "7xl": "var(--hg-font-size-7xl)"
228
+ },
229
+ "leading": {
230
+ "none": "var(--hg-font-leading-none)",
231
+ "tight": "var(--hg-font-leading-tight)",
232
+ "snug": "var(--hg-font-leading-snug)",
233
+ "normal": "var(--hg-font-leading-normal)",
234
+ "relaxed": "var(--hg-font-leading-relaxed)"
235
+ },
236
+ "tracking": {
237
+ "tight": "var(--hg-font-tracking-tight)",
238
+ "tighter": "var(--hg-font-tracking-tighter)",
239
+ "tightest": "var(--hg-font-tracking-tightest)",
240
+ "body": "var(--hg-font-tracking-body)"
241
+ },
242
+ "features": "var(--hg-font-features)"
243
+ },
244
+ "space": {
245
+ "0": "var(--hg-space-0)",
246
+ "1": "var(--hg-space-1)",
247
+ "2": "var(--hg-space-2)",
248
+ "3": "var(--hg-space-3)",
249
+ "4": "var(--hg-space-4)",
250
+ "5": "var(--hg-space-5)",
251
+ "6": "var(--hg-space-6)",
252
+ "8": "var(--hg-space-8)",
253
+ "9": "var(--hg-space-9)",
254
+ "10": "var(--hg-space-10)",
255
+ "12": "var(--hg-space-12)",
256
+ "16": "var(--hg-space-16)",
257
+ "0.5": "var(--hg-space-0_5)",
258
+ "1.5": "var(--hg-space-1_5)",
259
+ "2.5": "var(--hg-space-2_5)"
260
+ },
261
+ "radius": {
262
+ "sm": "var(--hg-radius-sm)",
263
+ "md": "var(--hg-radius-md)",
264
+ "lg": "var(--hg-radius-lg)",
265
+ "xl": "var(--hg-radius-xl)",
266
+ "full": "var(--hg-radius-full)"
267
+ },
268
+ "shadow": {
269
+ "card": "var(--hg-shadow-card)",
270
+ "card-hover": "var(--hg-shadow-card-hover)",
271
+ "popover": "var(--hg-shadow-popover)",
272
+ "focus-input": "var(--hg-shadow-focus-input)"
273
+ },
274
+ "border": { "width": "var(--hg-border-width)" },
275
+ "focus": {
276
+ "width": "var(--hg-focus-width)",
277
+ "offset": "var(--hg-focus-offset)"
278
+ },
279
+ "control": {
280
+ "height-sm": "var(--hg-control-height-sm)",
281
+ "height-md": "var(--hg-control-height-md)",
282
+ "height-lg": "var(--hg-control-height-lg)",
283
+ "height-touch": "var(--hg-control-height-touch)",
284
+ "padding-x": "var(--hg-control-padding-x)",
285
+ "input-padding-x": "var(--hg-control-input-padding-x)",
286
+ "gap": "var(--hg-control-gap)",
287
+ "icon": "var(--hg-control-icon)",
288
+ "icon-sm": "var(--hg-control-icon-sm)",
289
+ "icon-stroke": "var(--hg-control-icon-stroke)"
290
+ },
291
+ "layout": {
292
+ "sidebar-width": "var(--hg-layout-sidebar-width)",
293
+ "content-max": "var(--hg-layout-content-max)",
294
+ "content-narrow": "var(--hg-layout-content-narrow)",
295
+ "drawer-width": "var(--hg-layout-drawer-width)",
296
+ "nav-drawer-width": "var(--hg-layout-nav-drawer-width)",
297
+ "topbar-height": "var(--hg-layout-topbar-height)",
298
+ "detail-panel-width": "var(--hg-layout-detail-panel-width)",
299
+ "list-pane-width": "var(--hg-layout-list-pane-width)",
300
+ "modal-width": "var(--hg-layout-modal-width)",
301
+ "page-padding-x": "var(--hg-layout-page-padding-x)"
302
+ },
303
+ "breakpoint": {
304
+ "sm": "var(--hg-breakpoint-sm)",
305
+ "md": "var(--hg-breakpoint-md)",
306
+ "lg": "var(--hg-breakpoint-lg)",
307
+ "xl": "var(--hg-breakpoint-xl)",
308
+ "2xl": "var(--hg-breakpoint-2xl)"
309
+ },
310
+ "z": {
311
+ "sticky": "var(--hg-z-sticky)",
312
+ "header": "var(--hg-z-header)",
313
+ "nav": "var(--hg-z-nav)",
314
+ "modal": "var(--hg-z-modal)",
315
+ "popover": "var(--hg-z-popover)",
316
+ "toast": "var(--hg-z-toast)",
317
+ "tooltip": "var(--hg-z-tooltip)"
318
+ },
319
+ "motion": {
320
+ "duration-fast": "var(--hg-motion-duration-fast)",
321
+ "duration-base": "var(--hg-motion-duration-base)",
322
+ "duration-slow": "var(--hg-motion-duration-slow)",
323
+ "duration-drawer": "var(--hg-motion-duration-drawer)",
324
+ "ease-standard": "var(--hg-motion-ease-standard)",
325
+ "ease-emphasized": "var(--hg-motion-ease-emphasized)"
326
+ }
327
+ };
328
+ /** Provenance for every token, keyed by dotted path. */
329
+ var tokenMeta = {
330
+ "color.bg": {
331
+ "evidence": "observed",
332
+ "live": "--color-bg",
333
+ "description": "Page background (app canvas)."
334
+ },
335
+ "color.sidebar": {
336
+ "evidence": "observed",
337
+ "live": "--color-sidebar",
338
+ "description": "Sidebar / secondary rail background."
339
+ },
340
+ "color.surface": {
341
+ "evidence": "observed",
342
+ "live": "--color-surface",
343
+ "description": "Cards, inputs, popovers, dialogs."
344
+ },
345
+ "color.surface-hover": {
346
+ "evidence": "observed",
347
+ "live": "--color-surface-hover",
348
+ "description": "Hover fill for rows, menu items, ghost buttons."
349
+ },
350
+ "color.surface-active": {
351
+ "evidence": "observed",
352
+ "live": "--color-surface-active",
353
+ "description": "Pressed / selected fill."
354
+ },
355
+ "color.border": {
356
+ "evidence": "observed",
357
+ "live": "--color-border",
358
+ "description": "Default hairline border and dividers."
359
+ },
360
+ "color.border-strong": {
361
+ "evidence": "observed",
362
+ "live": "--color-border-strong",
363
+ "description": "Focused input border, emphasised separators."
364
+ },
365
+ "color.ink": {
366
+ "evidence": "observed",
367
+ "live": "--color-ink",
368
+ "description": "Primary text."
369
+ },
370
+ "color.muted": {
371
+ "evidence": "observed",
372
+ "live": "--color-muted",
373
+ "description": "Secondary text, labels, meta."
374
+ },
375
+ "color.faint": {
376
+ "evidence": "observed",
377
+ "live": "--color-faint",
378
+ "description": "Placeholder and decorative text only. Fails 4.5:1 — never use for meaningful text."
379
+ },
380
+ "color.accent": {
381
+ "evidence": "observed",
382
+ "live": "--color-accent",
383
+ "description": "Primary action fill. HeiGin's accent is near-black, not a hue."
384
+ },
385
+ "color.accent-hover": {
386
+ "evidence": "observed",
387
+ "live": "--color-accent-hover",
388
+ "description": "Primary action hover."
389
+ },
390
+ "color.accent-soft-bg": {
391
+ "evidence": "observed",
392
+ "live": "--color-accent-soft-bg",
393
+ "description": "Soft/neutral chip and selected nav background."
394
+ },
395
+ "color.accent-soft-ink": {
396
+ "evidence": "observed",
397
+ "live": "--color-accent-soft-ink",
398
+ "description": "Text on accent-soft-bg."
399
+ },
400
+ "color.on-accent": {
401
+ "evidence": "observed",
402
+ "live": "text-white",
403
+ "description": "Text and icons on the accent fill."
404
+ },
405
+ "color.info": {
406
+ "evidence": "observed",
407
+ "live": "--color-info",
408
+ "description": "Info signal; also the global focus outline colour."
409
+ },
410
+ "color.info-soft-bg": {
411
+ "evidence": "observed",
412
+ "live": "--color-info-soft-bg",
413
+ "description": "Info tint background."
414
+ },
415
+ "color.info-ink": {
416
+ "evidence": "observed",
417
+ "live": "--color-info-ink",
418
+ "description": "Info text on tint; links."
419
+ },
420
+ "color.danger": {
421
+ "evidence": "observed",
422
+ "live": "--color-danger",
423
+ "description": "Destructive actions and error signal."
424
+ },
425
+ "color.danger-soft-bg": {
426
+ "evidence": "observed",
427
+ "live": "--color-danger-soft-bg",
428
+ "description": "Error tint background."
429
+ },
430
+ "color.danger-ink": {
431
+ "evidence": "proposed",
432
+ "description": "Error text on tint. Production uses --color-danger (#dc2626) on #fef2f2 (4.41:1, below AA for small text)."
433
+ },
434
+ "color.success": {
435
+ "evidence": "observed",
436
+ "live": "--color-success",
437
+ "description": "Success signal (icons, dots, bars)."
438
+ },
439
+ "color.success-soft-bg": {
440
+ "evidence": "observed",
441
+ "live": "--color-success-soft-bg",
442
+ "description": "Success tint background."
443
+ },
444
+ "color.success-ink": {
445
+ "evidence": "proposed",
446
+ "description": "Success text on tint. Production uses #16a34a on #f0fdf4 (3.15:1, fails AA for text)."
447
+ },
448
+ "color.warning": {
449
+ "evidence": "observed",
450
+ "live": "--color-warning",
451
+ "description": "Warning signal and text."
452
+ },
453
+ "color.warning-soft-bg": {
454
+ "evidence": "observed",
455
+ "live": "--color-warning-soft-bg",
456
+ "description": "Warning tint background."
457
+ },
458
+ "color.channel-whatsapp": {
459
+ "evidence": "proposed",
460
+ "description": "WhatsApp channel mark (brand green), from the HeiGin product spec. Channel identity only — never a success colour. Always paired with a text label (1.98:1 on white)."
461
+ },
462
+ "color.backdrop": {
463
+ "evidence": "observed",
464
+ "live": "bg-black/20 (modal scrim)",
465
+ "description": "Modal and drawer scrim."
466
+ },
467
+ "color.focus": {
468
+ "evidence": "observed",
469
+ "live": ":focus-visible outline",
470
+ "description": "Keyboard focus outline colour (same as info)."
471
+ },
472
+ "color.input-focus-border": {
473
+ "evidence": "proposed",
474
+ "description": "Focused text-field border. Production uses border-strong (#dcdcdc, 1.37:1 against white), which is below the 3:1 non-text minimum. Reuses the muted ink (4.6:1)."
475
+ },
476
+ "color.ink-soft": {
477
+ "evidence": "observed",
478
+ "live": "text-ink/85",
479
+ "description": "Resting sidebar navigation text."
480
+ },
481
+ "font.family.sans": {
482
+ "evidence": "observed",
483
+ "live": "--font-inter",
484
+ "description": "All UI text. Loaded via next/font in production."
485
+ },
486
+ "font.family.mono": {
487
+ "evidence": "proposed",
488
+ "live": "--font-mono",
489
+ "description": "Production declares --font-mono via next/font but the family is not identifiable from the public bundle; a system stack is used here."
490
+ },
491
+ "font.weight.regular": { "evidence": "observed" },
492
+ "font.weight.medium": {
493
+ "evidence": "observed",
494
+ "description": "Buttons, labels, row titles."
495
+ },
496
+ "font.weight.semibold": {
497
+ "evidence": "observed",
498
+ "description": "Headings, metric values."
499
+ },
500
+ "font.weight.bold": {
501
+ "evidence": "observed",
502
+ "description": "Rare; large display numbers."
503
+ },
504
+ "font.size.2xs": { "evidence": "observed" },
505
+ "font.size.xs": {
506
+ "evidence": "observed",
507
+ "description": "Badges, captions."
508
+ },
509
+ "font.size.badge": {
510
+ "evidence": "observed",
511
+ "description": "Badges and status pills (text-[11.5px])."
512
+ },
513
+ "font.size.sm": {
514
+ "evidence": "observed",
515
+ "description": "Meta text, helper text."
516
+ },
517
+ "font.size.label": {
518
+ "evidence": "observed",
519
+ "description": "Field labels, small buttons, table headers, helper text, card links."
520
+ },
521
+ "font.size.md": {
522
+ "evidence": "observed",
523
+ "description": "Default UI text: buttons, inputs, rows."
524
+ },
525
+ "font.size.nav": {
526
+ "evidence": "observed",
527
+ "description": "Sidebar items, tabs/filter pills, empty-state titles."
528
+ },
529
+ "font.size.lg": {
530
+ "evidence": "observed",
531
+ "description": "Dialog titles (14px/500), body copy."
532
+ },
533
+ "font.size.xl": { "evidence": "observed" },
534
+ "font.size.2xl": {
535
+ "evidence": "observed",
536
+ "description": "Section titles; mobile input text (prevents iOS zoom)."
537
+ },
538
+ "font.size.3xl": { "evidence": "observed" },
539
+ "font.size.4xl": {
540
+ "evidence": "observed",
541
+ "description": "Large section headings."
542
+ },
543
+ "font.size.page-title-mobile": {
544
+ "evidence": "observed",
545
+ "description": "Page title below 768px."
546
+ },
547
+ "font.size.5xl": {
548
+ "evidence": "observed",
549
+ "description": "Page titles (24px/500, -0.02em) and metric values from 768px."
550
+ },
551
+ "font.size.6xl": {
552
+ "evidence": "observed",
553
+ "description": "Display numbers (rare)."
554
+ },
555
+ "font.size.7xl": { "evidence": "observed" },
556
+ "font.leading.none": { "evidence": "observed" },
557
+ "font.leading.tight": { "evidence": "observed" },
558
+ "font.leading.snug": { "evidence": "observed" },
559
+ "font.leading.normal": {
560
+ "evidence": "observed",
561
+ "description": "Tailwind preflight default."
562
+ },
563
+ "font.leading.relaxed": { "evidence": "observed" },
564
+ "font.tracking.tight": { "evidence": "observed" },
565
+ "font.tracking.tighter": { "evidence": "observed" },
566
+ "font.tracking.tightest": {
567
+ "evidence": "observed",
568
+ "description": "Large headings and metric values."
569
+ },
570
+ "font.tracking.body": {
571
+ "evidence": "observed",
572
+ "live": "body letter-spacing -0.096px at 16px",
573
+ "description": "Default tracking applied to all text."
574
+ },
575
+ "font.features": {
576
+ "evidence": "observed",
577
+ "live": "body font-feature-settings",
578
+ "description": "Inter alternates used across the app (single-storey a, open digits)."
579
+ },
580
+ "space.0": { "evidence": "observed" },
581
+ "space.1": {
582
+ "evidence": "observed",
583
+ "description": "Base unit (Tailwind --spacing: .25rem)."
584
+ },
585
+ "space.2": { "evidence": "observed" },
586
+ "space.3": { "evidence": "observed" },
587
+ "space.4": { "evidence": "observed" },
588
+ "space.5": { "evidence": "observed" },
589
+ "space.6": { "evidence": "observed" },
590
+ "space.8": { "evidence": "observed" },
591
+ "space.9": { "evidence": "observed" },
592
+ "space.10": { "evidence": "observed" },
593
+ "space.12": { "evidence": "observed" },
594
+ "space.16": { "evidence": "observed" },
595
+ "space.0.5": { "evidence": "observed" },
596
+ "space.1.5": { "evidence": "observed" },
597
+ "space.2.5": { "evidence": "observed" },
598
+ "radius.sm": {
599
+ "evidence": "observed",
600
+ "live": "--radius-sm",
601
+ "description": "Badges, checkboxes, small chips."
602
+ },
603
+ "radius.md": {
604
+ "evidence": "observed",
605
+ "live": "--radius-md",
606
+ "description": "Buttons, inputs, menu items."
607
+ },
608
+ "radius.lg": {
609
+ "evidence": "observed",
610
+ "live": "--radius-lg",
611
+ "description": "Cards, popovers."
612
+ },
613
+ "radius.xl": {
614
+ "evidence": "observed",
615
+ "live": "--radius-xl",
616
+ "description": "Dialogs, mobile sheets (top corners)."
617
+ },
618
+ "radius.full": {
619
+ "evidence": "observed",
620
+ "description": "Avatars, dots, pills."
621
+ },
622
+ "shadow.card": {
623
+ "evidence": "observed",
624
+ "live": "--shadow-card",
625
+ "description": "Resting cards and inputs."
626
+ },
627
+ "shadow.card-hover": {
628
+ "evidence": "observed",
629
+ "live": "--shadow-card-hover",
630
+ "description": "Interactive card hover."
631
+ },
632
+ "shadow.popover": {
633
+ "evidence": "observed",
634
+ "live": "--shadow-popover",
635
+ "description": "Menus, popovers, dialogs, drawers, toasts."
636
+ },
637
+ "shadow.focus-input": {
638
+ "evidence": "observed",
639
+ "live": "input:focus box-shadow",
640
+ "description": "Soft ring shown on focused text fields."
641
+ },
642
+ "border.width": { "evidence": "observed" },
643
+ "focus.width": {
644
+ "evidence": "observed",
645
+ "live": ":focus-visible outline"
646
+ },
647
+ "focus.offset": {
648
+ "evidence": "observed",
649
+ "live": ":focus-visible outline-offset"
650
+ },
651
+ "control.height-sm": {
652
+ "evidence": "observed",
653
+ "description": "h-7: toolbar and page-action buttons, tabs/filter pills, icon buttons."
654
+ },
655
+ "control.height-md": {
656
+ "evidence": "observed",
657
+ "description": "h-8: inputs, selects, dialog footer buttons, sidebar items."
658
+ },
659
+ "control.height-lg": {
660
+ "evidence": "observed",
661
+ "description": "h-9."
662
+ },
663
+ "control.height-touch": {
664
+ "evidence": "observed",
665
+ "description": "h-11: all controls below the md breakpoint (768px)."
666
+ },
667
+ "control.padding-x": {
668
+ "evidence": "observed",
669
+ "description": "px-3 on buttons."
670
+ },
671
+ "control.input-padding-x": {
672
+ "evidence": "observed",
673
+ "description": "px-2.5 on inputs."
674
+ },
675
+ "control.gap": {
676
+ "evidence": "observed",
677
+ "description": "gap-1.5 between icon and label."
678
+ },
679
+ "control.icon": {
680
+ "evidence": "observed",
681
+ "description": "Default icon size (size-4)."
682
+ },
683
+ "control.icon-sm": {
684
+ "evidence": "observed",
685
+ "description": "size-3.5 inline icons."
686
+ },
687
+ "control.icon-stroke": {
688
+ "evidence": "observed",
689
+ "description": "Lucide strokeWidth used across production."
690
+ },
691
+ "layout.sidebar-width": {
692
+ "evidence": "observed",
693
+ "description": "Desktop navigation rail."
694
+ },
695
+ "layout.content-max": {
696
+ "evidence": "observed",
697
+ "description": "Widest page content column."
698
+ },
699
+ "layout.content-narrow": {
700
+ "evidence": "observed",
701
+ "description": "Reading-width pages (settings, detail)."
702
+ },
703
+ "layout.drawer-width": {
704
+ "evidence": "observed",
705
+ "description": "Right drawer."
706
+ },
707
+ "layout.nav-drawer-width": {
708
+ "evidence": "observed",
709
+ "description": "Mobile navigation drawer."
710
+ },
711
+ "layout.topbar-height": {
712
+ "evidence": "observed",
713
+ "description": "App top bar (h-12)."
714
+ },
715
+ "layout.detail-panel-width": {
716
+ "evidence": "observed",
717
+ "description": "Record detail side panel."
718
+ },
719
+ "layout.list-pane-width": {
720
+ "evidence": "observed",
721
+ "description": "Inbox conversation list pane."
722
+ },
723
+ "layout.modal-width": {
724
+ "evidence": "observed",
725
+ "description": "Default dialog width (--modal-width)."
726
+ },
727
+ "layout.page-padding-x": {
728
+ "evidence": "observed",
729
+ "description": "md:px-10 page gutter (16px below 768px)."
730
+ },
731
+ "breakpoint.sm": { "evidence": "observed" },
732
+ "breakpoint.md": {
733
+ "evidence": "observed",
734
+ "description": "Touch-to-desktop control size switch."
735
+ },
736
+ "breakpoint.lg": {
737
+ "evidence": "observed",
738
+ "description": "Sidebar becomes a drawer below this width."
739
+ },
740
+ "breakpoint.xl": { "evidence": "observed" },
741
+ "breakpoint.2xl": { "evidence": "observed" },
742
+ "z.sticky": { "evidence": "observed" },
743
+ "z.header": {
744
+ "evidence": "observed",
745
+ "description": "App top bar (h-12)."
746
+ },
747
+ "z.nav": {
748
+ "evidence": "observed",
749
+ "description": "Mobile bottom tab bar."
750
+ },
751
+ "z.modal": {
752
+ "evidence": "observed",
753
+ "description": "Dialog scrim and dialogs/drawers."
754
+ },
755
+ "z.popover": {
756
+ "evidence": "derived",
757
+ "live": "z-[90]",
758
+ "description": "Menus, selects, popovers. Production uses 90 for in-page dropdowns; raised above modal (100) so selects and menus inside dialogs are not hidden behind them."
759
+ },
760
+ "z.toast": {
761
+ "evidence": "observed",
762
+ "description": "Toast stack (fixed bottom-5 right-5)."
763
+ },
764
+ "z.tooltip": {
765
+ "evidence": "proposed",
766
+ "description": "Above toasts; no custom tooltips observed."
767
+ },
768
+ "motion.duration-fast": {
769
+ "evidence": "observed",
770
+ "description": "popIn (menus, popovers)."
771
+ },
772
+ "motion.duration-base": {
773
+ "evidence": "observed",
774
+ "description": "Colour transitions, fadeIn."
775
+ },
776
+ "motion.duration-slow": {
777
+ "evidence": "observed",
778
+ "description": "Sheets and nav drawer."
779
+ },
780
+ "motion.duration-drawer": {
781
+ "evidence": "observed",
782
+ "description": "Right-hand drawer."
783
+ },
784
+ "motion.ease-standard": { "evidence": "observed" },
785
+ "motion.ease-emphasized": {
786
+ "evidence": "observed",
787
+ "description": "Drawers and sheets."
788
+ }
789
+ };
790
+ //#endregion
791
+ export { tokenMeta, tokens, vars };