@heigin/ui 0.0.0-stage → 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.
- package/CHANGELOG.md +20 -0
- package/LICENSE +15 -0
- package/README.md +28 -2
- package/dist/base.css +44 -0
- package/dist/components/crm/activity-timeline.d.ts +23 -0
- package/dist/components/crm/activity-timeline.js +41 -0
- package/dist/components/crm/approval-card.d.ts +33 -0
- package/dist/components/crm/approval-card.js +101 -0
- package/dist/components/crm/channel-mark.d.ts +10 -0
- package/dist/components/crm/channel-mark.js +57 -0
- package/dist/components/crm/conversation-list-item.d.ts +23 -0
- package/dist/components/crm/conversation-list-item.js +62 -0
- package/dist/components/crm/crm.module.js +161 -0
- package/dist/components/crm/deal-stage.d.ts +13 -0
- package/dist/components/crm/deal-stage.js +27 -0
- package/dist/components/crm/detail-list.d.ts +17 -0
- package/dist/components/crm/detail-list.js +35 -0
- package/dist/components/crm/filter-chip.d.ts +16 -0
- package/dist/components/crm/filter-chip.js +45 -0
- package/dist/components/crm/filter-toolbar.d.ts +16 -0
- package/dist/components/crm/filter-toolbar.js +42 -0
- package/dist/components/crm/metric-card.d.ts +30 -0
- package/dist/components/crm/metric-card.js +61 -0
- package/dist/components/crm/money-value.d.ts +9 -0
- package/dist/components/crm/money-value.js +27 -0
- package/dist/components/crm/page-header.d.ts +11 -0
- package/dist/components/crm/page-header.js +28 -0
- package/dist/components/crm/record-header.d.ts +22 -0
- package/dist/components/crm/record-header.js +53 -0
- package/dist/components/crm/sidebar-nav.d.ts +33 -0
- package/dist/components/crm/sidebar-nav.js +53 -0
- package/dist/components/crm/sla-clock.d.ts +11 -0
- package/dist/components/crm/sla-clock.js +41 -0
- package/dist/components/crm/status-badge.d.ts +94 -0
- package/dist/components/crm/status-badge.js +106 -0
- package/dist/components/crm/task-row.d.ts +18 -0
- package/dist/components/crm/task-row.js +52 -0
- package/dist/components/crm/trust-rung-badge.d.ts +14 -0
- package/dist/components/crm/trust-rung-badge.js +35 -0
- package/dist/components/ui/alert-dialog.d.ts +22 -0
- package/dist/components/ui/alert-dialog.js +87 -0
- package/dist/components/ui/avatar.d.ts +13 -0
- package/dist/components/ui/avatar.js +38 -0
- package/dist/components/ui/avatar.module.js +17 -0
- package/dist/components/ui/badge.d.ts +12 -0
- package/dist/components/ui/badge.js +28 -0
- package/dist/components/ui/badge.module.js +25 -0
- package/dist/components/ui/button.d.ts +19 -0
- package/dist/components/ui/button.js +39 -0
- package/dist/components/ui/button.module.js +27 -0
- package/dist/components/ui/card.d.ts +19 -0
- package/dist/components/ui/card.js +35 -0
- package/dist/components/ui/card.module.js +23 -0
- package/dist/components/ui/checkbox.d.ts +11 -0
- package/dist/components/ui/checkbox.js +47 -0
- package/dist/components/ui/choice.module.js +28 -0
- package/dist/components/ui/dialog.d.ts +32 -0
- package/dist/components/ui/dialog.js +67 -0
- package/dist/components/ui/dialog.module.js +39 -0
- package/dist/components/ui/drawer.d.ts +20 -0
- package/dist/components/ui/drawer.js +44 -0
- package/dist/components/ui/dropdown-menu.d.ts +38 -0
- package/dist/components/ui/dropdown-menu.js +66 -0
- package/dist/components/ui/empty-state.d.ts +12 -0
- package/dist/components/ui/empty-state.js +33 -0
- package/dist/components/ui/empty-state.module.js +19 -0
- package/dist/components/ui/field.d.ts +38 -0
- package/dist/components/ui/field.js +77 -0
- package/dist/components/ui/field.module.js +17 -0
- package/dist/components/ui/icon-button.d.ts +9 -0
- package/dist/components/ui/icon-button.js +21 -0
- package/dist/components/ui/input.d.ts +8 -0
- package/dist/components/ui/input.js +23 -0
- package/dist/components/ui/input.module.js +25 -0
- package/dist/components/ui/kbd.d.ts +3 -0
- package/dist/components/ui/kbd.js +34 -0
- package/dist/components/ui/native-select.d.ts +10 -0
- package/dist/components/ui/native-select.js +26 -0
- package/dist/components/ui/pagination.d.ts +13 -0
- package/dist/components/ui/pagination.js +55 -0
- package/dist/components/ui/popover.d.ts +17 -0
- package/dist/components/ui/popover.js +41 -0
- package/dist/components/ui/popup.module.js +39 -0
- package/dist/components/ui/radio-group.d.ts +18 -0
- package/dist/components/ui/radio-group.js +50 -0
- package/dist/components/ui/search-input.d.ts +15 -0
- package/dist/components/ui/search-input.js +64 -0
- package/dist/components/ui/select.d.ts +27 -0
- package/dist/components/ui/select.js +71 -0
- package/dist/components/ui/skeleton.d.ts +12 -0
- package/dist/components/ui/skeleton.js +23 -0
- package/dist/components/ui/skeleton.module.js +15 -0
- package/dist/components/ui/spinner.d.ts +8 -0
- package/dist/components/ui/spinner.js +19 -0
- package/dist/components/ui/spinner.module.js +13 -0
- package/dist/components/ui/switch.d.ts +10 -0
- package/dist/components/ui/switch.js +35 -0
- package/dist/components/ui/table.d.ts +52 -0
- package/dist/components/ui/table.js +143 -0
- package/dist/components/ui/table.module.js +42 -0
- package/dist/components/ui/tabs.d.ts +25 -0
- package/dist/components/ui/tabs.js +47 -0
- package/dist/components/ui/tabs.module.js +21 -0
- package/dist/components/ui/textarea.d.ts +6 -0
- package/dist/components/ui/textarea.js +23 -0
- package/dist/components/ui/toast.d.ts +30 -0
- package/dist/components/ui/toast.js +81 -0
- package/dist/components/ui/toast.module.js +21 -0
- package/dist/components/ui/tooltip.d.ts +18 -0
- package/dist/components/ui/tooltip.js +30 -0
- package/dist/components/ui/visually-hidden.d.ts +3 -0
- package/dist/components/ui/visually-hidden.js +26 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.js +50 -0
- package/dist/lib/cn.d.ts +2 -0
- package/dist/lib/cn.js +7 -0
- package/dist/lib/format.d.ts +6 -0
- package/dist/lib/format.js +33 -0
- package/dist/styles.css +2317 -0
- package/dist/tailwind.css +82 -0
- package/dist/tokens.css +131 -0
- package/dist/tokens.d.ts +339 -0
- package/dist/tokens.js +790 -0
- package/package.json +54 -4
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* Generated by scripts/build-tokens.mjs from tokens/tokens.json. Do not edit by hand. */
|
|
2
|
+
/* Optional: Tailwind CSS v4 theme that maps HeiGin tokens to utilities (bg-surface, text-ink, rounded-md, shadow-popover ...).
|
|
3
|
+
Usage: @import "tailwindcss"; @import "@heigin/ui/tokens.css"; @import "@heigin/ui/tailwind.css"; */
|
|
4
|
+
@theme inline {
|
|
5
|
+
--spacing: 4px;
|
|
6
|
+
--color-bg: var(--hg-color-bg);
|
|
7
|
+
--color-sidebar: var(--hg-color-sidebar);
|
|
8
|
+
--color-surface: var(--hg-color-surface);
|
|
9
|
+
--color-surface-hover: var(--hg-color-surface-hover);
|
|
10
|
+
--color-surface-active: var(--hg-color-surface-active);
|
|
11
|
+
--color-border: var(--hg-color-border);
|
|
12
|
+
--color-border-strong: var(--hg-color-border-strong);
|
|
13
|
+
--color-ink: var(--hg-color-ink);
|
|
14
|
+
--color-muted: var(--hg-color-muted);
|
|
15
|
+
--color-faint: var(--hg-color-faint);
|
|
16
|
+
--color-accent: var(--hg-color-accent);
|
|
17
|
+
--color-accent-hover: var(--hg-color-accent-hover);
|
|
18
|
+
--color-accent-soft-bg: var(--hg-color-accent-soft-bg);
|
|
19
|
+
--color-accent-soft-ink: var(--hg-color-accent-soft-ink);
|
|
20
|
+
--color-on-accent: var(--hg-color-on-accent);
|
|
21
|
+
--color-info: var(--hg-color-info);
|
|
22
|
+
--color-info-soft-bg: var(--hg-color-info-soft-bg);
|
|
23
|
+
--color-info-ink: var(--hg-color-info-ink);
|
|
24
|
+
--color-danger: var(--hg-color-danger);
|
|
25
|
+
--color-danger-soft-bg: var(--hg-color-danger-soft-bg);
|
|
26
|
+
--color-danger-ink: var(--hg-color-danger-ink);
|
|
27
|
+
--color-success: var(--hg-color-success);
|
|
28
|
+
--color-success-soft-bg: var(--hg-color-success-soft-bg);
|
|
29
|
+
--color-success-ink: var(--hg-color-success-ink);
|
|
30
|
+
--color-warning: var(--hg-color-warning);
|
|
31
|
+
--color-warning-soft-bg: var(--hg-color-warning-soft-bg);
|
|
32
|
+
--color-channel-whatsapp: var(--hg-color-channel-whatsapp);
|
|
33
|
+
--color-backdrop: var(--hg-color-backdrop);
|
|
34
|
+
--color-focus: var(--hg-color-focus);
|
|
35
|
+
--color-input-focus-border: var(--hg-color-input-focus-border);
|
|
36
|
+
--color-ink-soft: var(--hg-color-ink-soft);
|
|
37
|
+
--font-sans: var(--hg-font-family-sans);
|
|
38
|
+
--font-mono: var(--hg-font-family-mono);
|
|
39
|
+
--font-weight-regular: var(--hg-font-weight-regular);
|
|
40
|
+
--font-weight-medium: var(--hg-font-weight-medium);
|
|
41
|
+
--font-weight-semibold: var(--hg-font-weight-semibold);
|
|
42
|
+
--font-weight-bold: var(--hg-font-weight-bold);
|
|
43
|
+
--text-2xs: var(--hg-font-size-2xs);
|
|
44
|
+
--text-xs: var(--hg-font-size-xs);
|
|
45
|
+
--text-badge: var(--hg-font-size-badge);
|
|
46
|
+
--text-sm: var(--hg-font-size-sm);
|
|
47
|
+
--text-label: var(--hg-font-size-label);
|
|
48
|
+
--text-md: var(--hg-font-size-md);
|
|
49
|
+
--text-nav: var(--hg-font-size-nav);
|
|
50
|
+
--text-lg: var(--hg-font-size-lg);
|
|
51
|
+
--text-xl: var(--hg-font-size-xl);
|
|
52
|
+
--text-2xl: var(--hg-font-size-2xl);
|
|
53
|
+
--text-3xl: var(--hg-font-size-3xl);
|
|
54
|
+
--text-4xl: var(--hg-font-size-4xl);
|
|
55
|
+
--text-page-title-mobile: var(--hg-font-size-page-title-mobile);
|
|
56
|
+
--text-5xl: var(--hg-font-size-5xl);
|
|
57
|
+
--text-6xl: var(--hg-font-size-6xl);
|
|
58
|
+
--text-7xl: var(--hg-font-size-7xl);
|
|
59
|
+
--leading-none: var(--hg-font-leading-none);
|
|
60
|
+
--leading-tight: var(--hg-font-leading-tight);
|
|
61
|
+
--leading-snug: var(--hg-font-leading-snug);
|
|
62
|
+
--leading-normal: var(--hg-font-leading-normal);
|
|
63
|
+
--leading-relaxed: var(--hg-font-leading-relaxed);
|
|
64
|
+
--tracking-tight: var(--hg-font-tracking-tight);
|
|
65
|
+
--tracking-tighter: var(--hg-font-tracking-tighter);
|
|
66
|
+
--tracking-tightest: var(--hg-font-tracking-tightest);
|
|
67
|
+
--tracking-body: var(--hg-font-tracking-body);
|
|
68
|
+
--radius-sm: var(--hg-radius-sm);
|
|
69
|
+
--radius-md: var(--hg-radius-md);
|
|
70
|
+
--radius-lg: var(--hg-radius-lg);
|
|
71
|
+
--radius-xl: var(--hg-radius-xl);
|
|
72
|
+
--radius-full: var(--hg-radius-full);
|
|
73
|
+
--shadow-card: var(--hg-shadow-card);
|
|
74
|
+
--shadow-card-hover: var(--hg-shadow-card-hover);
|
|
75
|
+
--shadow-popover: var(--hg-shadow-popover);
|
|
76
|
+
--shadow-focus-input: var(--hg-shadow-focus-input);
|
|
77
|
+
--breakpoint-sm: 640px;
|
|
78
|
+
--breakpoint-md: 768px;
|
|
79
|
+
--breakpoint-lg: 1024px;
|
|
80
|
+
--breakpoint-xl: 1280px;
|
|
81
|
+
--breakpoint-2xl: 1536px;
|
|
82
|
+
}
|
package/dist/tokens.css
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/* Generated by scripts/build-tokens.mjs from tokens/tokens.json. Do not edit by hand. */
|
|
2
|
+
:root {
|
|
3
|
+
--hg-color-bg: #fcfcfc;
|
|
4
|
+
--hg-color-sidebar: #f7f7f7;
|
|
5
|
+
--hg-color-surface: #ffffff;
|
|
6
|
+
--hg-color-surface-hover: #f2f2f2;
|
|
7
|
+
--hg-color-surface-active: #ebebeb;
|
|
8
|
+
--hg-color-border: #ebebeb;
|
|
9
|
+
--hg-color-border-strong: #dcdcdc;
|
|
10
|
+
--hg-color-ink: #1f1f1f;
|
|
11
|
+
--hg-color-muted: #737373;
|
|
12
|
+
--hg-color-faint: #a3a3a3;
|
|
13
|
+
--hg-color-accent: #1f1f1f;
|
|
14
|
+
--hg-color-accent-hover: #3a3a3a;
|
|
15
|
+
--hg-color-accent-soft-bg: #f2f2f2;
|
|
16
|
+
--hg-color-accent-soft-ink: #404040;
|
|
17
|
+
--hg-color-on-accent: #ffffff;
|
|
18
|
+
--hg-color-info: #3b82f6;
|
|
19
|
+
--hg-color-info-soft-bg: #eef4ff;
|
|
20
|
+
--hg-color-info-ink: #2563eb;
|
|
21
|
+
--hg-color-danger: #dc2626;
|
|
22
|
+
--hg-color-danger-soft-bg: #fef2f2;
|
|
23
|
+
--hg-color-danger-ink: #b91c1c; /* proposed */
|
|
24
|
+
--hg-color-success: #16a34a;
|
|
25
|
+
--hg-color-success-soft-bg: #f0fdf4;
|
|
26
|
+
--hg-color-success-ink: #15803d; /* proposed */
|
|
27
|
+
--hg-color-warning: #b45309;
|
|
28
|
+
--hg-color-warning-soft-bg: #fffbeb;
|
|
29
|
+
--hg-color-channel-whatsapp: #25d366; /* proposed */
|
|
30
|
+
--hg-color-backdrop: rgb(0 0 0 / 0.2);
|
|
31
|
+
--hg-color-focus: #3b82f6;
|
|
32
|
+
--hg-color-input-focus-border: #737373; /* proposed */
|
|
33
|
+
--hg-color-ink-soft: color-mix(in oklab, #1f1f1f 85%, transparent);
|
|
34
|
+
--hg-font-family-sans: Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
35
|
+
--hg-font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; /* proposed */
|
|
36
|
+
--hg-font-weight-regular: 400;
|
|
37
|
+
--hg-font-weight-medium: 500;
|
|
38
|
+
--hg-font-weight-semibold: 600;
|
|
39
|
+
--hg-font-weight-bold: 700;
|
|
40
|
+
--hg-font-size-2xs: 10px;
|
|
41
|
+
--hg-font-size-xs: 11px;
|
|
42
|
+
--hg-font-size-badge: 11.5px;
|
|
43
|
+
--hg-font-size-sm: 12px;
|
|
44
|
+
--hg-font-size-label: 12.5px;
|
|
45
|
+
--hg-font-size-md: 13px;
|
|
46
|
+
--hg-font-size-nav: 13.5px;
|
|
47
|
+
--hg-font-size-lg: 14px;
|
|
48
|
+
--hg-font-size-xl: 15px;
|
|
49
|
+
--hg-font-size-2xl: 16px;
|
|
50
|
+
--hg-font-size-3xl: 18px;
|
|
51
|
+
--hg-font-size-4xl: 20px;
|
|
52
|
+
--hg-font-size-page-title-mobile: 22px;
|
|
53
|
+
--hg-font-size-5xl: 24px;
|
|
54
|
+
--hg-font-size-6xl: 28px;
|
|
55
|
+
--hg-font-size-7xl: 32px;
|
|
56
|
+
--hg-font-leading-none: 1;
|
|
57
|
+
--hg-font-leading-tight: 1.25;
|
|
58
|
+
--hg-font-leading-snug: 1.375;
|
|
59
|
+
--hg-font-leading-normal: 1.5;
|
|
60
|
+
--hg-font-leading-relaxed: 1.625;
|
|
61
|
+
--hg-font-tracking-tight: -0.01em;
|
|
62
|
+
--hg-font-tracking-tighter: -0.015em;
|
|
63
|
+
--hg-font-tracking-tightest: -0.02em;
|
|
64
|
+
--hg-font-tracking-body: -0.006em;
|
|
65
|
+
--hg-font-features: "cv11", "ss01";
|
|
66
|
+
--hg-space-0: 0px;
|
|
67
|
+
--hg-space-1: 4px;
|
|
68
|
+
--hg-space-2: 8px;
|
|
69
|
+
--hg-space-3: 12px;
|
|
70
|
+
--hg-space-4: 16px;
|
|
71
|
+
--hg-space-5: 20px;
|
|
72
|
+
--hg-space-6: 24px;
|
|
73
|
+
--hg-space-8: 32px;
|
|
74
|
+
--hg-space-9: 36px;
|
|
75
|
+
--hg-space-10: 40px;
|
|
76
|
+
--hg-space-12: 48px;
|
|
77
|
+
--hg-space-16: 64px;
|
|
78
|
+
--hg-space-0_5: 2px;
|
|
79
|
+
--hg-space-1_5: 6px;
|
|
80
|
+
--hg-space-2_5: 10px;
|
|
81
|
+
--hg-radius-sm: 4px;
|
|
82
|
+
--hg-radius-md: 6px;
|
|
83
|
+
--hg-radius-lg: 8px;
|
|
84
|
+
--hg-radius-xl: 10px;
|
|
85
|
+
--hg-radius-full: 9999px;
|
|
86
|
+
--hg-shadow-card: 0 1px 2px #00000008;
|
|
87
|
+
--hg-shadow-card-hover: 0 1px 3px #0000000f;
|
|
88
|
+
--hg-shadow-popover: 0 0 0 1px #0000000a, 0 8px 24px -6px #0000001f;
|
|
89
|
+
--hg-shadow-focus-input: 0 0 0 3px #0000000d;
|
|
90
|
+
--hg-border-width: 1px;
|
|
91
|
+
--hg-focus-width: 2px;
|
|
92
|
+
--hg-focus-offset: 1px;
|
|
93
|
+
--hg-control-height-sm: 28px;
|
|
94
|
+
--hg-control-height-md: 32px;
|
|
95
|
+
--hg-control-height-lg: 36px;
|
|
96
|
+
--hg-control-height-touch: 44px;
|
|
97
|
+
--hg-control-padding-x: 12px;
|
|
98
|
+
--hg-control-input-padding-x: 10px;
|
|
99
|
+
--hg-control-gap: 6px;
|
|
100
|
+
--hg-control-icon: 16px;
|
|
101
|
+
--hg-control-icon-sm: 14px;
|
|
102
|
+
--hg-control-icon-stroke: 1.6;
|
|
103
|
+
--hg-layout-sidebar-width: 240px;
|
|
104
|
+
--hg-layout-content-max: 1180px;
|
|
105
|
+
--hg-layout-content-narrow: 760px;
|
|
106
|
+
--hg-layout-drawer-width: min(360px, calc(100vw - 48px));
|
|
107
|
+
--hg-layout-nav-drawer-width: min(300px, 85vw);
|
|
108
|
+
--hg-layout-topbar-height: 48px;
|
|
109
|
+
--hg-layout-detail-panel-width: 320px;
|
|
110
|
+
--hg-layout-list-pane-width: 340px;
|
|
111
|
+
--hg-layout-modal-width: 480px;
|
|
112
|
+
--hg-layout-page-padding-x: 40px;
|
|
113
|
+
--hg-breakpoint-sm: 640px;
|
|
114
|
+
--hg-breakpoint-md: 768px;
|
|
115
|
+
--hg-breakpoint-lg: 1024px;
|
|
116
|
+
--hg-breakpoint-xl: 1280px;
|
|
117
|
+
--hg-breakpoint-2xl: 1536px;
|
|
118
|
+
--hg-z-sticky: 20;
|
|
119
|
+
--hg-z-header: 40;
|
|
120
|
+
--hg-z-nav: 50;
|
|
121
|
+
--hg-z-popover: 90;
|
|
122
|
+
--hg-z-modal: 100;
|
|
123
|
+
--hg-z-toast: 200;
|
|
124
|
+
--hg-z-tooltip: 210; /* proposed */
|
|
125
|
+
--hg-motion-duration-fast: 120ms;
|
|
126
|
+
--hg-motion-duration-base: 150ms;
|
|
127
|
+
--hg-motion-duration-slow: 200ms;
|
|
128
|
+
--hg-motion-duration-drawer: 220ms;
|
|
129
|
+
--hg-motion-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
|
|
130
|
+
--hg-motion-ease-emphasized: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
131
|
+
}
|
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
/** Raw token values. */
|
|
2
|
+
export declare const tokens: {
|
|
3
|
+
readonly color: {
|
|
4
|
+
readonly bg: "#fcfcfc";
|
|
5
|
+
readonly sidebar: "#f7f7f7";
|
|
6
|
+
readonly surface: "#ffffff";
|
|
7
|
+
readonly "surface-hover": "#f2f2f2";
|
|
8
|
+
readonly "surface-active": "#ebebeb";
|
|
9
|
+
readonly border: "#ebebeb";
|
|
10
|
+
readonly "border-strong": "#dcdcdc";
|
|
11
|
+
readonly ink: "#1f1f1f";
|
|
12
|
+
readonly muted: "#737373";
|
|
13
|
+
readonly faint: "#a3a3a3";
|
|
14
|
+
readonly accent: "#1f1f1f";
|
|
15
|
+
readonly "accent-hover": "#3a3a3a";
|
|
16
|
+
readonly "accent-soft-bg": "#f2f2f2";
|
|
17
|
+
readonly "accent-soft-ink": "#404040";
|
|
18
|
+
readonly "on-accent": "#ffffff";
|
|
19
|
+
readonly info: "#3b82f6";
|
|
20
|
+
readonly "info-soft-bg": "#eef4ff";
|
|
21
|
+
readonly "info-ink": "#2563eb";
|
|
22
|
+
readonly danger: "#dc2626";
|
|
23
|
+
readonly "danger-soft-bg": "#fef2f2";
|
|
24
|
+
readonly "danger-ink": "#b91c1c";
|
|
25
|
+
readonly success: "#16a34a";
|
|
26
|
+
readonly "success-soft-bg": "#f0fdf4";
|
|
27
|
+
readonly "success-ink": "#15803d";
|
|
28
|
+
readonly warning: "#b45309";
|
|
29
|
+
readonly "warning-soft-bg": "#fffbeb";
|
|
30
|
+
readonly "channel-whatsapp": "#25d366";
|
|
31
|
+
readonly backdrop: "rgb(0 0 0 / 0.2)";
|
|
32
|
+
readonly focus: "#3b82f6";
|
|
33
|
+
readonly "input-focus-border": "#737373";
|
|
34
|
+
readonly "ink-soft": "color-mix(in oklab, #1f1f1f 85%, transparent)";
|
|
35
|
+
};
|
|
36
|
+
readonly font: {
|
|
37
|
+
readonly family: {
|
|
38
|
+
readonly sans: "Inter, \"Inter Fallback\", system-ui, -apple-system, \"Segoe UI\", sans-serif";
|
|
39
|
+
readonly mono: "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, monospace";
|
|
40
|
+
};
|
|
41
|
+
readonly weight: {
|
|
42
|
+
readonly regular: "400";
|
|
43
|
+
readonly medium: "500";
|
|
44
|
+
readonly semibold: "600";
|
|
45
|
+
readonly bold: "700";
|
|
46
|
+
};
|
|
47
|
+
readonly size: {
|
|
48
|
+
readonly "2xs": "10px";
|
|
49
|
+
readonly xs: "11px";
|
|
50
|
+
readonly badge: "11.5px";
|
|
51
|
+
readonly sm: "12px";
|
|
52
|
+
readonly label: "12.5px";
|
|
53
|
+
readonly md: "13px";
|
|
54
|
+
readonly nav: "13.5px";
|
|
55
|
+
readonly lg: "14px";
|
|
56
|
+
readonly xl: "15px";
|
|
57
|
+
readonly "2xl": "16px";
|
|
58
|
+
readonly "3xl": "18px";
|
|
59
|
+
readonly "4xl": "20px";
|
|
60
|
+
readonly "page-title-mobile": "22px";
|
|
61
|
+
readonly "5xl": "24px";
|
|
62
|
+
readonly "6xl": "28px";
|
|
63
|
+
readonly "7xl": "32px";
|
|
64
|
+
};
|
|
65
|
+
readonly leading: {
|
|
66
|
+
readonly none: "1";
|
|
67
|
+
readonly tight: "1.25";
|
|
68
|
+
readonly snug: "1.375";
|
|
69
|
+
readonly normal: "1.5";
|
|
70
|
+
readonly relaxed: "1.625";
|
|
71
|
+
};
|
|
72
|
+
readonly tracking: {
|
|
73
|
+
readonly tight: "-0.01em";
|
|
74
|
+
readonly tighter: "-0.015em";
|
|
75
|
+
readonly tightest: "-0.02em";
|
|
76
|
+
readonly body: "-0.006em";
|
|
77
|
+
};
|
|
78
|
+
readonly features: "\"cv11\", \"ss01\"";
|
|
79
|
+
};
|
|
80
|
+
readonly space: {
|
|
81
|
+
readonly "0": "0px";
|
|
82
|
+
readonly "1": "4px";
|
|
83
|
+
readonly "2": "8px";
|
|
84
|
+
readonly "3": "12px";
|
|
85
|
+
readonly "4": "16px";
|
|
86
|
+
readonly "5": "20px";
|
|
87
|
+
readonly "6": "24px";
|
|
88
|
+
readonly "8": "32px";
|
|
89
|
+
readonly "9": "36px";
|
|
90
|
+
readonly "10": "40px";
|
|
91
|
+
readonly "12": "48px";
|
|
92
|
+
readonly "16": "64px";
|
|
93
|
+
readonly "0.5": "2px";
|
|
94
|
+
readonly "1.5": "6px";
|
|
95
|
+
readonly "2.5": "10px";
|
|
96
|
+
};
|
|
97
|
+
readonly radius: {
|
|
98
|
+
readonly sm: "4px";
|
|
99
|
+
readonly md: "6px";
|
|
100
|
+
readonly lg: "8px";
|
|
101
|
+
readonly xl: "10px";
|
|
102
|
+
readonly full: "9999px";
|
|
103
|
+
};
|
|
104
|
+
readonly shadow: {
|
|
105
|
+
readonly card: "0 1px 2px #00000008";
|
|
106
|
+
readonly "card-hover": "0 1px 3px #0000000f";
|
|
107
|
+
readonly popover: "0 0 0 1px #0000000a, 0 8px 24px -6px #0000001f";
|
|
108
|
+
readonly "focus-input": "0 0 0 3px #0000000d";
|
|
109
|
+
};
|
|
110
|
+
readonly border: {
|
|
111
|
+
readonly width: "1px";
|
|
112
|
+
};
|
|
113
|
+
readonly focus: {
|
|
114
|
+
readonly width: "2px";
|
|
115
|
+
readonly offset: "1px";
|
|
116
|
+
};
|
|
117
|
+
readonly control: {
|
|
118
|
+
readonly "height-sm": "28px";
|
|
119
|
+
readonly "height-md": "32px";
|
|
120
|
+
readonly "height-lg": "36px";
|
|
121
|
+
readonly "height-touch": "44px";
|
|
122
|
+
readonly "padding-x": "12px";
|
|
123
|
+
readonly "input-padding-x": "10px";
|
|
124
|
+
readonly gap: "6px";
|
|
125
|
+
readonly icon: "16px";
|
|
126
|
+
readonly "icon-sm": "14px";
|
|
127
|
+
readonly "icon-stroke": "1.6";
|
|
128
|
+
};
|
|
129
|
+
readonly layout: {
|
|
130
|
+
readonly "sidebar-width": "240px";
|
|
131
|
+
readonly "content-max": "1180px";
|
|
132
|
+
readonly "content-narrow": "760px";
|
|
133
|
+
readonly "drawer-width": "min(360px, calc(100vw - 48px))";
|
|
134
|
+
readonly "nav-drawer-width": "min(300px, 85vw)";
|
|
135
|
+
readonly "topbar-height": "48px";
|
|
136
|
+
readonly "detail-panel-width": "320px";
|
|
137
|
+
readonly "list-pane-width": "340px";
|
|
138
|
+
readonly "modal-width": "480px";
|
|
139
|
+
readonly "page-padding-x": "40px";
|
|
140
|
+
};
|
|
141
|
+
readonly breakpoint: {
|
|
142
|
+
readonly sm: "640px";
|
|
143
|
+
readonly md: "768px";
|
|
144
|
+
readonly lg: "1024px";
|
|
145
|
+
readonly xl: "1280px";
|
|
146
|
+
readonly "2xl": "1536px";
|
|
147
|
+
};
|
|
148
|
+
readonly z: {
|
|
149
|
+
readonly sticky: "20";
|
|
150
|
+
readonly header: "40";
|
|
151
|
+
readonly nav: "50";
|
|
152
|
+
readonly popover: "90";
|
|
153
|
+
readonly modal: "100";
|
|
154
|
+
readonly toast: "200";
|
|
155
|
+
readonly tooltip: "210";
|
|
156
|
+
};
|
|
157
|
+
readonly motion: {
|
|
158
|
+
readonly "duration-fast": "120ms";
|
|
159
|
+
readonly "duration-base": "150ms";
|
|
160
|
+
readonly "duration-slow": "200ms";
|
|
161
|
+
readonly "duration-drawer": "220ms";
|
|
162
|
+
readonly "ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
163
|
+
readonly "ease-emphasized": "cubic-bezier(0.2, 0.8, 0.2, 1)";
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
/** CSS custom property references, e.g. vars.color.ink === "var(--hg-color-ink)". */
|
|
167
|
+
export declare const vars: {
|
|
168
|
+
readonly color: {
|
|
169
|
+
readonly bg: "var(--hg-color-bg)";
|
|
170
|
+
readonly sidebar: "var(--hg-color-sidebar)";
|
|
171
|
+
readonly surface: "var(--hg-color-surface)";
|
|
172
|
+
readonly "surface-hover": "var(--hg-color-surface-hover)";
|
|
173
|
+
readonly "surface-active": "var(--hg-color-surface-active)";
|
|
174
|
+
readonly border: "var(--hg-color-border)";
|
|
175
|
+
readonly "border-strong": "var(--hg-color-border-strong)";
|
|
176
|
+
readonly ink: "var(--hg-color-ink)";
|
|
177
|
+
readonly muted: "var(--hg-color-muted)";
|
|
178
|
+
readonly faint: "var(--hg-color-faint)";
|
|
179
|
+
readonly accent: "var(--hg-color-accent)";
|
|
180
|
+
readonly "accent-hover": "var(--hg-color-accent-hover)";
|
|
181
|
+
readonly "accent-soft-bg": "var(--hg-color-accent-soft-bg)";
|
|
182
|
+
readonly "accent-soft-ink": "var(--hg-color-accent-soft-ink)";
|
|
183
|
+
readonly "on-accent": "var(--hg-color-on-accent)";
|
|
184
|
+
readonly info: "var(--hg-color-info)";
|
|
185
|
+
readonly "info-soft-bg": "var(--hg-color-info-soft-bg)";
|
|
186
|
+
readonly "info-ink": "var(--hg-color-info-ink)";
|
|
187
|
+
readonly danger: "var(--hg-color-danger)";
|
|
188
|
+
readonly "danger-soft-bg": "var(--hg-color-danger-soft-bg)";
|
|
189
|
+
readonly "danger-ink": "var(--hg-color-danger-ink)";
|
|
190
|
+
readonly success: "var(--hg-color-success)";
|
|
191
|
+
readonly "success-soft-bg": "var(--hg-color-success-soft-bg)";
|
|
192
|
+
readonly "success-ink": "var(--hg-color-success-ink)";
|
|
193
|
+
readonly warning: "var(--hg-color-warning)";
|
|
194
|
+
readonly "warning-soft-bg": "var(--hg-color-warning-soft-bg)";
|
|
195
|
+
readonly "channel-whatsapp": "var(--hg-color-channel-whatsapp)";
|
|
196
|
+
readonly backdrop: "var(--hg-color-backdrop)";
|
|
197
|
+
readonly focus: "var(--hg-color-focus)";
|
|
198
|
+
readonly "input-focus-border": "var(--hg-color-input-focus-border)";
|
|
199
|
+
readonly "ink-soft": "var(--hg-color-ink-soft)";
|
|
200
|
+
};
|
|
201
|
+
readonly font: {
|
|
202
|
+
readonly family: {
|
|
203
|
+
readonly sans: "var(--hg-font-family-sans)";
|
|
204
|
+
readonly mono: "var(--hg-font-family-mono)";
|
|
205
|
+
};
|
|
206
|
+
readonly weight: {
|
|
207
|
+
readonly regular: "var(--hg-font-weight-regular)";
|
|
208
|
+
readonly medium: "var(--hg-font-weight-medium)";
|
|
209
|
+
readonly semibold: "var(--hg-font-weight-semibold)";
|
|
210
|
+
readonly bold: "var(--hg-font-weight-bold)";
|
|
211
|
+
};
|
|
212
|
+
readonly size: {
|
|
213
|
+
readonly "2xs": "var(--hg-font-size-2xs)";
|
|
214
|
+
readonly xs: "var(--hg-font-size-xs)";
|
|
215
|
+
readonly badge: "var(--hg-font-size-badge)";
|
|
216
|
+
readonly sm: "var(--hg-font-size-sm)";
|
|
217
|
+
readonly label: "var(--hg-font-size-label)";
|
|
218
|
+
readonly md: "var(--hg-font-size-md)";
|
|
219
|
+
readonly nav: "var(--hg-font-size-nav)";
|
|
220
|
+
readonly lg: "var(--hg-font-size-lg)";
|
|
221
|
+
readonly xl: "var(--hg-font-size-xl)";
|
|
222
|
+
readonly "2xl": "var(--hg-font-size-2xl)";
|
|
223
|
+
readonly "3xl": "var(--hg-font-size-3xl)";
|
|
224
|
+
readonly "4xl": "var(--hg-font-size-4xl)";
|
|
225
|
+
readonly "page-title-mobile": "var(--hg-font-size-page-title-mobile)";
|
|
226
|
+
readonly "5xl": "var(--hg-font-size-5xl)";
|
|
227
|
+
readonly "6xl": "var(--hg-font-size-6xl)";
|
|
228
|
+
readonly "7xl": "var(--hg-font-size-7xl)";
|
|
229
|
+
};
|
|
230
|
+
readonly leading: {
|
|
231
|
+
readonly none: "var(--hg-font-leading-none)";
|
|
232
|
+
readonly tight: "var(--hg-font-leading-tight)";
|
|
233
|
+
readonly snug: "var(--hg-font-leading-snug)";
|
|
234
|
+
readonly normal: "var(--hg-font-leading-normal)";
|
|
235
|
+
readonly relaxed: "var(--hg-font-leading-relaxed)";
|
|
236
|
+
};
|
|
237
|
+
readonly tracking: {
|
|
238
|
+
readonly tight: "var(--hg-font-tracking-tight)";
|
|
239
|
+
readonly tighter: "var(--hg-font-tracking-tighter)";
|
|
240
|
+
readonly tightest: "var(--hg-font-tracking-tightest)";
|
|
241
|
+
readonly body: "var(--hg-font-tracking-body)";
|
|
242
|
+
};
|
|
243
|
+
readonly features: "var(--hg-font-features)";
|
|
244
|
+
};
|
|
245
|
+
readonly space: {
|
|
246
|
+
readonly "0": "var(--hg-space-0)";
|
|
247
|
+
readonly "1": "var(--hg-space-1)";
|
|
248
|
+
readonly "2": "var(--hg-space-2)";
|
|
249
|
+
readonly "3": "var(--hg-space-3)";
|
|
250
|
+
readonly "4": "var(--hg-space-4)";
|
|
251
|
+
readonly "5": "var(--hg-space-5)";
|
|
252
|
+
readonly "6": "var(--hg-space-6)";
|
|
253
|
+
readonly "8": "var(--hg-space-8)";
|
|
254
|
+
readonly "9": "var(--hg-space-9)";
|
|
255
|
+
readonly "10": "var(--hg-space-10)";
|
|
256
|
+
readonly "12": "var(--hg-space-12)";
|
|
257
|
+
readonly "16": "var(--hg-space-16)";
|
|
258
|
+
readonly "0.5": "var(--hg-space-0_5)";
|
|
259
|
+
readonly "1.5": "var(--hg-space-1_5)";
|
|
260
|
+
readonly "2.5": "var(--hg-space-2_5)";
|
|
261
|
+
};
|
|
262
|
+
readonly radius: {
|
|
263
|
+
readonly sm: "var(--hg-radius-sm)";
|
|
264
|
+
readonly md: "var(--hg-radius-md)";
|
|
265
|
+
readonly lg: "var(--hg-radius-lg)";
|
|
266
|
+
readonly xl: "var(--hg-radius-xl)";
|
|
267
|
+
readonly full: "var(--hg-radius-full)";
|
|
268
|
+
};
|
|
269
|
+
readonly shadow: {
|
|
270
|
+
readonly card: "var(--hg-shadow-card)";
|
|
271
|
+
readonly "card-hover": "var(--hg-shadow-card-hover)";
|
|
272
|
+
readonly popover: "var(--hg-shadow-popover)";
|
|
273
|
+
readonly "focus-input": "var(--hg-shadow-focus-input)";
|
|
274
|
+
};
|
|
275
|
+
readonly border: {
|
|
276
|
+
readonly width: "var(--hg-border-width)";
|
|
277
|
+
};
|
|
278
|
+
readonly focus: {
|
|
279
|
+
readonly width: "var(--hg-focus-width)";
|
|
280
|
+
readonly offset: "var(--hg-focus-offset)";
|
|
281
|
+
};
|
|
282
|
+
readonly control: {
|
|
283
|
+
readonly "height-sm": "var(--hg-control-height-sm)";
|
|
284
|
+
readonly "height-md": "var(--hg-control-height-md)";
|
|
285
|
+
readonly "height-lg": "var(--hg-control-height-lg)";
|
|
286
|
+
readonly "height-touch": "var(--hg-control-height-touch)";
|
|
287
|
+
readonly "padding-x": "var(--hg-control-padding-x)";
|
|
288
|
+
readonly "input-padding-x": "var(--hg-control-input-padding-x)";
|
|
289
|
+
readonly gap: "var(--hg-control-gap)";
|
|
290
|
+
readonly icon: "var(--hg-control-icon)";
|
|
291
|
+
readonly "icon-sm": "var(--hg-control-icon-sm)";
|
|
292
|
+
readonly "icon-stroke": "var(--hg-control-icon-stroke)";
|
|
293
|
+
};
|
|
294
|
+
readonly layout: {
|
|
295
|
+
readonly "sidebar-width": "var(--hg-layout-sidebar-width)";
|
|
296
|
+
readonly "content-max": "var(--hg-layout-content-max)";
|
|
297
|
+
readonly "content-narrow": "var(--hg-layout-content-narrow)";
|
|
298
|
+
readonly "drawer-width": "var(--hg-layout-drawer-width)";
|
|
299
|
+
readonly "nav-drawer-width": "var(--hg-layout-nav-drawer-width)";
|
|
300
|
+
readonly "topbar-height": "var(--hg-layout-topbar-height)";
|
|
301
|
+
readonly "detail-panel-width": "var(--hg-layout-detail-panel-width)";
|
|
302
|
+
readonly "list-pane-width": "var(--hg-layout-list-pane-width)";
|
|
303
|
+
readonly "modal-width": "var(--hg-layout-modal-width)";
|
|
304
|
+
readonly "page-padding-x": "var(--hg-layout-page-padding-x)";
|
|
305
|
+
};
|
|
306
|
+
readonly breakpoint: {
|
|
307
|
+
readonly sm: "var(--hg-breakpoint-sm)";
|
|
308
|
+
readonly md: "var(--hg-breakpoint-md)";
|
|
309
|
+
readonly lg: "var(--hg-breakpoint-lg)";
|
|
310
|
+
readonly xl: "var(--hg-breakpoint-xl)";
|
|
311
|
+
readonly "2xl": "var(--hg-breakpoint-2xl)";
|
|
312
|
+
};
|
|
313
|
+
readonly z: {
|
|
314
|
+
readonly sticky: "var(--hg-z-sticky)";
|
|
315
|
+
readonly header: "var(--hg-z-header)";
|
|
316
|
+
readonly nav: "var(--hg-z-nav)";
|
|
317
|
+
readonly popover: "var(--hg-z-popover)";
|
|
318
|
+
readonly modal: "var(--hg-z-modal)";
|
|
319
|
+
readonly toast: "var(--hg-z-toast)";
|
|
320
|
+
readonly tooltip: "var(--hg-z-tooltip)";
|
|
321
|
+
};
|
|
322
|
+
readonly motion: {
|
|
323
|
+
readonly "duration-fast": "var(--hg-motion-duration-fast)";
|
|
324
|
+
readonly "duration-base": "var(--hg-motion-duration-base)";
|
|
325
|
+
readonly "duration-slow": "var(--hg-motion-duration-slow)";
|
|
326
|
+
readonly "duration-drawer": "var(--hg-motion-duration-drawer)";
|
|
327
|
+
readonly "ease-standard": "var(--hg-motion-ease-standard)";
|
|
328
|
+
readonly "ease-emphasized": "var(--hg-motion-ease-emphasized)";
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
export type TokenEvidence = "observed" | "derived" | "proposed";
|
|
332
|
+
export interface TokenMeta {
|
|
333
|
+
evidence: TokenEvidence;
|
|
334
|
+
live?: string;
|
|
335
|
+
description?: string;
|
|
336
|
+
}
|
|
337
|
+
/** Provenance for every token, keyed by dotted path. */
|
|
338
|
+
export declare const tokenMeta: Record<string, TokenMeta>;
|
|
339
|
+
export type Tokens = typeof tokens;
|