@qilin-agent/client-ui-theme-brand 3.1.6 → 3.1.7

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/lib/index.js CHANGED
@@ -1,9 +1,804 @@
1
+ //#region lib/types/packs/qilin.js
2
+ /**
3
+ * The dark-gold color pack: the "玄金" landing VI extended to both schemes.
4
+ *
5
+ * The dark values transplant the landing page's tokens verbatim
6
+ * (apps/web/src/landing/landing.css); the light values derive the matching
7
+ * warm-paper variant because the landing VI ships no light mode. Accent
8
+ * contrast is WCAG AA verified: the deep link gold #7d6126 clears 5.3:1 on
9
+ * paper #f8f5ee where the VI's gold-700 #8f6f2e reaches only 4.3:1, and
10
+ * white on gold-700 (light primary buttons) holds 4.7:1.
11
+ *
12
+ * Omitted on purpose: state colors (error/success/warn/info), the ongoing
13
+ * blue state-business family (kept distinct from warn amber), masks, and
14
+ * tokens with no current component consumer. Hover follows each platform's
15
+ * convention: dark schemes brighten (landing CTA gold-500 -> gold-300),
16
+ * light schemes darken (gold-700 -> #7d6126).
17
+ */
18
+ /** Dark-gold tokens over the platform palettes. Every value states both schemes. */
19
+ const QILIN_TOKENS = Object.freeze({
20
+ "--qilin-alias-brand-primary": {
21
+ light: "#8f6f2e",
22
+ dark: "#c9a24a"
23
+ },
24
+ "--qilin-alias-button-primary-hover": {
25
+ light: "#7d6126",
26
+ dark: "#f3dc9e"
27
+ },
28
+ "--qilin-alias-link": {
29
+ light: "#7d6126",
30
+ dark: "#f3dc9e"
31
+ },
32
+ "--qilin-alias-bg-base": {
33
+ light: "#f8f5ee",
34
+ dark: "#0d0b09"
35
+ },
36
+ "--qilin-alias-bg-layer-1": {
37
+ light: "#fdfbf5",
38
+ dark: "#16130f"
39
+ },
40
+ "--qilin-alias-bg-layer-2": {
41
+ light: "#fdfbf5",
42
+ dark: "#1d1915"
43
+ },
44
+ "--qilin-alias-bg-layer-3": {
45
+ light: "#fdfbf5",
46
+ dark: "#26211c"
47
+ },
48
+ "--qilin-alias-bg-overlay": {
49
+ light: "#e9e3d6",
50
+ dark: "#4f4939"
51
+ },
52
+ "--qilin-alias-bg-skeleton": {
53
+ light: "rgba(64, 52, 30, 0.06)",
54
+ dark: "rgba(239, 233, 223, 0.08)"
55
+ },
56
+ "--qilin-specific-sidebar-fill": {
57
+ light: "#f1ece0",
58
+ dark: "#0d0b09"
59
+ },
60
+ "--qilin-specific-sidebar-nav-item-hover": {
61
+ light: "#ede7d9",
62
+ dark: "#1a1611"
63
+ },
64
+ "--qilin-specific-sidebar-nav-item-active": {
65
+ light: "#e8e1d0",
66
+ dark: "#221d16"
67
+ },
68
+ "--qilin-specific-sidebar-nav-item-active-accent": {
69
+ light: "#8f6f2e",
70
+ dark: "#c9a24a"
71
+ },
72
+ "--qilin-specific-bubble": {
73
+ light: "#f3edde",
74
+ dark: "#221d17"
75
+ },
76
+ "--qilin-specific-input-major": {
77
+ light: "#fffdf8",
78
+ dark: "#211c16"
79
+ },
80
+ "--qilin-specific-selector": {
81
+ light: "#f4f0e6",
82
+ dark: "#26211c"
83
+ },
84
+ "--qilin-specific-tip": {
85
+ light: "#f4f0e6",
86
+ dark: "#26211c"
87
+ },
88
+ "--qilin-alias-toast-bg": {
89
+ light: "#2c261d",
90
+ dark: "#2b251d"
91
+ },
92
+ "--qilin-alias-tooltip-bg": {
93
+ light: "#241f17",
94
+ dark: "#2b251d"
95
+ },
96
+ "--qilin-alias-label-primary": {
97
+ light: "#221d15",
98
+ dark: "#efe9df"
99
+ },
100
+ "--qilin-alias-label-primary-dimmed": {
101
+ light: "#332c21",
102
+ dark: "#ded6c8"
103
+ },
104
+ "--qilin-alias-label-secondary": {
105
+ light: "#5f5749",
106
+ dark: "#a89f90"
107
+ },
108
+ "--qilin-alias-label-tertiary": {
109
+ light: "#857c6c",
110
+ dark: "#8a8172"
111
+ },
112
+ "--qilin-alias-label-caption": {
113
+ light: "#988e7c",
114
+ dark: "#75705f"
115
+ },
116
+ "--qilin-alias-label-dimmed": {
117
+ light: "#d3ccbc",
118
+ dark: "#4f4a3f"
119
+ },
120
+ "--qilin-alias-label-primary-inverted": {
121
+ light: "#fdfbf5",
122
+ dark: "#221d15"
123
+ },
124
+ "--qilin-alias-border-l1": {
125
+ light: "rgba(60, 48, 26, 0.07)",
126
+ dark: "rgba(239, 233, 223, 0.07)"
127
+ },
128
+ "--qilin-alias-border-l2": {
129
+ light: "rgba(60, 48, 26, 0.11)",
130
+ dark: "rgba(239, 233, 223, 0.12)"
131
+ },
132
+ "--qilin-alias-border-l2-darkmode-thin": {
133
+ light: "rgba(60, 48, 26, 0.11)",
134
+ dark: "rgba(239, 233, 223, 0.07)"
135
+ },
136
+ "--qilin-alias-border-l3": {
137
+ light: "rgba(60, 48, 26, 0.13)",
138
+ dark: "rgba(239, 233, 223, 0.16)"
139
+ },
140
+ "--qilin-alias-border-l4": {
141
+ light: "rgba(60, 48, 26, 0.17)",
142
+ dark: "rgba(239, 233, 223, 0.20)"
143
+ },
144
+ "--qilin-alias-border-inverted": {
145
+ light: "rgba(60, 48, 26, 0)",
146
+ dark: "rgba(239, 233, 223, 0.06)"
147
+ },
148
+ "--qilin-alias-border-inverted2": {
149
+ light: "rgba(60, 48, 26, 0)",
150
+ dark: "rgba(239, 233, 223, 0.08)"
151
+ },
152
+ "--qilin-alias-interactive-bg-hover": {
153
+ light: "rgba(101, 82, 40, 0.08)",
154
+ dark: "rgba(239, 233, 223, 0.08)"
155
+ },
156
+ "--qilin-alias-interactive-bg-active": {
157
+ light: "rgba(101, 82, 40, 0.13)",
158
+ dark: "rgba(239, 233, 223, 0.14)"
159
+ },
160
+ "--qilin-alias-interactive-bg-hover-accent": {
161
+ light: "rgba(101, 82, 40, 0.14)",
162
+ dark: "rgba(239, 233, 223, 0.24)"
163
+ },
164
+ "--qilin-alias-interactive-bg-hover-solid": {
165
+ light: "#f0ebdf",
166
+ dark: "#26211c"
167
+ },
168
+ "--qilin-alias-button-contrast-fill": {
169
+ light: "#5f5749",
170
+ dark: "#efe9df"
171
+ },
172
+ "--qilin-alias-button-elevated-fill": {
173
+ light: "#fffdf8",
174
+ dark: "#2b251c"
175
+ },
176
+ "--qilin-alias-button-floating-fill": {
177
+ light: "#fffdf8",
178
+ dark: "#211c16"
179
+ },
180
+ "--qilin-alias-button-floating-hover": {
181
+ light: "#f0ebdf",
182
+ dark: "#26211c"
183
+ },
184
+ "--qilin-alias-button-ghost-active-fill": {
185
+ light: "#f0ebdf",
186
+ dark: "#2b251c"
187
+ },
188
+ "--qilin-alias-button-ghost-active-hover": {
189
+ light: "#e9e3d4",
190
+ dark: "#332c22"
191
+ },
192
+ "--qilin-alias-button-ghost-active-border": {
193
+ light: "#9a9080",
194
+ dark: "#77705f"
195
+ },
196
+ "--qilin-alias-button-tool-bar-fill": {
197
+ light: "rgba(96, 88, 70, 0.5)",
198
+ dark: "rgba(140, 128, 100, 0.4)"
199
+ },
200
+ "--qilin-alias-button-tool-bar-hover": {
201
+ light: "rgba(96, 88, 70, 0.6)",
202
+ dark: "rgba(140, 128, 100, 0.5)"
203
+ },
204
+ "--qilin-alias-button-tool-bar-fill-invisible": {
205
+ light: "rgba(60, 48, 26, 0.36)",
206
+ dark: "rgba(45, 40, 31, 0.36)"
207
+ },
208
+ "--qilin-alias-markdown-code-block": {
209
+ light: "#f4efe3",
210
+ dark: "#191511"
211
+ },
212
+ "--qilin-alias-markdown-code-block-banner": {
213
+ light: "#efe9da",
214
+ dark: "#211c16"
215
+ },
216
+ "--qilin-alias-markdown-inline-code": {
217
+ light: "#f3eee0",
218
+ dark: "#221d17"
219
+ },
220
+ "--qilin-alias-markdown-citation": {
221
+ light: "#efe9db",
222
+ dark: "#221d17"
223
+ },
224
+ "--qilin-alias-markdown-tag": {
225
+ light: "#f1ecdf",
226
+ dark: "#211c16"
227
+ },
228
+ "--qilin-alias-scrollbar-bg-l1": {
229
+ light: "#e3dccb",
230
+ dark: "#4a4336"
231
+ },
232
+ "--qilin-alias-scrollbar-bg-l2": {
233
+ light: "#e3dccb",
234
+ dark: "#57503f"
235
+ },
236
+ "--qilin-alias-scrollbar-hover-l1": {
237
+ light: "#d5ccb6",
238
+ dark: "#57503f"
239
+ },
240
+ "--qilin-alias-scrollbar-hover-l2": {
241
+ light: "#d5ccb6",
242
+ dark: "#665f4c"
243
+ },
244
+ "--qilin-specific-brand-seal-fill": {
245
+ light: "#b7352c",
246
+ dark: "#c94a40"
247
+ }
248
+ });
249
+ /** The dark-gold pack as one selectable skin. */
250
+ const QILIN_PACK = Object.freeze({
251
+ id: "qilin",
252
+ label: Object.freeze({
253
+ zh: "玄金",
254
+ en: "Xuanjin"
255
+ }),
256
+ boot: Object.freeze({
257
+ light: "#f8f5ee",
258
+ dark: "#0d0b09"
259
+ }),
260
+ tokens: QILIN_TOKENS
261
+ });
262
+ //#endregion
263
+ //#region lib/types/packs/mono.js
264
+ /**
265
+ * The monochrome color pack: one neutral ramp from pure white to pure black,
266
+ * with no hue. Accent, canvas, and ink are all greys; the light scheme uses a
267
+ * near-black accent so white on-accent text and focus rings clear AA, and the
268
+ * dark scheme mirrors it with an off-white accent on black.
269
+ *
270
+ * State colors, masks, and the ongoing blue stay with the base palettes, the
271
+ * same omission rule as every pack. Hover darkens the light accent and
272
+ * brightens the dark one, matching each platform's convention.
273
+ */
274
+ /** Monochrome tokens over the platform palettes. Every value states both schemes. */
275
+ const MONO_TOKENS = Object.freeze({
276
+ "--qilin-alias-brand-primary": {
277
+ light: "#1a1a1a",
278
+ dark: "#f2f2f2"
279
+ },
280
+ "--qilin-alias-button-primary-hover": {
281
+ light: "#000000",
282
+ dark: "#ffffff"
283
+ },
284
+ "--qilin-alias-link": {
285
+ light: "#1f1f1f",
286
+ dark: "#ededed"
287
+ },
288
+ "--qilin-alias-bg-base": {
289
+ light: "#f4f4f4",
290
+ dark: "#000000"
291
+ },
292
+ "--qilin-alias-bg-layer-1": {
293
+ light: "#ffffff",
294
+ dark: "#0d0d0d"
295
+ },
296
+ "--qilin-alias-bg-layer-2": {
297
+ light: "#ffffff",
298
+ dark: "#141414"
299
+ },
300
+ "--qilin-alias-bg-layer-3": {
301
+ light: "#ffffff",
302
+ dark: "#1c1c1c"
303
+ },
304
+ "--qilin-alias-bg-overlay": {
305
+ light: "#e6e6e6",
306
+ dark: "#3f3f3f"
307
+ },
308
+ "--qilin-alias-bg-skeleton": {
309
+ light: "rgba(20, 20, 20, 0.06)",
310
+ dark: "rgba(242, 242, 242, 0.08)"
311
+ },
312
+ "--qilin-specific-sidebar-fill": {
313
+ light: "#ececec",
314
+ dark: "#000000"
315
+ },
316
+ "--qilin-specific-sidebar-nav-item-hover": {
317
+ light: "#e6e6e6",
318
+ dark: "#141414"
319
+ },
320
+ "--qilin-specific-sidebar-nav-item-active": {
321
+ light: "#dedede",
322
+ dark: "#1c1c1c"
323
+ },
324
+ "--qilin-specific-sidebar-nav-item-active-accent": {
325
+ light: "#1a1a1a",
326
+ dark: "#f2f2f2"
327
+ },
328
+ "--qilin-specific-bubble": {
329
+ light: "#ededed",
330
+ dark: "#1a1a1a"
331
+ },
332
+ "--qilin-specific-input-major": {
333
+ light: "#ffffff",
334
+ dark: "#141414"
335
+ },
336
+ "--qilin-specific-selector": {
337
+ light: "#f0f0f0",
338
+ dark: "#1c1c1c"
339
+ },
340
+ "--qilin-specific-tip": {
341
+ light: "#f0f0f0",
342
+ dark: "#1c1c1c"
343
+ },
344
+ "--qilin-alias-toast-bg": {
345
+ light: "#262626",
346
+ dark: "#2b2b2b"
347
+ },
348
+ "--qilin-alias-tooltip-bg": {
349
+ light: "#1f1f1f",
350
+ dark: "#262626"
351
+ },
352
+ "--qilin-alias-label-primary": {
353
+ light: "#141414",
354
+ dark: "#f2f2f2"
355
+ },
356
+ "--qilin-alias-label-primary-dimmed": {
357
+ light: "#262626",
358
+ dark: "#dcdcdc"
359
+ },
360
+ "--qilin-alias-label-secondary": {
361
+ light: "#5a5a5a",
362
+ dark: "#a6a6a6"
363
+ },
364
+ "--qilin-alias-label-tertiary": {
365
+ light: "#808080",
366
+ dark: "#8a8a8a"
367
+ },
368
+ "--qilin-alias-label-caption": {
369
+ light: "#969696",
370
+ dark: "#707070"
371
+ },
372
+ "--qilin-alias-label-dimmed": {
373
+ light: "#cfcfcf",
374
+ dark: "#4a4a4a"
375
+ },
376
+ "--qilin-alias-label-primary-inverted": {
377
+ light: "#ffffff",
378
+ dark: "#141414"
379
+ },
380
+ "--qilin-alias-border-l1": {
381
+ light: "rgba(20, 20, 20, 0.07)",
382
+ dark: "rgba(242, 242, 242, 0.07)"
383
+ },
384
+ "--qilin-alias-border-l2": {
385
+ light: "rgba(20, 20, 20, 0.11)",
386
+ dark: "rgba(242, 242, 242, 0.12)"
387
+ },
388
+ "--qilin-alias-border-l2-darkmode-thin": {
389
+ light: "rgba(20, 20, 20, 0.11)",
390
+ dark: "rgba(242, 242, 242, 0.07)"
391
+ },
392
+ "--qilin-alias-border-l3": {
393
+ light: "rgba(20, 20, 20, 0.13)",
394
+ dark: "rgba(242, 242, 242, 0.16)"
395
+ },
396
+ "--qilin-alias-border-l4": {
397
+ light: "rgba(20, 20, 20, 0.17)",
398
+ dark: "rgba(242, 242, 242, 0.20)"
399
+ },
400
+ "--qilin-alias-border-inverted": {
401
+ light: "rgba(20, 20, 20, 0)",
402
+ dark: "rgba(242, 242, 242, 0.06)"
403
+ },
404
+ "--qilin-alias-border-inverted2": {
405
+ light: "rgba(20, 20, 20, 0)",
406
+ dark: "rgba(242, 242, 242, 0.08)"
407
+ },
408
+ "--qilin-alias-interactive-bg-hover": {
409
+ light: "rgba(20, 20, 20, 0.07)",
410
+ dark: "rgba(242, 242, 242, 0.08)"
411
+ },
412
+ "--qilin-alias-interactive-bg-active": {
413
+ light: "rgba(20, 20, 20, 0.12)",
414
+ dark: "rgba(242, 242, 242, 0.14)"
415
+ },
416
+ "--qilin-alias-interactive-bg-hover-accent": {
417
+ light: "rgba(20, 20, 20, 0.14)",
418
+ dark: "rgba(242, 242, 242, 0.24)"
419
+ },
420
+ "--qilin-alias-interactive-bg-hover-solid": {
421
+ light: "#ededed",
422
+ dark: "#1c1c1c"
423
+ },
424
+ "--qilin-alias-button-contrast-fill": {
425
+ light: "#5a5a5a",
426
+ dark: "#f2f2f2"
427
+ },
428
+ "--qilin-alias-button-elevated-fill": {
429
+ light: "#ffffff",
430
+ dark: "#1f1f1f"
431
+ },
432
+ "--qilin-alias-button-floating-fill": {
433
+ light: "#ffffff",
434
+ dark: "#141414"
435
+ },
436
+ "--qilin-alias-button-floating-hover": {
437
+ light: "#ededed",
438
+ dark: "#1c1c1c"
439
+ },
440
+ "--qilin-alias-button-ghost-active-fill": {
441
+ light: "#ededed",
442
+ dark: "#1f1f1f"
443
+ },
444
+ "--qilin-alias-button-ghost-active-hover": {
445
+ light: "#e4e4e4",
446
+ dark: "#2a2a2a"
447
+ },
448
+ "--qilin-alias-button-ghost-active-border": {
449
+ light: "#9a9a9a",
450
+ dark: "#6f6f6f"
451
+ },
452
+ "--qilin-alias-button-tool-bar-fill": {
453
+ light: "rgba(90, 90, 90, 0.5)",
454
+ dark: "rgba(160, 160, 160, 0.4)"
455
+ },
456
+ "--qilin-alias-button-tool-bar-hover": {
457
+ light: "rgba(90, 90, 90, 0.6)",
458
+ dark: "rgba(160, 160, 160, 0.5)"
459
+ },
460
+ "--qilin-alias-button-tool-bar-fill-invisible": {
461
+ light: "rgba(20, 20, 20, 0.36)",
462
+ dark: "rgba(30, 30, 30, 0.36)"
463
+ },
464
+ "--qilin-alias-markdown-code-block": {
465
+ light: "#efefef",
466
+ dark: "#101010"
467
+ },
468
+ "--qilin-alias-markdown-code-block-banner": {
469
+ light: "#e8e8e8",
470
+ dark: "#171717"
471
+ },
472
+ "--qilin-alias-markdown-inline-code": {
473
+ light: "#eeeeee",
474
+ dark: "#1a1a1a"
475
+ },
476
+ "--qilin-alias-markdown-citation": {
477
+ light: "#eaeaea",
478
+ dark: "#1a1a1a"
479
+ },
480
+ "--qilin-alias-markdown-tag": {
481
+ light: "#ededed",
482
+ dark: "#141414"
483
+ },
484
+ "--qilin-alias-scrollbar-bg-l1": {
485
+ light: "#dcdcdc",
486
+ dark: "#3a3a3a"
487
+ },
488
+ "--qilin-alias-scrollbar-bg-l2": {
489
+ light: "#dcdcdc",
490
+ dark: "#4a4a4a"
491
+ },
492
+ "--qilin-alias-scrollbar-hover-l1": {
493
+ light: "#cfcfcf",
494
+ dark: "#4a4a4a"
495
+ },
496
+ "--qilin-alias-scrollbar-hover-l2": {
497
+ light: "#cfcfcf",
498
+ dark: "#5a5a5a"
499
+ }
500
+ });
501
+ /** The monochrome pack as one selectable skin. */
502
+ const MONO_PACK = Object.freeze({
503
+ id: "mono",
504
+ label: Object.freeze({
505
+ zh: "黑白",
506
+ en: "Mono"
507
+ }),
508
+ boot: Object.freeze({
509
+ light: "#f4f4f4",
510
+ dark: "#000000"
511
+ }),
512
+ tokens: MONO_TOKENS
513
+ });
514
+ //#endregion
515
+ //#region lib/types/packs/verdant.js
516
+ /**
517
+ * The green color pack: light-green paper with a deep green accent in the
518
+ * light scheme, and a deep ink-green canvas with a light green accent in the
519
+ * dark scheme. Accent contrast is WCAG AA verified: white on #2f6b4b clears
520
+ * 6.4:1, the light link #2a5a40 clears 6.5:1 on #f1f6f2, and the dark accent
521
+ * #8fd0a8 clears 11:1 on the #0a120e canvas.
522
+ *
523
+ * State colors, masks, and the ongoing blue stay with the base palettes, the
524
+ * same omission rule as every pack. Hover darkens the light accent and
525
+ * brightens the dark one, matching each platform's convention.
526
+ */
527
+ /** Green tokens over the platform palettes. Every value states both schemes. */
528
+ const VERDANT_TOKENS = Object.freeze({
529
+ "--qilin-alias-brand-primary": {
530
+ light: "#2f6b4b",
531
+ dark: "#8fd0a8"
532
+ },
533
+ "--qilin-alias-button-primary-hover": {
534
+ light: "#24553b",
535
+ dark: "#aee3c1"
536
+ },
537
+ "--qilin-alias-link": {
538
+ light: "#2a5a40",
539
+ dark: "#b7e6c8"
540
+ },
541
+ "--qilin-alias-bg-base": {
542
+ light: "#f1f6f2",
543
+ dark: "#0a120e"
544
+ },
545
+ "--qilin-alias-bg-layer-1": {
546
+ light: "#fbfdfb",
547
+ dark: "#101a14"
548
+ },
549
+ "--qilin-alias-bg-layer-2": {
550
+ light: "#fbfdfb",
551
+ dark: "#16221a"
552
+ },
553
+ "--qilin-alias-bg-layer-3": {
554
+ light: "#fbfdfb",
555
+ dark: "#1d2b21"
556
+ },
557
+ "--qilin-alias-bg-overlay": {
558
+ light: "#e2ebe4",
559
+ dark: "#3c4f43"
560
+ },
561
+ "--qilin-alias-bg-skeleton": {
562
+ light: "rgba(20, 60, 40, 0.06)",
563
+ dark: "rgba(210, 235, 220, 0.08)"
564
+ },
565
+ "--qilin-specific-sidebar-fill": {
566
+ light: "#e9f1ea",
567
+ dark: "#0a120e"
568
+ },
569
+ "--qilin-specific-sidebar-nav-item-hover": {
570
+ light: "#e2ece4",
571
+ dark: "#152018"
572
+ },
573
+ "--qilin-specific-sidebar-nav-item-active": {
574
+ light: "#d9e7dc",
575
+ dark: "#1d2b21"
576
+ },
577
+ "--qilin-specific-sidebar-nav-item-active-accent": {
578
+ light: "#2f6b4b",
579
+ dark: "#8fd0a8"
580
+ },
581
+ "--qilin-specific-bubble": {
582
+ light: "#eaf2ec",
583
+ dark: "#18251c"
584
+ },
585
+ "--qilin-specific-input-major": {
586
+ light: "#fcfefc",
587
+ dark: "#14201a"
588
+ },
589
+ "--qilin-specific-selector": {
590
+ light: "#eef4ef",
591
+ dark: "#1d2b21"
592
+ },
593
+ "--qilin-specific-tip": {
594
+ light: "#eef4ef",
595
+ dark: "#1d2b21"
596
+ },
597
+ "--qilin-alias-toast-bg": {
598
+ light: "#1f2a24",
599
+ dark: "#1f2c24"
600
+ },
601
+ "--qilin-alias-tooltip-bg": {
602
+ light: "#1a241f",
603
+ dark: "#1f2c24"
604
+ },
605
+ "--qilin-alias-label-primary": {
606
+ light: "#16211b",
607
+ dark: "#e4f0e7"
608
+ },
609
+ "--qilin-alias-label-primary-dimmed": {
610
+ light: "#24322a",
611
+ dark: "#cfe0d4"
612
+ },
613
+ "--qilin-alias-label-secondary": {
614
+ light: "#4f6157",
615
+ dark: "#9db3a4"
616
+ },
617
+ "--qilin-alias-label-tertiary": {
618
+ light: "#76877c",
619
+ dark: "#7f9487"
620
+ },
621
+ "--qilin-alias-label-caption": {
622
+ light: "#8a998f",
623
+ dark: "#64796b"
624
+ },
625
+ "--qilin-alias-label-dimmed": {
626
+ light: "#c8d5cb",
627
+ dark: "#42544a"
628
+ },
629
+ "--qilin-alias-label-primary-inverted": {
630
+ light: "#fbfdfb",
631
+ dark: "#14201a"
632
+ },
633
+ "--qilin-alias-border-l1": {
634
+ light: "rgba(28, 58, 42, 0.07)",
635
+ dark: "rgba(210, 235, 220, 0.07)"
636
+ },
637
+ "--qilin-alias-border-l2": {
638
+ light: "rgba(28, 58, 42, 0.11)",
639
+ dark: "rgba(210, 235, 220, 0.12)"
640
+ },
641
+ "--qilin-alias-border-l2-darkmode-thin": {
642
+ light: "rgba(28, 58, 42, 0.11)",
643
+ dark: "rgba(210, 235, 220, 0.07)"
644
+ },
645
+ "--qilin-alias-border-l3": {
646
+ light: "rgba(28, 58, 42, 0.13)",
647
+ dark: "rgba(210, 235, 220, 0.16)"
648
+ },
649
+ "--qilin-alias-border-l4": {
650
+ light: "rgba(28, 58, 42, 0.17)",
651
+ dark: "rgba(210, 235, 220, 0.20)"
652
+ },
653
+ "--qilin-alias-border-inverted": {
654
+ light: "rgba(28, 58, 42, 0)",
655
+ dark: "rgba(210, 235, 220, 0.06)"
656
+ },
657
+ "--qilin-alias-border-inverted2": {
658
+ light: "rgba(28, 58, 42, 0)",
659
+ dark: "rgba(210, 235, 220, 0.08)"
660
+ },
661
+ "--qilin-alias-interactive-bg-hover": {
662
+ light: "rgba(28, 58, 42, 0.08)",
663
+ dark: "rgba(210, 235, 220, 0.08)"
664
+ },
665
+ "--qilin-alias-interactive-bg-active": {
666
+ light: "rgba(28, 58, 42, 0.13)",
667
+ dark: "rgba(210, 235, 220, 0.14)"
668
+ },
669
+ "--qilin-alias-interactive-bg-hover-accent": {
670
+ light: "rgba(28, 58, 42, 0.14)",
671
+ dark: "rgba(210, 235, 220, 0.24)"
672
+ },
673
+ "--qilin-alias-interactive-bg-hover-solid": {
674
+ light: "#eaf2ec",
675
+ dark: "#1d2b21"
676
+ },
677
+ "--qilin-alias-button-contrast-fill": {
678
+ light: "#4f6157",
679
+ dark: "#e4f0e7"
680
+ },
681
+ "--qilin-alias-button-elevated-fill": {
682
+ light: "#fcfefc",
683
+ dark: "#1f2c24"
684
+ },
685
+ "--qilin-alias-button-floating-fill": {
686
+ light: "#fcfefc",
687
+ dark: "#18251c"
688
+ },
689
+ "--qilin-alias-button-floating-hover": {
690
+ light: "#eef4ef",
691
+ dark: "#1d2b21"
692
+ },
693
+ "--qilin-alias-button-ghost-active-fill": {
694
+ light: "#eaf2ec",
695
+ dark: "#1f2c24"
696
+ },
697
+ "--qilin-alias-button-ghost-active-hover": {
698
+ light: "#e2ece4",
699
+ dark: "#27362c"
700
+ },
701
+ "--qilin-alias-button-ghost-active-border": {
702
+ light: "#8fa096",
703
+ dark: "#5f7466"
704
+ },
705
+ "--qilin-alias-button-tool-bar-fill": {
706
+ light: "rgba(90, 110, 98, 0.5)",
707
+ dark: "rgba(140, 165, 150, 0.4)"
708
+ },
709
+ "--qilin-alias-button-tool-bar-hover": {
710
+ light: "rgba(90, 110, 98, 0.6)",
711
+ dark: "rgba(140, 165, 150, 0.5)"
712
+ },
713
+ "--qilin-alias-button-tool-bar-fill-invisible": {
714
+ light: "rgba(28, 58, 42, 0.36)",
715
+ dark: "rgba(35, 50, 42, 0.36)"
716
+ },
717
+ "--qilin-alias-markdown-code-block": {
718
+ light: "#e9f1ea",
719
+ dark: "#0f1a13"
720
+ },
721
+ "--qilin-alias-markdown-code-block-banner": {
722
+ light: "#e2ece4",
723
+ dark: "#16221a"
724
+ },
725
+ "--qilin-alias-markdown-inline-code": {
726
+ light: "#e8f0e9",
727
+ dark: "#18251c"
728
+ },
729
+ "--qilin-alias-markdown-citation": {
730
+ light: "#e4eee6",
731
+ dark: "#18251c"
732
+ },
733
+ "--qilin-alias-markdown-tag": {
734
+ light: "#e8f0e9",
735
+ dark: "#14201a"
736
+ },
737
+ "--qilin-alias-scrollbar-bg-l1": {
738
+ light: "#d3e0d6",
739
+ dark: "#39493f"
740
+ },
741
+ "--qilin-alias-scrollbar-bg-l2": {
742
+ light: "#c5d5c9",
743
+ dark: "#4a5c50"
744
+ },
745
+ "--qilin-alias-scrollbar-hover-l1": {
746
+ light: "#c5d5c9",
747
+ dark: "#4a5c50"
748
+ },
749
+ "--qilin-alias-scrollbar-hover-l2": {
750
+ light: "#b7cabd",
751
+ dark: "#5a6d60"
752
+ }
753
+ });
754
+ /** The green pack as one selectable skin. */
755
+ const VERDANT_PACK = Object.freeze({
756
+ id: "verdant",
757
+ label: Object.freeze({
758
+ zh: "墨绿",
759
+ en: "Verdant"
760
+ }),
761
+ boot: Object.freeze({
762
+ light: "#f1f6f2",
763
+ dark: "#0a120e"
764
+ }),
765
+ tokens: VERDANT_TOKENS
766
+ });
767
+ //#endregion
768
+ //#region lib/types/skin.js
769
+ /**
770
+ * The shipped color packs, shared by the node and browser halves.
771
+ *
772
+ * A pack is one selectable skin: an id, a provider-owned label, the canvas
773
+ * colors the pre-plugin index render paints, and the alias-token overrides for
774
+ * both base palettes. Packs are identified by their palette, never by a
775
+ * product name, so a composition can pick any of them without exposing who
776
+ * uses it.
777
+ */
778
+ /** Every shipped pack, in appearance-row order. */
779
+ const SKIN_PACKS = Object.freeze([
780
+ QILIN_PACK,
781
+ MONO_PACK,
782
+ VERDANT_PACK
783
+ ]);
784
+ QILIN_PACK.id;
785
+ QILIN_PACK.label;
786
+ QILIN_PACK.boot;
787
+ //#endregion
1
788
  //#region lib/types/index.js
2
789
  /**
3
- * QiLin brand color plugin, node half. The empty apply gives Loader a host-side
4
- * row while the browser half ships through `exports["./client"]`.
790
+ * Color packs, node half: contributes each pack's canvas colors so the
791
+ * pre-plugin index render paints the user's palette before any browser plugin
792
+ * runs. The browser half ships through `exports["./client"]`.
793
+ */
794
+ /** Required Host services: the boot registry the index render reads. */
795
+ const inject = ["themeBoot"];
796
+ /**
797
+ * Register every shipped pack's canvas colors for the pre-plugin interval.
798
+ * @param ctx - Host plugin context.
5
799
  */
6
- /** Host plugin body — this package contributes browser presentation only. */
7
- function apply() {}
800
+ function apply(ctx) {
801
+ for (const pack of SKIN_PACKS) ctx.effect(() => ctx.themeBoot.register(pack.id, pack.boot), `ui-theme-brand: ${pack.id} boot colors`);
802
+ }
8
803
  //#endregion
9
- export { apply };
804
+ export { apply, inject };