@comitor/ui 3.14.0 → 3.16.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/README.md +76 -5
- package/dist/components/composite/gantt.js +1 -1
- package/dist/components/composite/gantt.js.map +1 -1
- package/dist/components/composite/status-config.d.ts +7 -5
- package/dist/components/composite/status-config.js +2 -2
- package/dist/components/composite/status-config.js.map +1 -1
- package/dist/components/ui/badge.js +2 -2
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/button.js +3 -3
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/circular-progress.js +1 -1
- package/dist/components/ui/circular-progress.js.map +1 -1
- package/dist/components/ui/color-picker.d.ts +111 -0
- package/dist/components/ui/color-picker.js +1444 -0
- package/dist/components/ui/color-picker.js.map +1 -0
- package/dist/components/ui/color-swatch.d.ts +22 -0
- package/dist/components/ui/color-swatch.js +82 -0
- package/dist/components/ui/color-swatch.js.map +1 -0
- package/dist/components/ui/compare-slider.d.ts +61 -0
- package/dist/components/ui/compare-slider.js +448 -0
- package/dist/components/ui/compare-slider.js.map +1 -0
- package/dist/components/ui/pagination.js +1 -1
- package/dist/components/ui/pagination.js.map +1 -1
- package/dist/i18n/locale-provider.d.ts +13 -0
- package/dist/i18n/messages.d.ts +16 -0
- package/dist/i18n/messages.js +9 -0
- package/dist/i18n/messages.js.map +1 -1
- package/dist/i18n/namespaces/color-picker.d.ts +44 -0
- package/dist/i18n/namespaces/color-picker.js +49 -0
- package/dist/i18n/namespaces/color-picker.js.map +1 -0
- package/dist/i18n/namespaces/color-swatch.d.ts +11 -0
- package/dist/i18n/namespaces/color-swatch.js +13 -0
- package/dist/i18n/namespaces/color-swatch.js.map +1 -0
- package/dist/i18n/namespaces/compare-slider.d.ts +27 -0
- package/dist/i18n/namespaces/compare-slider.js +18 -0
- package/dist/i18n/namespaces/compare-slider.js.map +1 -0
- package/dist/i18n/namespaces/display-axis.d.ts +20 -0
- package/dist/i18n/namespaces/display-axis.js +22 -2
- package/dist/i18n/namespaces/display-axis.js.map +1 -1
- package/dist/i18n/namespaces/shell.js +4 -0
- package/dist/i18n/namespaces/shell.js.map +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/color-swatch-background.d.ts +27 -0
- package/dist/lib/color-swatch-background.js +32 -0
- package/dist/lib/color-swatch-background.js.map +1 -0
- package/dist/lib/script-literal.d.ts +13 -0
- package/dist/lib/script-literal.js +7 -0
- package/dist/lib/script-literal.js.map +1 -0
- package/dist/shell/app-brand.d.ts +22 -0
- package/dist/shell/app-brand.js +63 -0
- package/dist/shell/app-brand.js.map +1 -0
- package/dist/shell/app-header.d.ts +6 -1
- package/dist/shell/app-header.js +9 -4
- package/dist/shell/app-header.js.map +1 -1
- package/dist/shell/app-shell.d.ts +7 -0
- package/dist/shell/app-shell.js +16 -10
- package/dist/shell/app-shell.js.map +1 -1
- package/dist/shell/contrast-provider.js +2 -1
- package/dist/shell/contrast-provider.js.map +1 -1
- package/dist/shell/display-axis-constants.d.ts +20 -1
- package/dist/shell/display-axis-constants.js +14 -1
- package/dist/shell/display-axis-constants.js.map +1 -1
- package/dist/shell/display-axis-controls.d.ts +33 -2
- package/dist/shell/display-axis-controls.js +60 -3
- package/dist/shell/display-axis-controls.js.map +1 -1
- package/dist/shell/display-axis-provider.d.ts +67 -5
- package/dist/shell/display-axis-provider.js +34 -5
- package/dist/shell/display-axis-provider.js.map +1 -1
- package/dist/shell/display-prefs-seed.d.ts +9 -5
- package/dist/shell/display-prefs-seed.js +7 -3
- package/dist/shell/display-prefs-seed.js.map +1 -1
- package/dist/shell/index.d.ts +12 -5
- package/dist/shell/index.js +5 -0
- package/dist/shell/index.js.map +1 -1
- package/dist/shell/mobile-menu.d.ts +6 -0
- package/dist/shell/mobile-menu.js +54 -4
- package/dist/shell/mobile-menu.js.map +1 -1
- package/dist/shell/module-rail.d.ts +32 -0
- package/dist/shell/module-rail.js +144 -0
- package/dist/shell/module-rail.js.map +1 -0
- package/dist/shell/module-switcher.d.ts +22 -0
- package/dist/shell/module-switcher.js +105 -0
- package/dist/shell/module-switcher.js.map +1 -0
- package/dist/shell/module-tabs.d.ts +21 -0
- package/dist/shell/module-tabs.js +44 -0
- package/dist/shell/module-tabs.js.map +1 -0
- package/dist/shell/nav-badge.d.ts +24 -0
- package/dist/shell/nav-badge.js +14 -0
- package/dist/shell/nav-badge.js.map +1 -0
- package/dist/shell/shell-context.d.ts +55 -4
- package/dist/shell/shell-context.js +69 -5
- package/dist/shell/shell-context.js.map +1 -1
- package/dist/shell/sidebar-group.js +9 -2
- package/dist/shell/sidebar-group.js.map +1 -1
- package/dist/shell/sidebar-menu-item.js +4 -10
- package/dist/shell/sidebar-menu-item.js.map +1 -1
- package/dist/shell/sidebar.d.ts +15 -2
- package/dist/shell/sidebar.js +50 -15
- package/dist/shell/sidebar.js.map +1 -1
- package/dist/shell/types.d.ts +91 -3
- package/dist/shell/types.js.map +1 -1
- package/dist/shell/utils.d.ts +73 -2
- package/dist/shell/utils.js +56 -1
- package/dist/shell/utils.js.map +1 -1
- package/dist/tokens.d.ts +316 -2
- package/dist/tokens.js +295 -0
- package/dist/tokens.js.map +1 -1
- package/package.json +3 -2
- package/styles.css +409 -20
package/dist/tokens.d.ts
CHANGED
|
@@ -33,6 +33,316 @@ declare const gold: {
|
|
|
33
33
|
readonly 500: "#7A5800";
|
|
34
34
|
readonly 600: "#5C4006";
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* Bộ màu theme (3.15.0) — MIRROR của nhóm `--brand-*` trong từng khối `[data-palette="…"]` ở
|
|
38
|
+
* `styles.css` (khối 4c), cho nơi không có CSS: email, PDF, canvas, và ô màu mẫu ở trang cài đặt
|
|
39
|
+
* của app không dùng `PalettePicker`. Tên bộ là TÊN MÀU. `gold` là bộ mặc định (không gắn thuộc tính).
|
|
40
|
+
*
|
|
41
|
+
* Vai trò (đọc kèm khối 4 của styles.css):
|
|
42
|
+
* `light.brand` + `light.brandForeground` nền đặc + chữ trên nó (nút chính, control BẬT)
|
|
43
|
+
* `light.tint` nền nhạt (`--accent`, `--sidebar-accent`)
|
|
44
|
+
* `light.link` / `light.linkHover` link trên nền trang, bảng thường
|
|
45
|
+
* `light.ink` / `light.inkStrong` màu thương hiệu ở vai trò chữ (bảng tương phản cao dùng cho link)
|
|
46
|
+
* `light.controlStrong` (+ Foreground) control BẬT ở bảng tương phản cao
|
|
47
|
+
* `dark.brand` + `dark.brandForeground` nền đặc ở dark
|
|
48
|
+
* `dark.hover` nền nút chính lúc hover ở dark (`--primary-hover`)
|
|
49
|
+
* `dark.link…` / `dark.linkStrong…` link ở dark, bảng thường / tương phản cao
|
|
50
|
+
* `dark.chart` chart-1 ở dark
|
|
51
|
+
*
|
|
52
|
+
* ⚠ `pnpm lint:palettes` đối chiếu bảng này với `styles.css` từng ô — sửa một bên mà quên bên kia là đỏ.
|
|
53
|
+
*/
|
|
54
|
+
declare const themePalettes: {
|
|
55
|
+
readonly gold: {
|
|
56
|
+
readonly light: {
|
|
57
|
+
readonly brand: "#E8B824";
|
|
58
|
+
readonly brandForeground: "#0E1116";
|
|
59
|
+
readonly tint: "#FBF5DC";
|
|
60
|
+
readonly link: "#B88A00";
|
|
61
|
+
readonly linkHover: "#E8B824";
|
|
62
|
+
readonly ink: "#7A5800";
|
|
63
|
+
readonly inkStrong: "#5C4006";
|
|
64
|
+
readonly controlStrong: "#B48700";
|
|
65
|
+
readonly controlStrongForeground: "#0E1116";
|
|
66
|
+
};
|
|
67
|
+
readonly dark: {
|
|
68
|
+
readonly brand: "#F5D060";
|
|
69
|
+
readonly brandForeground: "#0E1116";
|
|
70
|
+
readonly hover: "#B88A00";
|
|
71
|
+
readonly link: "#B88A00";
|
|
72
|
+
readonly linkHover: "#E8B824";
|
|
73
|
+
readonly linkStrong: "#F5D060";
|
|
74
|
+
readonly linkStrongHover: "#F8E89D";
|
|
75
|
+
readonly chart: "#E8B824";
|
|
76
|
+
};
|
|
77
|
+
readonly scale: {
|
|
78
|
+
readonly 50: "#FBF5DC";
|
|
79
|
+
readonly 100: "#F8E89D";
|
|
80
|
+
readonly 200: "#F5D060";
|
|
81
|
+
readonly 300: "#E8B824";
|
|
82
|
+
readonly 400: "#B88A00";
|
|
83
|
+
readonly 500: "#7A5800";
|
|
84
|
+
readonly 600: "#5C4006";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
readonly green: {
|
|
88
|
+
readonly light: {
|
|
89
|
+
readonly brand: "#5C9732";
|
|
90
|
+
readonly brandForeground: "#0E1116";
|
|
91
|
+
readonly tint: "#EFF5E7";
|
|
92
|
+
readonly link: "#41791F";
|
|
93
|
+
readonly linkHover: "#35641A";
|
|
94
|
+
readonly ink: "#3A6A1D";
|
|
95
|
+
readonly inkStrong: "#2A4D14";
|
|
96
|
+
readonly controlStrong: "#5C9732";
|
|
97
|
+
readonly controlStrongForeground: "#0E1116";
|
|
98
|
+
};
|
|
99
|
+
readonly dark: {
|
|
100
|
+
readonly brand: "#8CC35C";
|
|
101
|
+
readonly brandForeground: "#0E1116";
|
|
102
|
+
readonly hover: "#709C4D";
|
|
103
|
+
readonly link: "#8CC35C";
|
|
104
|
+
readonly linkHover: "#A6D17F";
|
|
105
|
+
readonly linkStrong: "#A6D17F";
|
|
106
|
+
readonly linkStrongHover: "#C2E2A6";
|
|
107
|
+
readonly chart: "#8CC35C";
|
|
108
|
+
};
|
|
109
|
+
readonly scale: {
|
|
110
|
+
readonly 50: "#EFF5E7";
|
|
111
|
+
readonly 100: "#D0E1C4";
|
|
112
|
+
readonly 200: "#8CC35C";
|
|
113
|
+
readonly 300: "#5C9732";
|
|
114
|
+
readonly 400: "#70A34B";
|
|
115
|
+
readonly 500: "#3A6A1D";
|
|
116
|
+
readonly 600: "#2A4D14";
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
readonly teal: {
|
|
120
|
+
readonly light: {
|
|
121
|
+
readonly brand: "#006885";
|
|
122
|
+
readonly brandForeground: "#FFFFFF";
|
|
123
|
+
readonly tint: "#E6F0F3";
|
|
124
|
+
readonly link: "#006885";
|
|
125
|
+
readonly linkHover: "#005C76";
|
|
126
|
+
readonly ink: "#005C76";
|
|
127
|
+
readonly inkStrong: "#003C4D";
|
|
128
|
+
readonly controlStrong: "#006885";
|
|
129
|
+
readonly controlStrongForeground: "#FFFFFF";
|
|
130
|
+
};
|
|
131
|
+
readonly dark: {
|
|
132
|
+
readonly brand: "#5CB2C9";
|
|
133
|
+
readonly brandForeground: "#0E1116";
|
|
134
|
+
readonly hover: "#509AAE";
|
|
135
|
+
readonly link: "#5CB2C9";
|
|
136
|
+
readonly linkHover: "#8CCBDC";
|
|
137
|
+
readonly linkStrong: "#8CCBDC";
|
|
138
|
+
readonly linkStrongHover: "#B5DFEA";
|
|
139
|
+
readonly chart: "#5CB2C9";
|
|
140
|
+
};
|
|
141
|
+
readonly scale: {
|
|
142
|
+
readonly 50: "#E6F0F3";
|
|
143
|
+
readonly 100: "#B3D2DA";
|
|
144
|
+
readonly 200: "#5CB2C9";
|
|
145
|
+
readonly 300: "#006885";
|
|
146
|
+
readonly 400: "#005C75";
|
|
147
|
+
readonly 500: "#005C76";
|
|
148
|
+
readonly 600: "#003C4D";
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
readonly blue: {
|
|
152
|
+
readonly light: {
|
|
153
|
+
readonly brand: "#1960F8";
|
|
154
|
+
readonly brandForeground: "#FFFFFF";
|
|
155
|
+
readonly tint: "#EBF1FF";
|
|
156
|
+
readonly link: "#1A56DB";
|
|
157
|
+
readonly linkHover: "#1746B8";
|
|
158
|
+
readonly ink: "#1A4FC4";
|
|
159
|
+
readonly inkStrong: "#123A91";
|
|
160
|
+
readonly controlStrong: "#1960F8";
|
|
161
|
+
readonly controlStrongForeground: "#FFFFFF";
|
|
162
|
+
};
|
|
163
|
+
readonly dark: {
|
|
164
|
+
readonly brand: "#7EA6FF";
|
|
165
|
+
readonly brandForeground: "#0E1116";
|
|
166
|
+
readonly hover: "#6C8EDA";
|
|
167
|
+
readonly link: "#7EA6FF";
|
|
168
|
+
readonly linkHover: "#A6C2FF";
|
|
169
|
+
readonly linkStrong: "#A6C2FF";
|
|
170
|
+
readonly linkStrongHover: "#C8DAFF";
|
|
171
|
+
readonly chart: "#7EA6FF";
|
|
172
|
+
};
|
|
173
|
+
readonly scale: {
|
|
174
|
+
readonly 50: "#EBF1FF";
|
|
175
|
+
readonly 100: "#C3D6FD";
|
|
176
|
+
readonly 200: "#7EA6FF";
|
|
177
|
+
readonly 300: "#1960F8";
|
|
178
|
+
readonly 400: "#1654DA";
|
|
179
|
+
readonly 500: "#1A4FC4";
|
|
180
|
+
readonly 600: "#123A91";
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
readonly indigo: {
|
|
184
|
+
readonly light: {
|
|
185
|
+
readonly brand: "#4F46E5";
|
|
186
|
+
readonly brandForeground: "#FFFFFF";
|
|
187
|
+
readonly tint: "#EEF0FD";
|
|
188
|
+
readonly link: "#4F46E5";
|
|
189
|
+
readonly linkHover: "#4338CA";
|
|
190
|
+
readonly ink: "#4338CA";
|
|
191
|
+
readonly inkStrong: "#312A96";
|
|
192
|
+
readonly controlStrong: "#4F46E5";
|
|
193
|
+
readonly controlStrongForeground: "#FFFFFF";
|
|
194
|
+
};
|
|
195
|
+
readonly dark: {
|
|
196
|
+
readonly brand: "#A5B0FB";
|
|
197
|
+
readonly brandForeground: "#0E1116";
|
|
198
|
+
readonly hover: "#848DC9";
|
|
199
|
+
readonly link: "#A5B0FB";
|
|
200
|
+
readonly linkHover: "#C3CAFD";
|
|
201
|
+
readonly linkStrong: "#C3CAFD";
|
|
202
|
+
readonly linkStrongHover: "#DDE1FE";
|
|
203
|
+
readonly chart: "#A5B0FB";
|
|
204
|
+
};
|
|
205
|
+
readonly scale: {
|
|
206
|
+
readonly 50: "#EEF0FD";
|
|
207
|
+
readonly 100: "#CECBF8";
|
|
208
|
+
readonly 200: "#A5B0FB";
|
|
209
|
+
readonly 300: "#4F46E5";
|
|
210
|
+
readonly 400: "#463ECA";
|
|
211
|
+
readonly 500: "#4338CA";
|
|
212
|
+
readonly 600: "#312A96";
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
readonly violet: {
|
|
216
|
+
readonly light: {
|
|
217
|
+
readonly brand: "#7C3AED";
|
|
218
|
+
readonly brandForeground: "#FFFFFF";
|
|
219
|
+
readonly tint: "#F3EEFD";
|
|
220
|
+
readonly link: "#7036D6";
|
|
221
|
+
readonly linkHover: "#5F2DB6";
|
|
222
|
+
readonly ink: "#6530C2";
|
|
223
|
+
readonly inkStrong: "#4A238F";
|
|
224
|
+
readonly controlStrong: "#7C3AED";
|
|
225
|
+
readonly controlStrongForeground: "#FFFFFF";
|
|
226
|
+
};
|
|
227
|
+
readonly dark: {
|
|
228
|
+
readonly brand: "#BFA3FB";
|
|
229
|
+
readonly brandForeground: "#0E1116";
|
|
230
|
+
readonly hover: "#9A84CB";
|
|
231
|
+
readonly link: "#BFA3FB";
|
|
232
|
+
readonly linkHover: "#D4C1FC";
|
|
233
|
+
readonly linkStrong: "#D4C1FC";
|
|
234
|
+
readonly linkStrongHover: "#E6DBFE";
|
|
235
|
+
readonly chart: "#BFA3FB";
|
|
236
|
+
};
|
|
237
|
+
readonly scale: {
|
|
238
|
+
readonly 50: "#F3EEFD";
|
|
239
|
+
readonly 100: "#DAC8FA";
|
|
240
|
+
readonly 200: "#BFA3FB";
|
|
241
|
+
readonly 300: "#7C3AED";
|
|
242
|
+
readonly 400: "#6D33D1";
|
|
243
|
+
readonly 500: "#6530C2";
|
|
244
|
+
readonly 600: "#4A238F";
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
readonly rose: {
|
|
248
|
+
readonly light: {
|
|
249
|
+
readonly brand: "#D6214E";
|
|
250
|
+
readonly brandForeground: "#FFFFFF";
|
|
251
|
+
readonly tint: "#FDECF0";
|
|
252
|
+
readonly link: "#C01C46";
|
|
253
|
+
readonly linkHover: "#A1173B";
|
|
254
|
+
readonly ink: "#A8193F";
|
|
255
|
+
readonly inkStrong: "#7A112D";
|
|
256
|
+
readonly controlStrong: "#D6214E";
|
|
257
|
+
readonly controlStrongForeground: "#FFFFFF";
|
|
258
|
+
};
|
|
259
|
+
readonly dark: {
|
|
260
|
+
readonly brand: "#FB7F9B";
|
|
261
|
+
readonly brandForeground: "#0E1116";
|
|
262
|
+
readonly hover: "#DA7088";
|
|
263
|
+
readonly link: "#FB7F9B";
|
|
264
|
+
readonly linkHover: "#FDA4B8";
|
|
265
|
+
readonly linkStrong: "#FDA4B8";
|
|
266
|
+
readonly linkStrongHover: "#FEC8D4";
|
|
267
|
+
readonly chart: "#FB7F9B";
|
|
268
|
+
};
|
|
269
|
+
readonly scale: {
|
|
270
|
+
readonly 50: "#FDECF0";
|
|
271
|
+
readonly 100: "#F4C5D1";
|
|
272
|
+
readonly 200: "#FB7F9B";
|
|
273
|
+
readonly 300: "#D6214E";
|
|
274
|
+
readonly 400: "#BC1D45";
|
|
275
|
+
readonly 500: "#A8193F";
|
|
276
|
+
readonly 600: "#7A112D";
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
readonly orange: {
|
|
280
|
+
readonly light: {
|
|
281
|
+
readonly brand: "#C2410C";
|
|
282
|
+
readonly brandForeground: "#FFFFFF";
|
|
283
|
+
readonly tint: "#FDF0E8";
|
|
284
|
+
readonly link: "#B23C0B";
|
|
285
|
+
readonly linkHover: "#943209";
|
|
286
|
+
readonly ink: "#9A3412";
|
|
287
|
+
readonly inkStrong: "#6F250C";
|
|
288
|
+
readonly controlStrong: "#C2410C";
|
|
289
|
+
readonly controlStrongForeground: "#FFFFFF";
|
|
290
|
+
};
|
|
291
|
+
readonly dark: {
|
|
292
|
+
readonly brand: "#FB9A52";
|
|
293
|
+
readonly brandForeground: "#0E1116";
|
|
294
|
+
readonly hover: "#C97D45";
|
|
295
|
+
readonly link: "#FB9A52";
|
|
296
|
+
readonly linkHover: "#FDB983";
|
|
297
|
+
readonly linkStrong: "#FDB983";
|
|
298
|
+
readonly linkStrongHover: "#FED3B2";
|
|
299
|
+
readonly chart: "#FB9A52";
|
|
300
|
+
};
|
|
301
|
+
readonly scale: {
|
|
302
|
+
readonly 50: "#FDF0E8";
|
|
303
|
+
readonly 100: "#EECABB";
|
|
304
|
+
readonly 200: "#FB9A52";
|
|
305
|
+
readonly 300: "#C2410C";
|
|
306
|
+
readonly 400: "#AB390B";
|
|
307
|
+
readonly 500: "#9A3412";
|
|
308
|
+
readonly 600: "#6F250C";
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
readonly graphite: {
|
|
312
|
+
readonly light: {
|
|
313
|
+
readonly brand: "#2B303A";
|
|
314
|
+
readonly brandForeground: "#FFFFFF";
|
|
315
|
+
readonly tint: "#F1F2F4";
|
|
316
|
+
readonly link: "#3A3F4A";
|
|
317
|
+
readonly linkHover: "#16181D";
|
|
318
|
+
readonly ink: "#3A3F4A";
|
|
319
|
+
readonly inkStrong: "#16181D";
|
|
320
|
+
readonly controlStrong: "#2B303A";
|
|
321
|
+
readonly controlStrongForeground: "#FFFFFF";
|
|
322
|
+
};
|
|
323
|
+
readonly dark: {
|
|
324
|
+
readonly brand: "#E4E6EA";
|
|
325
|
+
readonly brandForeground: "#0E1116";
|
|
326
|
+
readonly hover: "#8E9195";
|
|
327
|
+
readonly link: "#C8CBD3";
|
|
328
|
+
readonly linkHover: "#EDEEF1";
|
|
329
|
+
readonly linkStrong: "#EDEEF1";
|
|
330
|
+
readonly linkStrongHover: "#FFFFFF";
|
|
331
|
+
readonly chart: "#E4E6EA";
|
|
332
|
+
};
|
|
333
|
+
readonly scale: {
|
|
334
|
+
readonly 50: "#F1F2F4";
|
|
335
|
+
readonly 100: "#DFE1E5";
|
|
336
|
+
readonly 200: "#E4E6EA";
|
|
337
|
+
readonly 300: "#2B303A";
|
|
338
|
+
readonly 400: "#262A33";
|
|
339
|
+
readonly 500: "#3A3F4A";
|
|
340
|
+
readonly 600: "#16181D";
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
/** Tên một bộ màu theme — khoá của `themePalettes`. */
|
|
345
|
+
type ThemePaletteName = keyof typeof themePalettes;
|
|
36
346
|
/** Trung tính brand (khác thang ash — đây là màu "giấy/mực" của brand book). */
|
|
37
347
|
declare const brandNeutral: {
|
|
38
348
|
readonly ink: "#0E1116";
|
|
@@ -466,7 +776,7 @@ declare const chart: {
|
|
|
466
776
|
*/
|
|
467
777
|
declare function getAvatarToneColors(name: string, mode?: ThemeMode): AvatarToneColors;
|
|
468
778
|
|
|
469
|
-
/** Số đo khung ứng dụng — mirror --sidebar-width / --sidebar-width-icon / --header-height. */
|
|
779
|
+
/** Số đo khung ứng dụng — mirror --sidebar-width / --sidebar-width-icon / --module-rail-width / --module-panel-width / --header-height. */
|
|
470
780
|
declare const layout: {
|
|
471
781
|
/** px — --header-height 3.5rem */
|
|
472
782
|
readonly headerHeight: 56;
|
|
@@ -474,6 +784,10 @@ declare const layout: {
|
|
|
474
784
|
readonly sidebarWidth: 256;
|
|
475
785
|
/** px — --sidebar-width-icon 3.5rem */
|
|
476
786
|
readonly sidebarCollapsedWidth: 56;
|
|
787
|
+
/** px — --module-rail-width 4.5rem (thanh phân hệ, 3.16.0) */
|
|
788
|
+
readonly moduleRailWidth: 72;
|
|
789
|
+
/** px — --module-panel-width 15rem (thanh bên cạnh thanh phân hệ, 3.16.0) */
|
|
790
|
+
readonly modulePanelWidth: 240;
|
|
477
791
|
/** px — --radius 0.375rem */
|
|
478
792
|
readonly radius: 6;
|
|
479
793
|
readonly breakpoints: {
|
|
@@ -491,4 +805,4 @@ declare const typography: {
|
|
|
491
805
|
};
|
|
492
806
|
type ThemeMode = "light" | "dark";
|
|
493
807
|
|
|
494
|
-
export { AvatarToneColors, type ThemeMode, accent, accentForeground, accentInk, ash, brandNeutral, chart, getAvatarToneColors, gold, highContrast, layout, semantic, status, typography };
|
|
808
|
+
export { AvatarToneColors, type ThemeMode, type ThemePaletteName, accent, accentForeground, accentInk, ash, brandNeutral, chart, getAvatarToneColors, gold, highContrast, layout, semantic, status, themePalettes, typography };
|
package/dist/tokens.js
CHANGED
|
@@ -9,6 +9,296 @@ const gold = {
|
|
|
9
9
|
500: "#7A5800",
|
|
10
10
|
600: "#5C4006"
|
|
11
11
|
};
|
|
12
|
+
const themePalettes = {
|
|
13
|
+
gold: {
|
|
14
|
+
light: {
|
|
15
|
+
brand: "#E8B824",
|
|
16
|
+
brandForeground: "#0E1116",
|
|
17
|
+
tint: "#FBF5DC",
|
|
18
|
+
link: "#B88A00",
|
|
19
|
+
linkHover: "#E8B824",
|
|
20
|
+
ink: "#7A5800",
|
|
21
|
+
inkStrong: "#5C4006",
|
|
22
|
+
controlStrong: "#B48700",
|
|
23
|
+
controlStrongForeground: "#0E1116"
|
|
24
|
+
},
|
|
25
|
+
dark: {
|
|
26
|
+
brand: "#F5D060",
|
|
27
|
+
brandForeground: "#0E1116",
|
|
28
|
+
hover: "#B88A00",
|
|
29
|
+
link: "#B88A00",
|
|
30
|
+
linkHover: "#E8B824",
|
|
31
|
+
linkStrong: "#F5D060",
|
|
32
|
+
linkStrongHover: "#F8E89D",
|
|
33
|
+
chart: "#E8B824"
|
|
34
|
+
},
|
|
35
|
+
scale: {
|
|
36
|
+
50: "#FBF5DC",
|
|
37
|
+
100: "#F8E89D",
|
|
38
|
+
200: "#F5D060",
|
|
39
|
+
300: "#E8B824",
|
|
40
|
+
400: "#B88A00",
|
|
41
|
+
500: "#7A5800",
|
|
42
|
+
600: "#5C4006"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
green: {
|
|
46
|
+
light: {
|
|
47
|
+
brand: "#5C9732",
|
|
48
|
+
brandForeground: "#0E1116",
|
|
49
|
+
tint: "#EFF5E7",
|
|
50
|
+
link: "#41791F",
|
|
51
|
+
linkHover: "#35641A",
|
|
52
|
+
ink: "#3A6A1D",
|
|
53
|
+
inkStrong: "#2A4D14",
|
|
54
|
+
controlStrong: "#5C9732",
|
|
55
|
+
controlStrongForeground: "#0E1116"
|
|
56
|
+
},
|
|
57
|
+
dark: {
|
|
58
|
+
brand: "#8CC35C",
|
|
59
|
+
brandForeground: "#0E1116",
|
|
60
|
+
hover: "#709C4D",
|
|
61
|
+
link: "#8CC35C",
|
|
62
|
+
linkHover: "#A6D17F",
|
|
63
|
+
linkStrong: "#A6D17F",
|
|
64
|
+
linkStrongHover: "#C2E2A6",
|
|
65
|
+
chart: "#8CC35C"
|
|
66
|
+
},
|
|
67
|
+
scale: {
|
|
68
|
+
50: "#EFF5E7",
|
|
69
|
+
100: "#D0E1C4",
|
|
70
|
+
200: "#8CC35C",
|
|
71
|
+
300: "#5C9732",
|
|
72
|
+
400: "#70A34B",
|
|
73
|
+
500: "#3A6A1D",
|
|
74
|
+
600: "#2A4D14"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
teal: {
|
|
78
|
+
light: {
|
|
79
|
+
brand: "#006885",
|
|
80
|
+
brandForeground: "#FFFFFF",
|
|
81
|
+
tint: "#E6F0F3",
|
|
82
|
+
link: "#006885",
|
|
83
|
+
linkHover: "#005C76",
|
|
84
|
+
ink: "#005C76",
|
|
85
|
+
inkStrong: "#003C4D",
|
|
86
|
+
controlStrong: "#006885",
|
|
87
|
+
controlStrongForeground: "#FFFFFF"
|
|
88
|
+
},
|
|
89
|
+
dark: {
|
|
90
|
+
brand: "#5CB2C9",
|
|
91
|
+
brandForeground: "#0E1116",
|
|
92
|
+
hover: "#509AAE",
|
|
93
|
+
link: "#5CB2C9",
|
|
94
|
+
linkHover: "#8CCBDC",
|
|
95
|
+
linkStrong: "#8CCBDC",
|
|
96
|
+
linkStrongHover: "#B5DFEA",
|
|
97
|
+
chart: "#5CB2C9"
|
|
98
|
+
},
|
|
99
|
+
scale: {
|
|
100
|
+
50: "#E6F0F3",
|
|
101
|
+
100: "#B3D2DA",
|
|
102
|
+
200: "#5CB2C9",
|
|
103
|
+
300: "#006885",
|
|
104
|
+
400: "#005C75",
|
|
105
|
+
500: "#005C76",
|
|
106
|
+
600: "#003C4D"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
blue: {
|
|
110
|
+
light: {
|
|
111
|
+
brand: "#1960F8",
|
|
112
|
+
brandForeground: "#FFFFFF",
|
|
113
|
+
tint: "#EBF1FF",
|
|
114
|
+
link: "#1A56DB",
|
|
115
|
+
linkHover: "#1746B8",
|
|
116
|
+
ink: "#1A4FC4",
|
|
117
|
+
inkStrong: "#123A91",
|
|
118
|
+
controlStrong: "#1960F8",
|
|
119
|
+
controlStrongForeground: "#FFFFFF"
|
|
120
|
+
},
|
|
121
|
+
dark: {
|
|
122
|
+
brand: "#7EA6FF",
|
|
123
|
+
brandForeground: "#0E1116",
|
|
124
|
+
hover: "#6C8EDA",
|
|
125
|
+
link: "#7EA6FF",
|
|
126
|
+
linkHover: "#A6C2FF",
|
|
127
|
+
linkStrong: "#A6C2FF",
|
|
128
|
+
linkStrongHover: "#C8DAFF",
|
|
129
|
+
chart: "#7EA6FF"
|
|
130
|
+
},
|
|
131
|
+
scale: {
|
|
132
|
+
50: "#EBF1FF",
|
|
133
|
+
100: "#C3D6FD",
|
|
134
|
+
200: "#7EA6FF",
|
|
135
|
+
300: "#1960F8",
|
|
136
|
+
400: "#1654DA",
|
|
137
|
+
500: "#1A4FC4",
|
|
138
|
+
600: "#123A91"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
indigo: {
|
|
142
|
+
light: {
|
|
143
|
+
brand: "#4F46E5",
|
|
144
|
+
brandForeground: "#FFFFFF",
|
|
145
|
+
tint: "#EEF0FD",
|
|
146
|
+
link: "#4F46E5",
|
|
147
|
+
linkHover: "#4338CA",
|
|
148
|
+
ink: "#4338CA",
|
|
149
|
+
inkStrong: "#312A96",
|
|
150
|
+
controlStrong: "#4F46E5",
|
|
151
|
+
controlStrongForeground: "#FFFFFF"
|
|
152
|
+
},
|
|
153
|
+
dark: {
|
|
154
|
+
brand: "#A5B0FB",
|
|
155
|
+
brandForeground: "#0E1116",
|
|
156
|
+
hover: "#848DC9",
|
|
157
|
+
link: "#A5B0FB",
|
|
158
|
+
linkHover: "#C3CAFD",
|
|
159
|
+
linkStrong: "#C3CAFD",
|
|
160
|
+
linkStrongHover: "#DDE1FE",
|
|
161
|
+
chart: "#A5B0FB"
|
|
162
|
+
},
|
|
163
|
+
scale: {
|
|
164
|
+
50: "#EEF0FD",
|
|
165
|
+
100: "#CECBF8",
|
|
166
|
+
200: "#A5B0FB",
|
|
167
|
+
300: "#4F46E5",
|
|
168
|
+
400: "#463ECA",
|
|
169
|
+
500: "#4338CA",
|
|
170
|
+
600: "#312A96"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
violet: {
|
|
174
|
+
light: {
|
|
175
|
+
brand: "#7C3AED",
|
|
176
|
+
brandForeground: "#FFFFFF",
|
|
177
|
+
tint: "#F3EEFD",
|
|
178
|
+
link: "#7036D6",
|
|
179
|
+
linkHover: "#5F2DB6",
|
|
180
|
+
ink: "#6530C2",
|
|
181
|
+
inkStrong: "#4A238F",
|
|
182
|
+
controlStrong: "#7C3AED",
|
|
183
|
+
controlStrongForeground: "#FFFFFF"
|
|
184
|
+
},
|
|
185
|
+
dark: {
|
|
186
|
+
brand: "#BFA3FB",
|
|
187
|
+
brandForeground: "#0E1116",
|
|
188
|
+
hover: "#9A84CB",
|
|
189
|
+
link: "#BFA3FB",
|
|
190
|
+
linkHover: "#D4C1FC",
|
|
191
|
+
linkStrong: "#D4C1FC",
|
|
192
|
+
linkStrongHover: "#E6DBFE",
|
|
193
|
+
chart: "#BFA3FB"
|
|
194
|
+
},
|
|
195
|
+
scale: {
|
|
196
|
+
50: "#F3EEFD",
|
|
197
|
+
100: "#DAC8FA",
|
|
198
|
+
200: "#BFA3FB",
|
|
199
|
+
300: "#7C3AED",
|
|
200
|
+
400: "#6D33D1",
|
|
201
|
+
500: "#6530C2",
|
|
202
|
+
600: "#4A238F"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
rose: {
|
|
206
|
+
light: {
|
|
207
|
+
brand: "#D6214E",
|
|
208
|
+
brandForeground: "#FFFFFF",
|
|
209
|
+
tint: "#FDECF0",
|
|
210
|
+
link: "#C01C46",
|
|
211
|
+
linkHover: "#A1173B",
|
|
212
|
+
ink: "#A8193F",
|
|
213
|
+
inkStrong: "#7A112D",
|
|
214
|
+
controlStrong: "#D6214E",
|
|
215
|
+
controlStrongForeground: "#FFFFFF"
|
|
216
|
+
},
|
|
217
|
+
dark: {
|
|
218
|
+
brand: "#FB7F9B",
|
|
219
|
+
brandForeground: "#0E1116",
|
|
220
|
+
hover: "#DA7088",
|
|
221
|
+
link: "#FB7F9B",
|
|
222
|
+
linkHover: "#FDA4B8",
|
|
223
|
+
linkStrong: "#FDA4B8",
|
|
224
|
+
linkStrongHover: "#FEC8D4",
|
|
225
|
+
chart: "#FB7F9B"
|
|
226
|
+
},
|
|
227
|
+
scale: {
|
|
228
|
+
50: "#FDECF0",
|
|
229
|
+
100: "#F4C5D1",
|
|
230
|
+
200: "#FB7F9B",
|
|
231
|
+
300: "#D6214E",
|
|
232
|
+
400: "#BC1D45",
|
|
233
|
+
500: "#A8193F",
|
|
234
|
+
600: "#7A112D"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
orange: {
|
|
238
|
+
light: {
|
|
239
|
+
brand: "#C2410C",
|
|
240
|
+
brandForeground: "#FFFFFF",
|
|
241
|
+
tint: "#FDF0E8",
|
|
242
|
+
link: "#B23C0B",
|
|
243
|
+
linkHover: "#943209",
|
|
244
|
+
ink: "#9A3412",
|
|
245
|
+
inkStrong: "#6F250C",
|
|
246
|
+
controlStrong: "#C2410C",
|
|
247
|
+
controlStrongForeground: "#FFFFFF"
|
|
248
|
+
},
|
|
249
|
+
dark: {
|
|
250
|
+
brand: "#FB9A52",
|
|
251
|
+
brandForeground: "#0E1116",
|
|
252
|
+
hover: "#C97D45",
|
|
253
|
+
link: "#FB9A52",
|
|
254
|
+
linkHover: "#FDB983",
|
|
255
|
+
linkStrong: "#FDB983",
|
|
256
|
+
linkStrongHover: "#FED3B2",
|
|
257
|
+
chart: "#FB9A52"
|
|
258
|
+
},
|
|
259
|
+
scale: {
|
|
260
|
+
50: "#FDF0E8",
|
|
261
|
+
100: "#EECABB",
|
|
262
|
+
200: "#FB9A52",
|
|
263
|
+
300: "#C2410C",
|
|
264
|
+
400: "#AB390B",
|
|
265
|
+
500: "#9A3412",
|
|
266
|
+
600: "#6F250C"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
graphite: {
|
|
270
|
+
light: {
|
|
271
|
+
brand: "#2B303A",
|
|
272
|
+
brandForeground: "#FFFFFF",
|
|
273
|
+
tint: "#F1F2F4",
|
|
274
|
+
link: "#3A3F4A",
|
|
275
|
+
linkHover: "#16181D",
|
|
276
|
+
ink: "#3A3F4A",
|
|
277
|
+
inkStrong: "#16181D",
|
|
278
|
+
controlStrong: "#2B303A",
|
|
279
|
+
controlStrongForeground: "#FFFFFF"
|
|
280
|
+
},
|
|
281
|
+
dark: {
|
|
282
|
+
brand: "#E4E6EA",
|
|
283
|
+
brandForeground: "#0E1116",
|
|
284
|
+
hover: "#8E9195",
|
|
285
|
+
link: "#C8CBD3",
|
|
286
|
+
linkHover: "#EDEEF1",
|
|
287
|
+
linkStrong: "#EDEEF1",
|
|
288
|
+
linkStrongHover: "#FFFFFF",
|
|
289
|
+
chart: "#E4E6EA"
|
|
290
|
+
},
|
|
291
|
+
scale: {
|
|
292
|
+
50: "#F1F2F4",
|
|
293
|
+
100: "#DFE1E5",
|
|
294
|
+
200: "#E4E6EA",
|
|
295
|
+
300: "#2B303A",
|
|
296
|
+
400: "#262A33",
|
|
297
|
+
500: "#3A3F4A",
|
|
298
|
+
600: "#16181D"
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
};
|
|
12
302
|
const brandNeutral = {
|
|
13
303
|
ink: "#0E1116",
|
|
14
304
|
inkSoft: "#3A3F4A",
|
|
@@ -360,6 +650,10 @@ const layout = {
|
|
|
360
650
|
sidebarWidth: 256,
|
|
361
651
|
/** px — --sidebar-width-icon 3.5rem */
|
|
362
652
|
sidebarCollapsedWidth: 56,
|
|
653
|
+
/** px — --module-rail-width 4.5rem (thanh phân hệ, 3.16.0) */
|
|
654
|
+
moduleRailWidth: 72,
|
|
655
|
+
/** px — --module-panel-width 15rem (thanh bên cạnh thanh phân hệ, 3.16.0) */
|
|
656
|
+
modulePanelWidth: 240,
|
|
363
657
|
/** px — --radius 0.375rem */
|
|
364
658
|
radius: 6,
|
|
365
659
|
breakpoints: { mobile: 768, tablet: 1024, desktop: 1280 },
|
|
@@ -384,6 +678,7 @@ export {
|
|
|
384
678
|
layout,
|
|
385
679
|
semantic,
|
|
386
680
|
status,
|
|
681
|
+
themePalettes,
|
|
387
682
|
typography
|
|
388
683
|
};
|
|
389
684
|
//# sourceMappingURL=tokens.js.map
|