@kabobcompany/tokens 0.0.0-stage → 0.2.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/dist/accent.css +55 -0
- package/dist/tokens.css +202 -0
- package/dist/tokens.dark.css +39 -0
- package/package.json +31 -4
- package/scale.json +25 -0
- package/tokens.dark.json +113 -0
- package/tokens.json +761 -0
- package/README.md +0 -3
package/dist/accent.css
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, generated by build.mjs.
|
|
3
|
+
* Theme accent: <html style="--kb-accent:#ff888b"> or <section data-accent style="--kb-accent:…">
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
:root, [data-accent] {
|
|
7
|
+
--kb-color-brand-primary: var(--kb-accent, #09a8be);
|
|
8
|
+
--kb-color-brand-primary-hover: color-mix(in srgb, var(--kb-color-brand-primary) 88%, #000);
|
|
9
|
+
--kb-color-brand-primary-active: color-mix(in srgb, var(--kb-color-brand-primary) 76%, #000);
|
|
10
|
+
--kb-color-brand-primary-tint: color-mix(in srgb, var(--kb-color-brand-primary) 14%, #fff);
|
|
11
|
+
--kb-color-brand-primary-contrast: var(--kb-accent-contrast, #fff);
|
|
12
|
+
}
|
|
13
|
+
[data-theme="dark"], [data-theme="dark"] [data-accent], [data-accent] [data-theme="dark"] {
|
|
14
|
+
--kb-color-brand-primary-tint: color-mix(in srgb, var(--kb-color-brand-primary) 20%, #2d303a);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Accent-dependent semantics, re-evaluated at each [data-accent] element. */
|
|
18
|
+
[data-accent] {
|
|
19
|
+
--kb-color-text-brand: var(--kb-color-brand-primary);
|
|
20
|
+
--kb-color-text-on-brand: var(--kb-color-brand-primary-contrast);
|
|
21
|
+
--kb-color-bg-selected: var(--kb-color-brand-primary-tint);
|
|
22
|
+
--kb-color-border-focus: var(--kb-color-brand-primary);
|
|
23
|
+
--kb-color-action-primary: var(--kb-color-brand-primary);
|
|
24
|
+
--kb-color-action-primary-hover: var(--kb-color-brand-primary-hover);
|
|
25
|
+
--kb-color-action-primary-active: var(--kb-color-brand-primary-active);
|
|
26
|
+
--kb-color-action-accent: var(--kb-color-brand-purple);
|
|
27
|
+
--kb-color-action-control-on: var(--kb-color-brand-primary);
|
|
28
|
+
}
|
|
29
|
+
[data-theme="dark"][data-accent], [data-theme="dark"] [data-accent] {
|
|
30
|
+
--kb-color-bg-selected: color-mix(in srgb, var(--kb-color-brand-primary) 16%, transparent);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Kiosk scale: ticket machines, calling boards, signage. Enlarges type and controls. */
|
|
34
|
+
[data-scale="kiosk"] {
|
|
35
|
+
--kb-font-size-2xs: 16px;
|
|
36
|
+
--kb-font-size-xs: 20px;
|
|
37
|
+
--kb-font-size-sm: 22px;
|
|
38
|
+
--kb-font-size-md: 24px;
|
|
39
|
+
--kb-font-size-lg: 30px;
|
|
40
|
+
--kb-font-size-xl: 36px;
|
|
41
|
+
--kb-font-size-2xl: 48px;
|
|
42
|
+
--kb-size-button-sm: 56px;
|
|
43
|
+
--kb-size-button-md: 64px;
|
|
44
|
+
--kb-size-button-lg: 72px;
|
|
45
|
+
--kb-size-input: 64px;
|
|
46
|
+
--kb-radius-sm: 8px;
|
|
47
|
+
--kb-radius-md: 12px;
|
|
48
|
+
--kb-radius-lg: 16px;
|
|
49
|
+
--kb-font-size-3xl: 64px;
|
|
50
|
+
--kb-font-size-4xl: 96px;
|
|
51
|
+
--kb-font-size-display: 192px;
|
|
52
|
+
--kb-size-screen-header: 120px;
|
|
53
|
+
--kb-size-queue-item: 80px;
|
|
54
|
+
--kb-size-option-card: 96px;
|
|
55
|
+
}
|
package/dist/tokens.css
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--kb-color-brand-primary: #09a8be; /** Default accent. Consumers override with --kb-accent; see accent.css. */
|
|
7
|
+
--kb-color-brand-primary-hover: #0894a8; /** Derived; per-brand values generated in dist/brands.css. */
|
|
8
|
+
--kb-color-brand-primary-active: #077f90; /** Derived. */
|
|
9
|
+
--kb-color-brand-primary-tint: #def2f4; /** Row hover / selected tint. */
|
|
10
|
+
--kb-color-brand-primary-contrast: #ffffff; /** Text/icon colour on a primary fill. */
|
|
11
|
+
--kb-color-brand-purple: #6f6bdb; /** Secondary CTA (e.g. 新增訂單 rounded button). */
|
|
12
|
+
--kb-color-slate-0: #ffffff;
|
|
13
|
+
--kb-color-slate-25: #f2f2f2; /** Dialog panel border. */
|
|
14
|
+
--kb-color-slate-40: #fafafa; /** Inset panel inside popovers (collapsible filter section). */
|
|
15
|
+
--kb-color-slate-50: #f5fafa; /** Menu item text on dark. */
|
|
16
|
+
--kb-color-slate-75: #f6fafa; /** Folder card / count pill bg. */
|
|
17
|
+
--kb-color-slate-90: #f1f7fa; /** Faint dividers, popover border. */
|
|
18
|
+
--kb-color-slate-100: #f5f9fb; /** List row bg. */
|
|
19
|
+
--kb-color-slate-110: #e7f1f7; /** Info panel bg (Info & Remote Access). */
|
|
20
|
+
--kb-color-slate-120: #e7ebed; /** Onboarding stepper rail bg. */
|
|
21
|
+
--kb-color-slate-125: #f3f7fa; /** Read-only / disabled input bg. */
|
|
22
|
+
--kb-color-slate-130: #c9d9e3; /** Empty signal dot. Derived from #dceaf2. */
|
|
23
|
+
--kb-color-slate-150: #dceaf2; /** App bar divider. */
|
|
24
|
+
--kb-color-slate-200: #deebf2; /** Borders, switch track, page header band. Figma style 'bgc'. */
|
|
25
|
+
--kb-color-slate-300: #c2d2db; /** Input placeholder. */
|
|
26
|
+
--kb-color-slate-350: #a1bdce; /** Input suffix text (秒), info icon glyph. */
|
|
27
|
+
--kb-color-slate-400: #b4c6d1; /** Public pill bg. */
|
|
28
|
+
--kb-color-slate-500: #a4b0b7; /** Muted text, table column labels, count pills. */
|
|
29
|
+
--kb-color-slate-550: #8d9da7; /** Form field labels (裝置設定 modal). */
|
|
30
|
+
--kb-color-slate-600: #899dab; /** Tab subtitle (used at 50% opacity in Figma). */
|
|
31
|
+
--kb-color-slate-650: #6d8796; /** Subtle control text (進階選項 trigger, shown at 50%). */
|
|
32
|
+
--kb-color-slate-800: #4a616f; /** Primary text on light UI; secondary button bg; Private pill. */
|
|
33
|
+
--kb-color-slate-900: #2d303a; /** Menu / tooltip surface. */
|
|
34
|
+
--kb-color-grey-200: #d8d8d8; /** Menu item hover (used at 20% opacity). */
|
|
35
|
+
--kb-color-grey-300: #cccccc; /** Editor title text. */
|
|
36
|
+
--kb-color-grey-400: #999999; /** Chip text (dark). */
|
|
37
|
+
--kb-color-grey-450: #7b8084; /** Editor muted text (Full length). */
|
|
38
|
+
--kb-color-grey-500: #808080; /** Inactive tab text (dark). */
|
|
39
|
+
--kb-color-grey-550: #5b6166; /** Editor input border / panel divider. */
|
|
40
|
+
--kb-color-grey-600: #42464c; /** Editor header, active segmented item. */
|
|
41
|
+
--kb-color-grey-620: #373a3d; /** Editor input bg. */
|
|
42
|
+
--kb-color-grey-640: #41474b; /** Media picker card. */
|
|
43
|
+
--kb-color-grey-650: #404245; /** Settings section block inside the editor sidebar. */
|
|
44
|
+
--kb-color-grey-700: #393b3e; /** Chip / pill bg (dark). */
|
|
45
|
+
--kb-color-grey-750: #383b3f; /** Editor tool palette / layers / settings sidebar. */
|
|
46
|
+
--kb-color-grey-800: #36393c; /** Icon button bg (dark). */
|
|
47
|
+
--kb-color-grey-850: #323539; /** Editor content sidebar. */
|
|
48
|
+
--kb-color-grey-900: #2a2d32; /** Segmented control track. */
|
|
49
|
+
--kb-color-grey-925: #20242b; /** Zoom control. */
|
|
50
|
+
--kb-color-grey-950: #1d1f21; /** Slide card body (editor content panel). */
|
|
51
|
+
--kb-color-status-success: #8cc040; /** Online / published row bar. */
|
|
52
|
+
--kb-color-status-warning: #ff961c; /** Sampled from screenshot; verify with design. */
|
|
53
|
+
--kb-color-status-error: #f5736c; /** Danger buttons (刪除裝置 / 停用裝置) in 裝置設定 modal. Replaces earlier sampled #e0533f. */
|
|
54
|
+
--kb-color-status-rejected: #d31d80; /** 被拒絕 badge text. */
|
|
55
|
+
--kb-color-status-rejected-bg: #f5e2ed; /** 被拒絕 badge bg. */
|
|
56
|
+
--kb-color-status-pending: #f2c94c; /** Sampled from screenshot (loading spinner); verify. */
|
|
57
|
+
--kb-color-status-error-bg: #f9f1f1; /** Outline danger button bg. */
|
|
58
|
+
--kb-color-text-pending: #a67c00; /** Readable text tone for the pending (yellow) status. */
|
|
59
|
+
--kb-color-bg-menu-hover: rgba(216, 216, 216, 0.2);
|
|
60
|
+
--kb-color-bg-info-panel: rgba(9, 168, 190, 0.05); /** Key-value summary strip at top of 裝置設定. */
|
|
61
|
+
--kb-color-bg-overlay: rgba(0, 0, 0, 0.5); /** Modal backdrop (popup bg: black @ 50%). */
|
|
62
|
+
--kb-color-bg-scrim: rgba(0, 0, 0, 0.5); /** Thumbnail overlays / preview buttons. */
|
|
63
|
+
--kb-color-bg-rail-dark: #363c40; /** Dark list rail (queue rail). Same in both themes. */
|
|
64
|
+
--kb-color-border-zoom: #333842;
|
|
65
|
+
--kb-color-action-secondary-hover: #3d515d; /** Derived. */
|
|
66
|
+
--kb-color-action-accent-hover: #5d59c9; /** Derived. */
|
|
67
|
+
--kb-color-action-danger-hover: #e2574f; /** Derived. */
|
|
68
|
+
--kb-color-accent-blue: #005fdb; /** Schedule card: Wake. */
|
|
69
|
+
--kb-color-accent-green: #009f35; /** Schedule card: Reboot. */
|
|
70
|
+
--kb-color-accent-violet: #5400db; /** Schedule card: Sleep. */
|
|
71
|
+
--kb-color-accent-orange: #ff9149; /** Onboarding STEP tag. */
|
|
72
|
+
--kb-color-accent-yellow: #ffd43f; /** NEW tag. */
|
|
73
|
+
--kb-space-1: 4px;
|
|
74
|
+
--kb-space-2: 8px;
|
|
75
|
+
--kb-space-3: 12px;
|
|
76
|
+
--kb-space-4: 16px;
|
|
77
|
+
--kb-space-5: 20px;
|
|
78
|
+
--kb-space-6: 24px;
|
|
79
|
+
--kb-space-8: 32px;
|
|
80
|
+
--kb-space-10: 40px;
|
|
81
|
+
--kb-space-12: 48px;
|
|
82
|
+
--kb-radius-sm: 3px; /** Default: buttons, inputs, rows, menus. */
|
|
83
|
+
--kb-radius-md: 5px; /** Segmented control track, dialog panel. */
|
|
84
|
+
--kb-radius-lg: 10px;
|
|
85
|
+
--kb-radius-pill: 14px; /** Status badges. */
|
|
86
|
+
--kb-radius-round: 16px; /** Rounded buttons. */
|
|
87
|
+
--kb-radius-full: 9999px;
|
|
88
|
+
--kb-radius-md-lg: 8px; /** Option cards, onboarding steps. */
|
|
89
|
+
--kb-size-control: 16px; /** Checkbox / radio / switch height. */
|
|
90
|
+
--kb-size-switch-width: 28px;
|
|
91
|
+
--kb-size-icon-sm: 16px;
|
|
92
|
+
--kb-size-icon-md: 20px;
|
|
93
|
+
--kb-size-icon-lg: 24px;
|
|
94
|
+
--kb-size-button-sm: 32px;
|
|
95
|
+
--kb-size-button-md: 36px;
|
|
96
|
+
--kb-size-button-lg: 44px;
|
|
97
|
+
--kb-size-row: 64px;
|
|
98
|
+
--kb-size-appbar: 68px;
|
|
99
|
+
--kb-size-editor-bar: 60px;
|
|
100
|
+
--kb-size-rail: 60px;
|
|
101
|
+
--kb-size-sidenav: 220px;
|
|
102
|
+
--kb-size-input: 44px; /** Form input height in modals. */
|
|
103
|
+
--kb-size-dialog-width: 840px;
|
|
104
|
+
--kb-size-dialog-action: 189px; /** Footer button width. */
|
|
105
|
+
--kb-size-input-xl: 50px; /** Mobile input / button height. */
|
|
106
|
+
--kb-size-tool: 48px; /** Editor tool button. */
|
|
107
|
+
--kb-size-chip: 31px;
|
|
108
|
+
--kb-size-option: 34px; /** Listbox option row. */
|
|
109
|
+
--kb-size-queue-item: 60px;
|
|
110
|
+
--kb-size-option-card: 72px;
|
|
111
|
+
--kb-size-row-sm: 48px;
|
|
112
|
+
--kb-size-screen-header: 92px; /** Kiosk/signage header; 120px under kiosk scale. */
|
|
113
|
+
--kb-size-form-label: 160px; /** Label column in FormSection rows and Timeline track labels. */
|
|
114
|
+
--kb-size-layout-thumb: 112px;
|
|
115
|
+
--kb-size-drawer-sm: 360px;
|
|
116
|
+
--kb-size-drawer-md: 480px;
|
|
117
|
+
--kb-size-drawer-lg: 720px;
|
|
118
|
+
--kb-font-family-sans: 'Noto Sans TC', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
119
|
+
--kb-font-family-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
120
|
+
--kb-font-size-2xs: 11px;
|
|
121
|
+
--kb-font-size-xs: 12px; /** Default UI size. */
|
|
122
|
+
--kb-font-size-sm: 13px;
|
|
123
|
+
--kb-font-size-md: 14px;
|
|
124
|
+
--kb-font-size-lg: 16px;
|
|
125
|
+
--kb-font-size-xl: 20px;
|
|
126
|
+
--kb-font-size-2xl: 30px; /** Product wordmark. */
|
|
127
|
+
--kb-font-size-3xs: 10px; /** Calendar bars, slide chips, media notice. Minimum size. */
|
|
128
|
+
--kb-font-size-3xl: 48px;
|
|
129
|
+
--kb-font-size-4xl: 72px;
|
|
130
|
+
--kb-font-size-display: 120px; /** Queue/ticket number on displays. */
|
|
131
|
+
--kb-font-weight-regular: 400;
|
|
132
|
+
--kb-font-weight-medium: 500;
|
|
133
|
+
--kb-font-weight-bold: 700;
|
|
134
|
+
--kb-font-line-height-tight: 1.1;
|
|
135
|
+
--kb-font-line-height-snug: 1.25;
|
|
136
|
+
--kb-font-line-height-normal: 1.5;
|
|
137
|
+
--kb-shadow-sm: 0 1px 2px rgba(45, 48, 58, 0.08);
|
|
138
|
+
--kb-shadow-md: 0 4px 12px rgba(45, 48, 58, 0.16);
|
|
139
|
+
--kb-shadow-lg: 0 12px 32px rgba(45, 48, 58, 0.24);
|
|
140
|
+
--kb-shadow-dialog: 0 2px 8px rgba(0, 0, 0, 0.06); /** Lightbox panel. */
|
|
141
|
+
--kb-shadow-popover: 0 2px 4px rgba(74, 97, 111, 0.1); /** Advanced search dropdown panel. */
|
|
142
|
+
--kb-shadow-tile: 0 0 12px rgba(141, 157, 167, 0.2); /** Soft all-round shadow for kiosk tiles and display cards. */
|
|
143
|
+
--kb-motion-duration-fast: 120ms;
|
|
144
|
+
--kb-motion-duration-base: 200ms;
|
|
145
|
+
--kb-motion-duration-slow: 1200ms; /** Attention pulse (calling counter). */
|
|
146
|
+
--kb-opacity-muted: 0.5;
|
|
147
|
+
--kb-opacity-disabled: 0.5;
|
|
148
|
+
--kb-opacity-faint: 0.2;
|
|
149
|
+
--kb-color-text-primary: var(--kb-color-slate-800);
|
|
150
|
+
--kb-color-text-secondary: var(--kb-color-slate-600);
|
|
151
|
+
--kb-color-text-muted: var(--kb-color-slate-500);
|
|
152
|
+
--kb-color-text-inverse: var(--kb-color-slate-0);
|
|
153
|
+
--kb-color-text-brand: var(--kb-color-brand-primary);
|
|
154
|
+
--kb-color-text-on-brand: var(--kb-color-brand-primary-contrast);
|
|
155
|
+
--kb-color-text-on-menu: var(--kb-color-slate-50);
|
|
156
|
+
--kb-color-text-error: var(--kb-color-status-error);
|
|
157
|
+
--kb-color-text-label: var(--kb-color-slate-550); /** Form field labels, 12px bold. */
|
|
158
|
+
--kb-color-text-placeholder: var(--kb-color-slate-300);
|
|
159
|
+
--kb-color-text-suffix: var(--kb-color-slate-350);
|
|
160
|
+
--kb-color-text-subtle: var(--kb-color-slate-650); /** Tertiary control text. */
|
|
161
|
+
--kb-color-text-on-dark: var(--kb-color-slate-0);
|
|
162
|
+
--kb-color-text-on-status: var(--kb-color-slate-900); /** Text on success/warning/error/pending fills (white fails contrast on these). */
|
|
163
|
+
--kb-color-bg-canvas: var(--kb-color-slate-0); /** Page background. */
|
|
164
|
+
--kb-color-bg-surface: var(--kb-color-slate-0); /** Cards, inputs, app bar. */
|
|
165
|
+
--kb-color-bg-subtle: var(--kb-color-slate-100); /** List rows. */
|
|
166
|
+
--kb-color-bg-muted: var(--kb-color-slate-75); /** Folder cards, count pills. */
|
|
167
|
+
--kb-color-bg-band: var(--kb-color-slate-200); /** Page header band. */
|
|
168
|
+
--kb-color-bg-selected: var(--kb-color-brand-primary-tint); /** Row hover / active nav item. */
|
|
169
|
+
--kb-color-bg-menu: var(--kb-color-slate-900); /** Dropdown menus & tooltips (dark in both modes). */
|
|
170
|
+
--kb-color-bg-track: var(--kb-color-grey-900); /** Segmented control track. */
|
|
171
|
+
--kb-color-bg-track-active: var(--kb-color-grey-600);
|
|
172
|
+
--kb-color-bg-chip: var(--kb-color-grey-700);
|
|
173
|
+
--kb-color-bg-disabled: var(--kb-color-slate-125); /** Read-only inputs. */
|
|
174
|
+
--kb-color-bg-info-icon: var(--kb-color-slate-150);
|
|
175
|
+
--kb-color-bg-popover: var(--kb-color-slate-0);
|
|
176
|
+
--kb-color-bg-inset: var(--kb-color-slate-40); /** Nested panel bg inside a popover. */
|
|
177
|
+
--kb-color-bg-panel: var(--kb-color-slate-110); /** Tinted info panel inside dialogs. */
|
|
178
|
+
--kb-color-bg-rail: var(--kb-color-slate-120); /** Stepper rail. */
|
|
179
|
+
--kb-color-bg-input: var(--kb-color-slate-0); /** Text inputs / selects. */
|
|
180
|
+
--kb-color-bg-sidebar: var(--kb-color-slate-0); /** Editor sidebars (dark override). */
|
|
181
|
+
--kb-color-bg-section: var(--kb-color-slate-100); /** Grouped settings block (dark override). */
|
|
182
|
+
--kb-color-bg-media-card: var(--kb-color-grey-640); /** Media picker card — dark in both themes. */
|
|
183
|
+
--kb-color-bg-slide-card: var(--kb-color-grey-950); /** Slide card — dark in both themes. */
|
|
184
|
+
--kb-color-bg-zoom: var(--kb-color-grey-925);
|
|
185
|
+
--kb-color-border-default: var(--kb-color-slate-200);
|
|
186
|
+
--kb-color-border-divider: var(--kb-color-slate-150);
|
|
187
|
+
--kb-color-border-focus: var(--kb-color-brand-primary);
|
|
188
|
+
--kb-color-border-subtle: var(--kb-color-slate-25); /** Dialog panel. */
|
|
189
|
+
--kb-color-border-faint: var(--kb-color-slate-90); /** Toolbar dividers, popover border. */
|
|
190
|
+
--kb-color-border-input: var(--kb-color-slate-200);
|
|
191
|
+
--kb-color-border-input-hover: var(--kb-color-slate-400); /** Input / select hover border. */
|
|
192
|
+
--kb-color-action-primary: var(--kb-color-brand-primary);
|
|
193
|
+
--kb-color-action-primary-hover: var(--kb-color-brand-primary-hover);
|
|
194
|
+
--kb-color-action-primary-active: var(--kb-color-brand-primary-active);
|
|
195
|
+
--kb-color-action-secondary: var(--kb-color-slate-800);
|
|
196
|
+
--kb-color-action-accent: var(--kb-color-brand-purple);
|
|
197
|
+
--kb-color-action-danger: var(--kb-color-status-error);
|
|
198
|
+
--kb-color-action-control-off: var(--kb-color-slate-200); /** Unchecked control border / switch track. */
|
|
199
|
+
--kb-color-action-control-on: var(--kb-color-brand-primary);
|
|
200
|
+
--kb-color-action-danger-soft: var(--kb-color-status-error-bg);
|
|
201
|
+
--kb-color-highlight-own: var(--kb-color-accent-blue); /** 'Yours' marker in number boards. */
|
|
202
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
:root[data-theme="dark"], [data-theme="dark"] {
|
|
6
|
+
--kb-color-text-label: rgba(222, 235, 242, 0.4); /** Form field labels, 12px bold. */
|
|
7
|
+
--kb-color-bg-selected: color-mix(in srgb, var(--kb-color-brand-primary) 16%, transparent); /** Row hover / active nav item. */
|
|
8
|
+
--kb-color-border-default: rgba(255, 255, 255, 0.12);
|
|
9
|
+
--kb-color-border-divider: rgba(255, 255, 255, 0.08);
|
|
10
|
+
--kb-color-border-subtle: rgba(255, 255, 255, 0.06); /** Dialog panel. */
|
|
11
|
+
--kb-color-border-faint: rgba(255, 255, 255, 0.06); /** Toolbar dividers, popover border. */
|
|
12
|
+
--kb-color-text-primary: var(--kb-color-slate-200);
|
|
13
|
+
--kb-color-text-secondary: var(--kb-color-grey-300);
|
|
14
|
+
--kb-color-text-muted: var(--kb-color-grey-450);
|
|
15
|
+
--kb-color-text-inverse: var(--kb-color-slate-800);
|
|
16
|
+
--kb-color-text-placeholder: var(--kb-color-grey-500);
|
|
17
|
+
--kb-color-text-suffix: var(--kb-color-grey-400);
|
|
18
|
+
--kb-color-text-subtle: var(--kb-color-grey-400); /** Tertiary control text. */
|
|
19
|
+
--kb-color-bg-canvas: var(--kb-color-grey-900); /** Page background. */
|
|
20
|
+
--kb-color-bg-surface: var(--kb-color-grey-600); /** Cards, inputs, app bar. */
|
|
21
|
+
--kb-color-bg-subtle: var(--kb-color-grey-700); /** List rows. */
|
|
22
|
+
--kb-color-bg-muted: var(--kb-color-grey-800); /** Folder cards, count pills. */
|
|
23
|
+
--kb-color-bg-band: var(--kb-color-grey-600); /** Page header band. */
|
|
24
|
+
--kb-color-bg-disabled: var(--kb-color-grey-800); /** Read-only inputs. */
|
|
25
|
+
--kb-color-bg-info-icon: var(--kb-color-grey-700);
|
|
26
|
+
--kb-color-bg-popover: var(--kb-color-grey-600);
|
|
27
|
+
--kb-color-bg-inset: var(--kb-color-grey-700); /** Nested panel bg inside a popover. */
|
|
28
|
+
--kb-color-bg-panel: var(--kb-color-grey-650); /** Tinted info panel inside dialogs. */
|
|
29
|
+
--kb-color-bg-rail: var(--kb-color-grey-900); /** Stepper rail. */
|
|
30
|
+
--kb-color-bg-input: var(--kb-color-grey-620); /** Text inputs / selects. */
|
|
31
|
+
--kb-color-bg-sidebar: var(--kb-color-grey-750); /** Editor sidebars (dark override). */
|
|
32
|
+
--kb-color-bg-section: var(--kb-color-grey-650); /** Grouped settings block (dark override). */
|
|
33
|
+
--kb-color-bg-zoom: var(--kb-color-grey-925);
|
|
34
|
+
--kb-color-border-input: var(--kb-color-grey-550);
|
|
35
|
+
--kb-color-border-input-hover: var(--kb-color-grey-400); /** Input / select hover border. */
|
|
36
|
+
--kb-color-action-secondary: var(--kb-color-grey-700);
|
|
37
|
+
--kb-color-action-secondary-hover: var(--kb-color-grey-800); /** Derived. */
|
|
38
|
+
--kb-color-action-control-off: var(--kb-color-grey-500); /** Unchecked control border / switch track. */
|
|
39
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kabobcompany/tokens",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Design tokens for Kabob. Source of truth for color, spacing, type, radius and shadow.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"tokens.json",
|
|
9
|
+
"tokens.dark.json",
|
|
10
|
+
"scale.json"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
"./tokens.css": "./dist/tokens.css",
|
|
14
|
+
"./tokens.dark.css": "./dist/tokens.dark.css",
|
|
15
|
+
"./tokens.json": "./tokens.json",
|
|
16
|
+
"./tokens.dark.json": "./tokens.dark.json",
|
|
17
|
+
"./accent.css": "./dist/accent.css"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "node build.mjs"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"style-dictionary": "^5.5.5"
|
|
24
|
+
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/kabobcompany/design-book.git",
|
|
31
|
+
"directory": "packages/tokens"
|
|
32
|
+
}
|
|
33
|
+
}
|
package/scale.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Kiosk scale overrides applied under [data-scale=\"kiosk\"] (1080p customer-facing screens).",
|
|
3
|
+
"kiosk": {
|
|
4
|
+
"font-size-2xs": "16px",
|
|
5
|
+
"font-size-xs": "20px",
|
|
6
|
+
"font-size-sm": "22px",
|
|
7
|
+
"font-size-md": "24px",
|
|
8
|
+
"font-size-lg": "30px",
|
|
9
|
+
"font-size-xl": "36px",
|
|
10
|
+
"font-size-2xl": "48px",
|
|
11
|
+
"size-button-sm": "56px",
|
|
12
|
+
"size-button-md": "64px",
|
|
13
|
+
"size-button-lg": "72px",
|
|
14
|
+
"size-input": "64px",
|
|
15
|
+
"radius-sm": "8px",
|
|
16
|
+
"radius-md": "12px",
|
|
17
|
+
"radius-lg": "16px",
|
|
18
|
+
"font-size-3xl": "64px",
|
|
19
|
+
"font-size-4xl": "96px",
|
|
20
|
+
"font-size-display": "192px",
|
|
21
|
+
"size-screen-header": "120px",
|
|
22
|
+
"size-queue-item": "80px",
|
|
23
|
+
"size-option-card": "96px"
|
|
24
|
+
}
|
|
25
|
+
}
|
package/tokens.dark.json
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Dark-mode semantic overrides for editor-style pages. Applied under [data-theme=\"dark\"].",
|
|
3
|
+
"color": {
|
|
4
|
+
"$type": "color",
|
|
5
|
+
"text": {
|
|
6
|
+
"primary": {
|
|
7
|
+
"$value": "{color.slate.200}"
|
|
8
|
+
},
|
|
9
|
+
"secondary": {
|
|
10
|
+
"$value": "{color.grey.300}"
|
|
11
|
+
},
|
|
12
|
+
"muted": {
|
|
13
|
+
"$value": "{color.grey.450}"
|
|
14
|
+
},
|
|
15
|
+
"inverse": {
|
|
16
|
+
"$value": "{color.slate.800}"
|
|
17
|
+
},
|
|
18
|
+
"label": {
|
|
19
|
+
"$value": "rgba(222, 235, 242, 0.4)"
|
|
20
|
+
},
|
|
21
|
+
"placeholder": {
|
|
22
|
+
"$value": "{color.grey.500}"
|
|
23
|
+
},
|
|
24
|
+
"suffix": {
|
|
25
|
+
"$value": "{color.grey.400}"
|
|
26
|
+
},
|
|
27
|
+
"subtle": {
|
|
28
|
+
"$value": "{color.grey.400}"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"bg": {
|
|
32
|
+
"canvas": {
|
|
33
|
+
"$value": "{color.grey.900}"
|
|
34
|
+
},
|
|
35
|
+
"surface": {
|
|
36
|
+
"$value": "{color.grey.600}"
|
|
37
|
+
},
|
|
38
|
+
"subtle": {
|
|
39
|
+
"$value": "{color.grey.700}"
|
|
40
|
+
},
|
|
41
|
+
"muted": {
|
|
42
|
+
"$value": "{color.grey.800}"
|
|
43
|
+
},
|
|
44
|
+
"band": {
|
|
45
|
+
"$value": "{color.grey.600}"
|
|
46
|
+
},
|
|
47
|
+
"selected": {
|
|
48
|
+
"$value": "color-mix(in srgb, var(--kb-color-brand-primary) 16%, transparent)"
|
|
49
|
+
},
|
|
50
|
+
"disabled": {
|
|
51
|
+
"$value": "{color.grey.800}"
|
|
52
|
+
},
|
|
53
|
+
"info-icon": {
|
|
54
|
+
"$value": "{color.grey.700}"
|
|
55
|
+
},
|
|
56
|
+
"popover": {
|
|
57
|
+
"$value": "{color.grey.600}"
|
|
58
|
+
},
|
|
59
|
+
"inset": {
|
|
60
|
+
"$value": "{color.grey.700}"
|
|
61
|
+
},
|
|
62
|
+
"input": {
|
|
63
|
+
"$value": "{color.grey.620}"
|
|
64
|
+
},
|
|
65
|
+
"sidebar": {
|
|
66
|
+
"$value": "{color.grey.750}"
|
|
67
|
+
},
|
|
68
|
+
"section": {
|
|
69
|
+
"$value": "{color.grey.650}"
|
|
70
|
+
},
|
|
71
|
+
"panel": {
|
|
72
|
+
"$value": "{color.grey.650}"
|
|
73
|
+
},
|
|
74
|
+
"rail": {
|
|
75
|
+
"$value": "{color.grey.900}"
|
|
76
|
+
},
|
|
77
|
+
"zoom": {
|
|
78
|
+
"$value": "{color.grey.925}"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"border": {
|
|
82
|
+
"default": {
|
|
83
|
+
"$value": "rgba(255, 255, 255, 0.12)"
|
|
84
|
+
},
|
|
85
|
+
"divider": {
|
|
86
|
+
"$value": "rgba(255, 255, 255, 0.08)"
|
|
87
|
+
},
|
|
88
|
+
"subtle": {
|
|
89
|
+
"$value": "rgba(255, 255, 255, 0.06)"
|
|
90
|
+
},
|
|
91
|
+
"faint": {
|
|
92
|
+
"$value": "rgba(255, 255, 255, 0.06)"
|
|
93
|
+
},
|
|
94
|
+
"input": {
|
|
95
|
+
"$value": "{color.grey.550}"
|
|
96
|
+
},
|
|
97
|
+
"input-hover": {
|
|
98
|
+
"$value": "{color.grey.400}"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"action": {
|
|
102
|
+
"secondary": {
|
|
103
|
+
"$value": "{color.grey.700}"
|
|
104
|
+
},
|
|
105
|
+
"secondary-hover": {
|
|
106
|
+
"$value": "{color.grey.800}"
|
|
107
|
+
},
|
|
108
|
+
"control-off": {
|
|
109
|
+
"$value": "{color.grey.500}"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
package/tokens.json
ADDED
|
@@ -0,0 +1,761 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Kabob primitives + light-mode semantics. Values extracted from Figma lookr-3.0. Dark-mode overrides live in tokens.dark.json.",
|
|
3
|
+
"color": {
|
|
4
|
+
"$type": "color",
|
|
5
|
+
"brand": {
|
|
6
|
+
"primary": {
|
|
7
|
+
"$value": "#09a8be",
|
|
8
|
+
"$description": "Default accent. Consumers override with --kb-accent; see accent.css."
|
|
9
|
+
},
|
|
10
|
+
"primary-hover": {
|
|
11
|
+
"$value": "#0894a8",
|
|
12
|
+
"$description": "Derived; per-brand values generated in dist/brands.css."
|
|
13
|
+
},
|
|
14
|
+
"primary-active": {
|
|
15
|
+
"$value": "#077f90",
|
|
16
|
+
"$description": "Derived."
|
|
17
|
+
},
|
|
18
|
+
"primary-tint": {
|
|
19
|
+
"$value": "#def2f4",
|
|
20
|
+
"$description": "Row hover / selected tint."
|
|
21
|
+
},
|
|
22
|
+
"primary-contrast": {
|
|
23
|
+
"$value": "#ffffff",
|
|
24
|
+
"$description": "Text/icon colour on a primary fill."
|
|
25
|
+
},
|
|
26
|
+
"purple": {
|
|
27
|
+
"$value": "#6f6bdb",
|
|
28
|
+
"$description": "Secondary CTA (e.g. 新增訂單 rounded button)."
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"slate": {
|
|
32
|
+
"900": {
|
|
33
|
+
"$value": "#2d303a",
|
|
34
|
+
"$description": "Menu / tooltip surface."
|
|
35
|
+
},
|
|
36
|
+
"800": {
|
|
37
|
+
"$value": "#4a616f",
|
|
38
|
+
"$description": "Primary text on light UI; secondary button bg; Private pill."
|
|
39
|
+
},
|
|
40
|
+
"600": {
|
|
41
|
+
"$value": "#899dab",
|
|
42
|
+
"$description": "Tab subtitle (used at 50% opacity in Figma)."
|
|
43
|
+
},
|
|
44
|
+
"500": {
|
|
45
|
+
"$value": "#a4b0b7",
|
|
46
|
+
"$description": "Muted text, table column labels, count pills."
|
|
47
|
+
},
|
|
48
|
+
"400": {
|
|
49
|
+
"$value": "#b4c6d1",
|
|
50
|
+
"$description": "Public pill bg."
|
|
51
|
+
},
|
|
52
|
+
"200": {
|
|
53
|
+
"$value": "#deebf2",
|
|
54
|
+
"$description": "Borders, switch track, page header band. Figma style 'bgc'."
|
|
55
|
+
},
|
|
56
|
+
"150": {
|
|
57
|
+
"$value": "#dceaf2",
|
|
58
|
+
"$description": "App bar divider."
|
|
59
|
+
},
|
|
60
|
+
"100": {
|
|
61
|
+
"$value": "#f5f9fb",
|
|
62
|
+
"$description": "List row bg."
|
|
63
|
+
},
|
|
64
|
+
"75": {
|
|
65
|
+
"$value": "#f6fafa",
|
|
66
|
+
"$description": "Folder card / count pill bg."
|
|
67
|
+
},
|
|
68
|
+
"50": {
|
|
69
|
+
"$value": "#f5fafa",
|
|
70
|
+
"$description": "Menu item text on dark."
|
|
71
|
+
},
|
|
72
|
+
"0": {
|
|
73
|
+
"$value": "#ffffff"
|
|
74
|
+
},
|
|
75
|
+
"550": {
|
|
76
|
+
"$value": "#8d9da7",
|
|
77
|
+
"$description": "Form field labels (裝置設定 modal)."
|
|
78
|
+
},
|
|
79
|
+
"350": {
|
|
80
|
+
"$value": "#a1bdce",
|
|
81
|
+
"$description": "Input suffix text (秒), info icon glyph."
|
|
82
|
+
},
|
|
83
|
+
"300": {
|
|
84
|
+
"$value": "#c2d2db",
|
|
85
|
+
"$description": "Input placeholder."
|
|
86
|
+
},
|
|
87
|
+
"125": {
|
|
88
|
+
"$value": "#f3f7fa",
|
|
89
|
+
"$description": "Read-only / disabled input bg."
|
|
90
|
+
},
|
|
91
|
+
"25": {
|
|
92
|
+
"$value": "#f2f2f2",
|
|
93
|
+
"$description": "Dialog panel border."
|
|
94
|
+
},
|
|
95
|
+
"650": {
|
|
96
|
+
"$value": "#6d8796",
|
|
97
|
+
"$description": "Subtle control text (進階選項 trigger, shown at 50%)."
|
|
98
|
+
},
|
|
99
|
+
"90": {
|
|
100
|
+
"$value": "#f1f7fa",
|
|
101
|
+
"$description": "Faint dividers, popover border."
|
|
102
|
+
},
|
|
103
|
+
"40": {
|
|
104
|
+
"$value": "#fafafa",
|
|
105
|
+
"$description": "Inset panel inside popovers (collapsible filter section)."
|
|
106
|
+
},
|
|
107
|
+
"110": {
|
|
108
|
+
"$value": "#e7f1f7",
|
|
109
|
+
"$description": "Info panel bg (Info & Remote Access)."
|
|
110
|
+
},
|
|
111
|
+
"120": {
|
|
112
|
+
"$value": "#e7ebed",
|
|
113
|
+
"$description": "Onboarding stepper rail bg."
|
|
114
|
+
},
|
|
115
|
+
"130": {
|
|
116
|
+
"$value": "#c9d9e3",
|
|
117
|
+
"$description": "Empty signal dot. Derived from #dceaf2."
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"grey": {
|
|
121
|
+
"$description": "Dark editor surfaces.",
|
|
122
|
+
"900": {
|
|
123
|
+
"$value": "#2a2d32",
|
|
124
|
+
"$description": "Segmented control track."
|
|
125
|
+
},
|
|
126
|
+
"800": {
|
|
127
|
+
"$value": "#36393c",
|
|
128
|
+
"$description": "Icon button bg (dark)."
|
|
129
|
+
},
|
|
130
|
+
"700": {
|
|
131
|
+
"$value": "#393b3e",
|
|
132
|
+
"$description": "Chip / pill bg (dark)."
|
|
133
|
+
},
|
|
134
|
+
"600": {
|
|
135
|
+
"$value": "#42464c",
|
|
136
|
+
"$description": "Editor header, active segmented item."
|
|
137
|
+
},
|
|
138
|
+
"500": {
|
|
139
|
+
"$value": "#808080",
|
|
140
|
+
"$description": "Inactive tab text (dark)."
|
|
141
|
+
},
|
|
142
|
+
"400": {
|
|
143
|
+
"$value": "#999999",
|
|
144
|
+
"$description": "Chip text (dark)."
|
|
145
|
+
},
|
|
146
|
+
"300": {
|
|
147
|
+
"$value": "#cccccc",
|
|
148
|
+
"$description": "Editor title text."
|
|
149
|
+
},
|
|
150
|
+
"200": {
|
|
151
|
+
"$value": "#d8d8d8",
|
|
152
|
+
"$description": "Menu item hover (used at 20% opacity)."
|
|
153
|
+
},
|
|
154
|
+
"950": {
|
|
155
|
+
"$value": "#1d1f21",
|
|
156
|
+
"$description": "Slide card body (editor content panel)."
|
|
157
|
+
},
|
|
158
|
+
"925": {
|
|
159
|
+
"$value": "#20242b",
|
|
160
|
+
"$description": "Zoom control."
|
|
161
|
+
},
|
|
162
|
+
"850": {
|
|
163
|
+
"$value": "#323539",
|
|
164
|
+
"$description": "Editor content sidebar."
|
|
165
|
+
},
|
|
166
|
+
"750": {
|
|
167
|
+
"$value": "#383b3f",
|
|
168
|
+
"$description": "Editor tool palette / layers / settings sidebar."
|
|
169
|
+
},
|
|
170
|
+
"650": {
|
|
171
|
+
"$value": "#404245",
|
|
172
|
+
"$description": "Settings section block inside the editor sidebar."
|
|
173
|
+
},
|
|
174
|
+
"640": {
|
|
175
|
+
"$value": "#41474b",
|
|
176
|
+
"$description": "Media picker card."
|
|
177
|
+
},
|
|
178
|
+
"620": {
|
|
179
|
+
"$value": "#373a3d",
|
|
180
|
+
"$description": "Editor input bg."
|
|
181
|
+
},
|
|
182
|
+
"550": {
|
|
183
|
+
"$value": "#5b6166",
|
|
184
|
+
"$description": "Editor input border / panel divider."
|
|
185
|
+
},
|
|
186
|
+
"450": {
|
|
187
|
+
"$value": "#7b8084",
|
|
188
|
+
"$description": "Editor muted text (Full length)."
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"status": {
|
|
192
|
+
"success": {
|
|
193
|
+
"$value": "#8cc040",
|
|
194
|
+
"$description": "Online / published row bar."
|
|
195
|
+
},
|
|
196
|
+
"warning": {
|
|
197
|
+
"$value": "#ff961c",
|
|
198
|
+
"$description": "Sampled from screenshot; verify with design."
|
|
199
|
+
},
|
|
200
|
+
"error": {
|
|
201
|
+
"$value": "#f5736c",
|
|
202
|
+
"$description": "Danger buttons (刪除裝置 / 停用裝置) in 裝置設定 modal. Replaces earlier sampled #e0533f."
|
|
203
|
+
},
|
|
204
|
+
"rejected": {
|
|
205
|
+
"$value": "#d31d80",
|
|
206
|
+
"$description": "被拒絕 badge text."
|
|
207
|
+
},
|
|
208
|
+
"rejected-bg": {
|
|
209
|
+
"$value": "#f5e2ed",
|
|
210
|
+
"$description": "被拒絕 badge bg."
|
|
211
|
+
},
|
|
212
|
+
"pending": {
|
|
213
|
+
"$value": "#f2c94c",
|
|
214
|
+
"$description": "Sampled from screenshot (loading spinner); verify."
|
|
215
|
+
},
|
|
216
|
+
"error-bg": {
|
|
217
|
+
"$value": "#f9f1f1",
|
|
218
|
+
"$description": "Outline danger button bg."
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"text": {
|
|
222
|
+
"primary": {
|
|
223
|
+
"$value": "{color.slate.800}"
|
|
224
|
+
},
|
|
225
|
+
"secondary": {
|
|
226
|
+
"$value": "{color.slate.600}"
|
|
227
|
+
},
|
|
228
|
+
"muted": {
|
|
229
|
+
"$value": "{color.slate.500}"
|
|
230
|
+
},
|
|
231
|
+
"inverse": {
|
|
232
|
+
"$value": "{color.slate.0}"
|
|
233
|
+
},
|
|
234
|
+
"brand": {
|
|
235
|
+
"$value": "{color.brand.primary}"
|
|
236
|
+
},
|
|
237
|
+
"on-brand": {
|
|
238
|
+
"$value": "{color.brand.primary-contrast}"
|
|
239
|
+
},
|
|
240
|
+
"on-menu": {
|
|
241
|
+
"$value": "{color.slate.50}"
|
|
242
|
+
},
|
|
243
|
+
"error": {
|
|
244
|
+
"$value": "{color.status.error}"
|
|
245
|
+
},
|
|
246
|
+
"label": {
|
|
247
|
+
"$value": "{color.slate.550}",
|
|
248
|
+
"$description": "Form field labels, 12px bold."
|
|
249
|
+
},
|
|
250
|
+
"placeholder": {
|
|
251
|
+
"$value": "{color.slate.300}"
|
|
252
|
+
},
|
|
253
|
+
"suffix": {
|
|
254
|
+
"$value": "{color.slate.350}"
|
|
255
|
+
},
|
|
256
|
+
"subtle": {
|
|
257
|
+
"$value": "{color.slate.650}",
|
|
258
|
+
"$description": "Tertiary control text."
|
|
259
|
+
},
|
|
260
|
+
"on-dark": {
|
|
261
|
+
"$value": "{color.slate.0}"
|
|
262
|
+
},
|
|
263
|
+
"on-status": {
|
|
264
|
+
"$value": "{color.slate.900}",
|
|
265
|
+
"$description": "Text on success/warning/error/pending fills (white fails contrast on these)."
|
|
266
|
+
},
|
|
267
|
+
"pending": {
|
|
268
|
+
"$value": "#a67c00",
|
|
269
|
+
"$description": "Readable text tone for the pending (yellow) status."
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"bg": {
|
|
273
|
+
"canvas": {
|
|
274
|
+
"$value": "{color.slate.0}",
|
|
275
|
+
"$description": "Page background."
|
|
276
|
+
},
|
|
277
|
+
"surface": {
|
|
278
|
+
"$value": "{color.slate.0}",
|
|
279
|
+
"$description": "Cards, inputs, app bar."
|
|
280
|
+
},
|
|
281
|
+
"subtle": {
|
|
282
|
+
"$value": "{color.slate.100}",
|
|
283
|
+
"$description": "List rows."
|
|
284
|
+
},
|
|
285
|
+
"muted": {
|
|
286
|
+
"$value": "{color.slate.75}",
|
|
287
|
+
"$description": "Folder cards, count pills."
|
|
288
|
+
},
|
|
289
|
+
"band": {
|
|
290
|
+
"$value": "{color.slate.200}",
|
|
291
|
+
"$description": "Page header band."
|
|
292
|
+
},
|
|
293
|
+
"selected": {
|
|
294
|
+
"$value": "{color.brand.primary-tint}",
|
|
295
|
+
"$description": "Row hover / active nav item."
|
|
296
|
+
},
|
|
297
|
+
"menu": {
|
|
298
|
+
"$value": "{color.slate.900}",
|
|
299
|
+
"$description": "Dropdown menus & tooltips (dark in both modes)."
|
|
300
|
+
},
|
|
301
|
+
"menu-hover": {
|
|
302
|
+
"$value": "rgba(216, 216, 216, 0.2)"
|
|
303
|
+
},
|
|
304
|
+
"track": {
|
|
305
|
+
"$value": "{color.grey.900}",
|
|
306
|
+
"$description": "Segmented control track."
|
|
307
|
+
},
|
|
308
|
+
"track-active": {
|
|
309
|
+
"$value": "{color.grey.600}"
|
|
310
|
+
},
|
|
311
|
+
"chip": {
|
|
312
|
+
"$value": "{color.grey.700}"
|
|
313
|
+
},
|
|
314
|
+
"disabled": {
|
|
315
|
+
"$value": "{color.slate.125}",
|
|
316
|
+
"$description": "Read-only inputs."
|
|
317
|
+
},
|
|
318
|
+
"info-panel": {
|
|
319
|
+
"$value": "rgba(9, 168, 190, 0.05)",
|
|
320
|
+
"$description": "Key-value summary strip at top of 裝置設定."
|
|
321
|
+
},
|
|
322
|
+
"overlay": {
|
|
323
|
+
"$value": "rgba(0, 0, 0, 0.5)",
|
|
324
|
+
"$description": "Modal backdrop (popup bg: black @ 50%)."
|
|
325
|
+
},
|
|
326
|
+
"info-icon": {
|
|
327
|
+
"$value": "{color.slate.150}"
|
|
328
|
+
},
|
|
329
|
+
"popover": {
|
|
330
|
+
"$value": "{color.slate.0}"
|
|
331
|
+
},
|
|
332
|
+
"inset": {
|
|
333
|
+
"$value": "{color.slate.40}",
|
|
334
|
+
"$description": "Nested panel bg inside a popover."
|
|
335
|
+
},
|
|
336
|
+
"panel": {
|
|
337
|
+
"$value": "{color.slate.110}",
|
|
338
|
+
"$description": "Tinted info panel inside dialogs."
|
|
339
|
+
},
|
|
340
|
+
"rail": {
|
|
341
|
+
"$value": "{color.slate.120}",
|
|
342
|
+
"$description": "Stepper rail."
|
|
343
|
+
},
|
|
344
|
+
"input": {
|
|
345
|
+
"$value": "{color.slate.0}",
|
|
346
|
+
"$description": "Text inputs / selects."
|
|
347
|
+
},
|
|
348
|
+
"sidebar": {
|
|
349
|
+
"$value": "{color.slate.0}",
|
|
350
|
+
"$description": "Editor sidebars (dark override)."
|
|
351
|
+
},
|
|
352
|
+
"section": {
|
|
353
|
+
"$value": "{color.slate.100}",
|
|
354
|
+
"$description": "Grouped settings block (dark override)."
|
|
355
|
+
},
|
|
356
|
+
"media-card": {
|
|
357
|
+
"$value": "{color.grey.640}",
|
|
358
|
+
"$description": "Media picker card — dark in both themes."
|
|
359
|
+
},
|
|
360
|
+
"slide-card": {
|
|
361
|
+
"$value": "{color.grey.950}",
|
|
362
|
+
"$description": "Slide card — dark in both themes."
|
|
363
|
+
},
|
|
364
|
+
"zoom": {
|
|
365
|
+
"$value": "{color.grey.925}"
|
|
366
|
+
},
|
|
367
|
+
"scrim": {
|
|
368
|
+
"$value": "rgba(0, 0, 0, 0.5)",
|
|
369
|
+
"$description": "Thumbnail overlays / preview buttons."
|
|
370
|
+
},
|
|
371
|
+
"rail-dark": {
|
|
372
|
+
"$value": "#363c40",
|
|
373
|
+
"$description": "Dark list rail (queue rail). Same in both themes."
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"border": {
|
|
377
|
+
"default": {
|
|
378
|
+
"$value": "{color.slate.200}"
|
|
379
|
+
},
|
|
380
|
+
"divider": {
|
|
381
|
+
"$value": "{color.slate.150}"
|
|
382
|
+
},
|
|
383
|
+
"focus": {
|
|
384
|
+
"$value": "{color.brand.primary}"
|
|
385
|
+
},
|
|
386
|
+
"subtle": {
|
|
387
|
+
"$value": "{color.slate.25}",
|
|
388
|
+
"$description": "Dialog panel."
|
|
389
|
+
},
|
|
390
|
+
"faint": {
|
|
391
|
+
"$value": "{color.slate.90}",
|
|
392
|
+
"$description": "Toolbar dividers, popover border."
|
|
393
|
+
},
|
|
394
|
+
"input": {
|
|
395
|
+
"$value": "{color.slate.200}"
|
|
396
|
+
},
|
|
397
|
+
"zoom": {
|
|
398
|
+
"$value": "#333842"
|
|
399
|
+
},
|
|
400
|
+
"input-hover": {
|
|
401
|
+
"$value": "{color.slate.400}",
|
|
402
|
+
"$description": "Input / select hover border."
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"action": {
|
|
406
|
+
"primary": {
|
|
407
|
+
"$value": "{color.brand.primary}"
|
|
408
|
+
},
|
|
409
|
+
"primary-hover": {
|
|
410
|
+
"$value": "{color.brand.primary-hover}"
|
|
411
|
+
},
|
|
412
|
+
"primary-active": {
|
|
413
|
+
"$value": "{color.brand.primary-active}"
|
|
414
|
+
},
|
|
415
|
+
"secondary": {
|
|
416
|
+
"$value": "{color.slate.800}"
|
|
417
|
+
},
|
|
418
|
+
"secondary-hover": {
|
|
419
|
+
"$value": "#3d515d",
|
|
420
|
+
"$description": "Derived."
|
|
421
|
+
},
|
|
422
|
+
"accent": {
|
|
423
|
+
"$value": "{color.brand.purple}"
|
|
424
|
+
},
|
|
425
|
+
"accent-hover": {
|
|
426
|
+
"$value": "#5d59c9",
|
|
427
|
+
"$description": "Derived."
|
|
428
|
+
},
|
|
429
|
+
"danger": {
|
|
430
|
+
"$value": "{color.status.error}"
|
|
431
|
+
},
|
|
432
|
+
"danger-hover": {
|
|
433
|
+
"$value": "#e2574f",
|
|
434
|
+
"$description": "Derived."
|
|
435
|
+
},
|
|
436
|
+
"control-off": {
|
|
437
|
+
"$value": "{color.slate.200}",
|
|
438
|
+
"$description": "Unchecked control border / switch track."
|
|
439
|
+
},
|
|
440
|
+
"control-on": {
|
|
441
|
+
"$value": "{color.brand.primary}"
|
|
442
|
+
},
|
|
443
|
+
"danger-soft": {
|
|
444
|
+
"$value": "{color.status.error-bg}"
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
"accent": {
|
|
448
|
+
"$type": "color",
|
|
449
|
+
"blue": {
|
|
450
|
+
"$value": "#005fdb",
|
|
451
|
+
"$description": "Schedule card: Wake."
|
|
452
|
+
},
|
|
453
|
+
"green": {
|
|
454
|
+
"$value": "#009f35",
|
|
455
|
+
"$description": "Schedule card: Reboot."
|
|
456
|
+
},
|
|
457
|
+
"violet": {
|
|
458
|
+
"$value": "#5400db",
|
|
459
|
+
"$description": "Schedule card: Sleep."
|
|
460
|
+
},
|
|
461
|
+
"orange": {
|
|
462
|
+
"$value": "#ff9149",
|
|
463
|
+
"$description": "Onboarding STEP tag."
|
|
464
|
+
},
|
|
465
|
+
"yellow": {
|
|
466
|
+
"$value": "#ffd43f",
|
|
467
|
+
"$description": "NEW tag."
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
"highlight": {
|
|
471
|
+
"$type": "color",
|
|
472
|
+
"own": {
|
|
473
|
+
"$value": "{color.accent.blue}",
|
|
474
|
+
"$description": "'Yours' marker in number boards."
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
"space": {
|
|
479
|
+
"$type": "dimension",
|
|
480
|
+
"1": {
|
|
481
|
+
"$value": "4px"
|
|
482
|
+
},
|
|
483
|
+
"2": {
|
|
484
|
+
"$value": "8px"
|
|
485
|
+
},
|
|
486
|
+
"3": {
|
|
487
|
+
"$value": "12px"
|
|
488
|
+
},
|
|
489
|
+
"4": {
|
|
490
|
+
"$value": "16px"
|
|
491
|
+
},
|
|
492
|
+
"5": {
|
|
493
|
+
"$value": "20px"
|
|
494
|
+
},
|
|
495
|
+
"6": {
|
|
496
|
+
"$value": "24px"
|
|
497
|
+
},
|
|
498
|
+
"8": {
|
|
499
|
+
"$value": "32px"
|
|
500
|
+
},
|
|
501
|
+
"10": {
|
|
502
|
+
"$value": "40px"
|
|
503
|
+
},
|
|
504
|
+
"12": {
|
|
505
|
+
"$value": "48px"
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
"radius": {
|
|
509
|
+
"$type": "dimension",
|
|
510
|
+
"sm": {
|
|
511
|
+
"$value": "3px",
|
|
512
|
+
"$description": "Default: buttons, inputs, rows, menus."
|
|
513
|
+
},
|
|
514
|
+
"md": {
|
|
515
|
+
"$value": "5px",
|
|
516
|
+
"$description": "Segmented control track, dialog panel."
|
|
517
|
+
},
|
|
518
|
+
"lg": {
|
|
519
|
+
"$value": "10px"
|
|
520
|
+
},
|
|
521
|
+
"pill": {
|
|
522
|
+
"$value": "14px",
|
|
523
|
+
"$description": "Status badges."
|
|
524
|
+
},
|
|
525
|
+
"round": {
|
|
526
|
+
"$value": "16px",
|
|
527
|
+
"$description": "Rounded buttons."
|
|
528
|
+
},
|
|
529
|
+
"full": {
|
|
530
|
+
"$value": "9999px"
|
|
531
|
+
},
|
|
532
|
+
"md-lg": {
|
|
533
|
+
"$value": "8px",
|
|
534
|
+
"$description": "Option cards, onboarding steps."
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
"size": {
|
|
538
|
+
"$type": "dimension",
|
|
539
|
+
"control": {
|
|
540
|
+
"$value": "16px",
|
|
541
|
+
"$description": "Checkbox / radio / switch height."
|
|
542
|
+
},
|
|
543
|
+
"switch-width": {
|
|
544
|
+
"$value": "28px"
|
|
545
|
+
},
|
|
546
|
+
"icon-sm": {
|
|
547
|
+
"$value": "16px"
|
|
548
|
+
},
|
|
549
|
+
"icon-md": {
|
|
550
|
+
"$value": "20px"
|
|
551
|
+
},
|
|
552
|
+
"icon-lg": {
|
|
553
|
+
"$value": "24px"
|
|
554
|
+
},
|
|
555
|
+
"button-sm": {
|
|
556
|
+
"$value": "32px"
|
|
557
|
+
},
|
|
558
|
+
"button-md": {
|
|
559
|
+
"$value": "36px"
|
|
560
|
+
},
|
|
561
|
+
"button-lg": {
|
|
562
|
+
"$value": "44px"
|
|
563
|
+
},
|
|
564
|
+
"row": {
|
|
565
|
+
"$value": "64px"
|
|
566
|
+
},
|
|
567
|
+
"appbar": {
|
|
568
|
+
"$value": "68px"
|
|
569
|
+
},
|
|
570
|
+
"editor-bar": {
|
|
571
|
+
"$value": "60px"
|
|
572
|
+
},
|
|
573
|
+
"rail": {
|
|
574
|
+
"$value": "60px"
|
|
575
|
+
},
|
|
576
|
+
"sidenav": {
|
|
577
|
+
"$value": "220px"
|
|
578
|
+
},
|
|
579
|
+
"input": {
|
|
580
|
+
"$value": "44px",
|
|
581
|
+
"$description": "Form input height in modals."
|
|
582
|
+
},
|
|
583
|
+
"dialog-width": {
|
|
584
|
+
"$value": "840px"
|
|
585
|
+
},
|
|
586
|
+
"dialog-action": {
|
|
587
|
+
"$value": "189px",
|
|
588
|
+
"$description": "Footer button width."
|
|
589
|
+
},
|
|
590
|
+
"input-xl": {
|
|
591
|
+
"$value": "50px",
|
|
592
|
+
"$description": "Mobile input / button height."
|
|
593
|
+
},
|
|
594
|
+
"tool": {
|
|
595
|
+
"$value": "48px",
|
|
596
|
+
"$description": "Editor tool button."
|
|
597
|
+
},
|
|
598
|
+
"chip": {
|
|
599
|
+
"$value": "31px"
|
|
600
|
+
},
|
|
601
|
+
"option": {
|
|
602
|
+
"$value": "34px",
|
|
603
|
+
"$description": "Listbox option row."
|
|
604
|
+
},
|
|
605
|
+
"queue-item": {
|
|
606
|
+
"$value": "60px"
|
|
607
|
+
},
|
|
608
|
+
"option-card": {
|
|
609
|
+
"$value": "72px"
|
|
610
|
+
},
|
|
611
|
+
"row-sm": {
|
|
612
|
+
"$value": "48px"
|
|
613
|
+
},
|
|
614
|
+
"screen-header": {
|
|
615
|
+
"$value": "92px",
|
|
616
|
+
"$description": "Kiosk/signage header; 120px under kiosk scale."
|
|
617
|
+
},
|
|
618
|
+
"form-label": {
|
|
619
|
+
"$value": "160px",
|
|
620
|
+
"$description": "Label column in FormSection rows and Timeline track labels."
|
|
621
|
+
},
|
|
622
|
+
"layout-thumb": {
|
|
623
|
+
"$value": "112px"
|
|
624
|
+
},
|
|
625
|
+
"drawer-sm": {
|
|
626
|
+
"$value": "360px"
|
|
627
|
+
},
|
|
628
|
+
"drawer-md": {
|
|
629
|
+
"$value": "480px"
|
|
630
|
+
},
|
|
631
|
+
"drawer-lg": {
|
|
632
|
+
"$value": "720px"
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
"font": {
|
|
636
|
+
"family": {
|
|
637
|
+
"$type": "fontFamily",
|
|
638
|
+
"sans": {
|
|
639
|
+
"$value": "'Noto Sans TC', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif"
|
|
640
|
+
},
|
|
641
|
+
"mono": {
|
|
642
|
+
"$value": "ui-monospace, SFMono-Regular, Menlo, monospace"
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
"size": {
|
|
646
|
+
"$type": "dimension",
|
|
647
|
+
"2xs": {
|
|
648
|
+
"$value": "11px"
|
|
649
|
+
},
|
|
650
|
+
"xs": {
|
|
651
|
+
"$value": "12px",
|
|
652
|
+
"$description": "Default UI size."
|
|
653
|
+
},
|
|
654
|
+
"sm": {
|
|
655
|
+
"$value": "13px"
|
|
656
|
+
},
|
|
657
|
+
"md": {
|
|
658
|
+
"$value": "14px"
|
|
659
|
+
},
|
|
660
|
+
"lg": {
|
|
661
|
+
"$value": "16px"
|
|
662
|
+
},
|
|
663
|
+
"xl": {
|
|
664
|
+
"$value": "20px"
|
|
665
|
+
},
|
|
666
|
+
"2xl": {
|
|
667
|
+
"$value": "30px",
|
|
668
|
+
"$description": "Product wordmark."
|
|
669
|
+
},
|
|
670
|
+
"3xs": {
|
|
671
|
+
"$value": "10px",
|
|
672
|
+
"$description": "Calendar bars, slide chips, media notice. Minimum size."
|
|
673
|
+
},
|
|
674
|
+
"3xl": {
|
|
675
|
+
"$value": "48px"
|
|
676
|
+
},
|
|
677
|
+
"4xl": {
|
|
678
|
+
"$value": "72px"
|
|
679
|
+
},
|
|
680
|
+
"display": {
|
|
681
|
+
"$value": "120px",
|
|
682
|
+
"$description": "Queue/ticket number on displays."
|
|
683
|
+
}
|
|
684
|
+
},
|
|
685
|
+
"weight": {
|
|
686
|
+
"$type": "fontWeight",
|
|
687
|
+
"regular": {
|
|
688
|
+
"$value": 400
|
|
689
|
+
},
|
|
690
|
+
"medium": {
|
|
691
|
+
"$value": 500
|
|
692
|
+
},
|
|
693
|
+
"bold": {
|
|
694
|
+
"$value": 700
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
"line-height": {
|
|
698
|
+
"$type": "number",
|
|
699
|
+
"tight": {
|
|
700
|
+
"$value": 1.1
|
|
701
|
+
},
|
|
702
|
+
"snug": {
|
|
703
|
+
"$value": 1.25
|
|
704
|
+
},
|
|
705
|
+
"normal": {
|
|
706
|
+
"$value": 1.5
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
"shadow": {
|
|
711
|
+
"$type": "shadow",
|
|
712
|
+
"sm": {
|
|
713
|
+
"$value": "0 1px 2px rgba(45, 48, 58, 0.08)"
|
|
714
|
+
},
|
|
715
|
+
"md": {
|
|
716
|
+
"$value": "0 4px 12px rgba(45, 48, 58, 0.16)"
|
|
717
|
+
},
|
|
718
|
+
"lg": {
|
|
719
|
+
"$value": "0 12px 32px rgba(45, 48, 58, 0.24)"
|
|
720
|
+
},
|
|
721
|
+
"dialog": {
|
|
722
|
+
"$value": "0 2px 8px rgba(0, 0, 0, 0.06)",
|
|
723
|
+
"$description": "Lightbox panel."
|
|
724
|
+
},
|
|
725
|
+
"popover": {
|
|
726
|
+
"$value": "0 2px 4px rgba(74, 97, 111, 0.1)",
|
|
727
|
+
"$description": "Advanced search dropdown panel."
|
|
728
|
+
},
|
|
729
|
+
"tile": {
|
|
730
|
+
"$value": "0 0 12px rgba(141, 157, 167, 0.2)",
|
|
731
|
+
"$description": "Soft all-round shadow for kiosk tiles and display cards."
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
"motion": {
|
|
735
|
+
"duration": {
|
|
736
|
+
"$type": "duration",
|
|
737
|
+
"fast": {
|
|
738
|
+
"$value": "120ms"
|
|
739
|
+
},
|
|
740
|
+
"base": {
|
|
741
|
+
"$value": "200ms"
|
|
742
|
+
},
|
|
743
|
+
"slow": {
|
|
744
|
+
"$value": "1200ms",
|
|
745
|
+
"$description": "Attention pulse (calling counter)."
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
},
|
|
749
|
+
"opacity": {
|
|
750
|
+
"$type": "number",
|
|
751
|
+
"muted": {
|
|
752
|
+
"$value": 0.5
|
|
753
|
+
},
|
|
754
|
+
"disabled": {
|
|
755
|
+
"$value": 0.5
|
|
756
|
+
},
|
|
757
|
+
"faint": {
|
|
758
|
+
"$value": 0.2
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}
|
package/README.md
DELETED