@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/client.js CHANGED
@@ -4,13 +4,12 @@ window.__ModuleLoader__.load({
4
4
  var module = { exports: {} };
5
5
  var exports = module.exports;
6
6
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
7
- //#region lib/types/client/tokens.js
7
+ //#region lib/types/packs/qilin.js
8
8
  /**
9
- * QiLin alias-token overrides, applied as one layer over the active palette.
9
+ * The dark-gold color pack: the "玄金" landing VI extended to both schemes.
10
10
  *
11
- * The palette is the "玄金麒麟" (dark-gold) landing VI extended to both
12
- * schemes: the dark values transplant the landing page's tokens verbatim
13
- * (apps/web/src/landing/landing.css), the light values derive the matching
11
+ * The dark values transplant the landing page's tokens verbatim
12
+ * (apps/web/src/landing/landing.css); the light values derive the matching
14
13
  * warm-paper variant because the landing VI ships no light mode. Accent
15
14
  * contrast is WCAG AA verified: the deep link gold #7d6126 clears 5.3:1 on
16
15
  * paper #f8f5ee where the VI's gold-700 #8f6f2e reaches only 4.3:1, and
@@ -22,15 +21,7 @@ window.__ModuleLoader__.load({
22
21
  * convention: dark schemes brighten (landing CTA gold-500 -> gold-300),
23
22
  * light schemes darken (gold-700 -> #7d6126).
24
23
  */
25
- /**
26
- * The layer source id. One layer per source, so this names the origin in
27
- * `ctx.theme` inspection and makes re-application replace rather than stack.
28
- */
29
- const QILIN_THEME_SOURCE = "@qilin-agent/client-ui-theme-brand";
30
- /**
31
- * QiLin's brand tokens over the platform palettes. Every value states both
32
- * schemes (the ThemeTokenModes contract), grouped by surface family.
33
- */
24
+ /** Dark-gold tokens over the platform palettes. Every value states both schemes. */
34
25
  const QILIN_TOKENS = Object.freeze({
35
26
  "--qilin-alias-brand-primary": {
36
27
  light: "#8f6f2e",
@@ -261,18 +252,562 @@ window.__ModuleLoader__.load({
261
252
  dark: "#c94a40"
262
253
  }
263
254
  });
255
+ /** The dark-gold pack as one selectable skin. */
256
+ const QILIN_PACK = Object.freeze({
257
+ id: "qilin",
258
+ label: Object.freeze({
259
+ zh: "玄金",
260
+ en: "Xuanjin"
261
+ }),
262
+ boot: Object.freeze({
263
+ light: "#f8f5ee",
264
+ dark: "#0d0b09"
265
+ }),
266
+ tokens: QILIN_TOKENS
267
+ });
268
+ //#endregion
269
+ //#region lib/types/packs/mono.js
270
+ /**
271
+ * The monochrome color pack: one neutral ramp from pure white to pure black,
272
+ * with no hue. Accent, canvas, and ink are all greys; the light scheme uses a
273
+ * near-black accent so white on-accent text and focus rings clear AA, and the
274
+ * dark scheme mirrors it with an off-white accent on black.
275
+ *
276
+ * State colors, masks, and the ongoing blue stay with the base palettes, the
277
+ * same omission rule as every pack. Hover darkens the light accent and
278
+ * brightens the dark one, matching each platform's convention.
279
+ */
280
+ /** Monochrome tokens over the platform palettes. Every value states both schemes. */
281
+ const MONO_TOKENS = Object.freeze({
282
+ "--qilin-alias-brand-primary": {
283
+ light: "#1a1a1a",
284
+ dark: "#f2f2f2"
285
+ },
286
+ "--qilin-alias-button-primary-hover": {
287
+ light: "#000000",
288
+ dark: "#ffffff"
289
+ },
290
+ "--qilin-alias-link": {
291
+ light: "#1f1f1f",
292
+ dark: "#ededed"
293
+ },
294
+ "--qilin-alias-bg-base": {
295
+ light: "#f4f4f4",
296
+ dark: "#000000"
297
+ },
298
+ "--qilin-alias-bg-layer-1": {
299
+ light: "#ffffff",
300
+ dark: "#0d0d0d"
301
+ },
302
+ "--qilin-alias-bg-layer-2": {
303
+ light: "#ffffff",
304
+ dark: "#141414"
305
+ },
306
+ "--qilin-alias-bg-layer-3": {
307
+ light: "#ffffff",
308
+ dark: "#1c1c1c"
309
+ },
310
+ "--qilin-alias-bg-overlay": {
311
+ light: "#e6e6e6",
312
+ dark: "#3f3f3f"
313
+ },
314
+ "--qilin-alias-bg-skeleton": {
315
+ light: "rgba(20, 20, 20, 0.06)",
316
+ dark: "rgba(242, 242, 242, 0.08)"
317
+ },
318
+ "--qilin-specific-sidebar-fill": {
319
+ light: "#ececec",
320
+ dark: "#000000"
321
+ },
322
+ "--qilin-specific-sidebar-nav-item-hover": {
323
+ light: "#e6e6e6",
324
+ dark: "#141414"
325
+ },
326
+ "--qilin-specific-sidebar-nav-item-active": {
327
+ light: "#dedede",
328
+ dark: "#1c1c1c"
329
+ },
330
+ "--qilin-specific-sidebar-nav-item-active-accent": {
331
+ light: "#1a1a1a",
332
+ dark: "#f2f2f2"
333
+ },
334
+ "--qilin-specific-bubble": {
335
+ light: "#ededed",
336
+ dark: "#1a1a1a"
337
+ },
338
+ "--qilin-specific-input-major": {
339
+ light: "#ffffff",
340
+ dark: "#141414"
341
+ },
342
+ "--qilin-specific-selector": {
343
+ light: "#f0f0f0",
344
+ dark: "#1c1c1c"
345
+ },
346
+ "--qilin-specific-tip": {
347
+ light: "#f0f0f0",
348
+ dark: "#1c1c1c"
349
+ },
350
+ "--qilin-alias-toast-bg": {
351
+ light: "#262626",
352
+ dark: "#2b2b2b"
353
+ },
354
+ "--qilin-alias-tooltip-bg": {
355
+ light: "#1f1f1f",
356
+ dark: "#262626"
357
+ },
358
+ "--qilin-alias-label-primary": {
359
+ light: "#141414",
360
+ dark: "#f2f2f2"
361
+ },
362
+ "--qilin-alias-label-primary-dimmed": {
363
+ light: "#262626",
364
+ dark: "#dcdcdc"
365
+ },
366
+ "--qilin-alias-label-secondary": {
367
+ light: "#5a5a5a",
368
+ dark: "#a6a6a6"
369
+ },
370
+ "--qilin-alias-label-tertiary": {
371
+ light: "#808080",
372
+ dark: "#8a8a8a"
373
+ },
374
+ "--qilin-alias-label-caption": {
375
+ light: "#969696",
376
+ dark: "#707070"
377
+ },
378
+ "--qilin-alias-label-dimmed": {
379
+ light: "#cfcfcf",
380
+ dark: "#4a4a4a"
381
+ },
382
+ "--qilin-alias-label-primary-inverted": {
383
+ light: "#ffffff",
384
+ dark: "#141414"
385
+ },
386
+ "--qilin-alias-border-l1": {
387
+ light: "rgba(20, 20, 20, 0.07)",
388
+ dark: "rgba(242, 242, 242, 0.07)"
389
+ },
390
+ "--qilin-alias-border-l2": {
391
+ light: "rgba(20, 20, 20, 0.11)",
392
+ dark: "rgba(242, 242, 242, 0.12)"
393
+ },
394
+ "--qilin-alias-border-l2-darkmode-thin": {
395
+ light: "rgba(20, 20, 20, 0.11)",
396
+ dark: "rgba(242, 242, 242, 0.07)"
397
+ },
398
+ "--qilin-alias-border-l3": {
399
+ light: "rgba(20, 20, 20, 0.13)",
400
+ dark: "rgba(242, 242, 242, 0.16)"
401
+ },
402
+ "--qilin-alias-border-l4": {
403
+ light: "rgba(20, 20, 20, 0.17)",
404
+ dark: "rgba(242, 242, 242, 0.20)"
405
+ },
406
+ "--qilin-alias-border-inverted": {
407
+ light: "rgba(20, 20, 20, 0)",
408
+ dark: "rgba(242, 242, 242, 0.06)"
409
+ },
410
+ "--qilin-alias-border-inverted2": {
411
+ light: "rgba(20, 20, 20, 0)",
412
+ dark: "rgba(242, 242, 242, 0.08)"
413
+ },
414
+ "--qilin-alias-interactive-bg-hover": {
415
+ light: "rgba(20, 20, 20, 0.07)",
416
+ dark: "rgba(242, 242, 242, 0.08)"
417
+ },
418
+ "--qilin-alias-interactive-bg-active": {
419
+ light: "rgba(20, 20, 20, 0.12)",
420
+ dark: "rgba(242, 242, 242, 0.14)"
421
+ },
422
+ "--qilin-alias-interactive-bg-hover-accent": {
423
+ light: "rgba(20, 20, 20, 0.14)",
424
+ dark: "rgba(242, 242, 242, 0.24)"
425
+ },
426
+ "--qilin-alias-interactive-bg-hover-solid": {
427
+ light: "#ededed",
428
+ dark: "#1c1c1c"
429
+ },
430
+ "--qilin-alias-button-contrast-fill": {
431
+ light: "#5a5a5a",
432
+ dark: "#f2f2f2"
433
+ },
434
+ "--qilin-alias-button-elevated-fill": {
435
+ light: "#ffffff",
436
+ dark: "#1f1f1f"
437
+ },
438
+ "--qilin-alias-button-floating-fill": {
439
+ light: "#ffffff",
440
+ dark: "#141414"
441
+ },
442
+ "--qilin-alias-button-floating-hover": {
443
+ light: "#ededed",
444
+ dark: "#1c1c1c"
445
+ },
446
+ "--qilin-alias-button-ghost-active-fill": {
447
+ light: "#ededed",
448
+ dark: "#1f1f1f"
449
+ },
450
+ "--qilin-alias-button-ghost-active-hover": {
451
+ light: "#e4e4e4",
452
+ dark: "#2a2a2a"
453
+ },
454
+ "--qilin-alias-button-ghost-active-border": {
455
+ light: "#9a9a9a",
456
+ dark: "#6f6f6f"
457
+ },
458
+ "--qilin-alias-button-tool-bar-fill": {
459
+ light: "rgba(90, 90, 90, 0.5)",
460
+ dark: "rgba(160, 160, 160, 0.4)"
461
+ },
462
+ "--qilin-alias-button-tool-bar-hover": {
463
+ light: "rgba(90, 90, 90, 0.6)",
464
+ dark: "rgba(160, 160, 160, 0.5)"
465
+ },
466
+ "--qilin-alias-button-tool-bar-fill-invisible": {
467
+ light: "rgba(20, 20, 20, 0.36)",
468
+ dark: "rgba(30, 30, 30, 0.36)"
469
+ },
470
+ "--qilin-alias-markdown-code-block": {
471
+ light: "#efefef",
472
+ dark: "#101010"
473
+ },
474
+ "--qilin-alias-markdown-code-block-banner": {
475
+ light: "#e8e8e8",
476
+ dark: "#171717"
477
+ },
478
+ "--qilin-alias-markdown-inline-code": {
479
+ light: "#eeeeee",
480
+ dark: "#1a1a1a"
481
+ },
482
+ "--qilin-alias-markdown-citation": {
483
+ light: "#eaeaea",
484
+ dark: "#1a1a1a"
485
+ },
486
+ "--qilin-alias-markdown-tag": {
487
+ light: "#ededed",
488
+ dark: "#141414"
489
+ },
490
+ "--qilin-alias-scrollbar-bg-l1": {
491
+ light: "#dcdcdc",
492
+ dark: "#3a3a3a"
493
+ },
494
+ "--qilin-alias-scrollbar-bg-l2": {
495
+ light: "#dcdcdc",
496
+ dark: "#4a4a4a"
497
+ },
498
+ "--qilin-alias-scrollbar-hover-l1": {
499
+ light: "#cfcfcf",
500
+ dark: "#4a4a4a"
501
+ },
502
+ "--qilin-alias-scrollbar-hover-l2": {
503
+ light: "#cfcfcf",
504
+ dark: "#5a5a5a"
505
+ }
506
+ });
507
+ /** The monochrome pack as one selectable skin. */
508
+ const MONO_PACK = Object.freeze({
509
+ id: "mono",
510
+ label: Object.freeze({
511
+ zh: "黑白",
512
+ en: "Mono"
513
+ }),
514
+ boot: Object.freeze({
515
+ light: "#f4f4f4",
516
+ dark: "#000000"
517
+ }),
518
+ tokens: MONO_TOKENS
519
+ });
520
+ //#endregion
521
+ //#region lib/types/packs/verdant.js
522
+ /**
523
+ * The green color pack: light-green paper with a deep green accent in the
524
+ * light scheme, and a deep ink-green canvas with a light green accent in the
525
+ * dark scheme. Accent contrast is WCAG AA verified: white on #2f6b4b clears
526
+ * 6.4:1, the light link #2a5a40 clears 6.5:1 on #f1f6f2, and the dark accent
527
+ * #8fd0a8 clears 11:1 on the #0a120e canvas.
528
+ *
529
+ * State colors, masks, and the ongoing blue stay with the base palettes, the
530
+ * same omission rule as every pack. Hover darkens the light accent and
531
+ * brightens the dark one, matching each platform's convention.
532
+ */
533
+ /** Green tokens over the platform palettes. Every value states both schemes. */
534
+ const VERDANT_TOKENS = Object.freeze({
535
+ "--qilin-alias-brand-primary": {
536
+ light: "#2f6b4b",
537
+ dark: "#8fd0a8"
538
+ },
539
+ "--qilin-alias-button-primary-hover": {
540
+ light: "#24553b",
541
+ dark: "#aee3c1"
542
+ },
543
+ "--qilin-alias-link": {
544
+ light: "#2a5a40",
545
+ dark: "#b7e6c8"
546
+ },
547
+ "--qilin-alias-bg-base": {
548
+ light: "#f1f6f2",
549
+ dark: "#0a120e"
550
+ },
551
+ "--qilin-alias-bg-layer-1": {
552
+ light: "#fbfdfb",
553
+ dark: "#101a14"
554
+ },
555
+ "--qilin-alias-bg-layer-2": {
556
+ light: "#fbfdfb",
557
+ dark: "#16221a"
558
+ },
559
+ "--qilin-alias-bg-layer-3": {
560
+ light: "#fbfdfb",
561
+ dark: "#1d2b21"
562
+ },
563
+ "--qilin-alias-bg-overlay": {
564
+ light: "#e2ebe4",
565
+ dark: "#3c4f43"
566
+ },
567
+ "--qilin-alias-bg-skeleton": {
568
+ light: "rgba(20, 60, 40, 0.06)",
569
+ dark: "rgba(210, 235, 220, 0.08)"
570
+ },
571
+ "--qilin-specific-sidebar-fill": {
572
+ light: "#e9f1ea",
573
+ dark: "#0a120e"
574
+ },
575
+ "--qilin-specific-sidebar-nav-item-hover": {
576
+ light: "#e2ece4",
577
+ dark: "#152018"
578
+ },
579
+ "--qilin-specific-sidebar-nav-item-active": {
580
+ light: "#d9e7dc",
581
+ dark: "#1d2b21"
582
+ },
583
+ "--qilin-specific-sidebar-nav-item-active-accent": {
584
+ light: "#2f6b4b",
585
+ dark: "#8fd0a8"
586
+ },
587
+ "--qilin-specific-bubble": {
588
+ light: "#eaf2ec",
589
+ dark: "#18251c"
590
+ },
591
+ "--qilin-specific-input-major": {
592
+ light: "#fcfefc",
593
+ dark: "#14201a"
594
+ },
595
+ "--qilin-specific-selector": {
596
+ light: "#eef4ef",
597
+ dark: "#1d2b21"
598
+ },
599
+ "--qilin-specific-tip": {
600
+ light: "#eef4ef",
601
+ dark: "#1d2b21"
602
+ },
603
+ "--qilin-alias-toast-bg": {
604
+ light: "#1f2a24",
605
+ dark: "#1f2c24"
606
+ },
607
+ "--qilin-alias-tooltip-bg": {
608
+ light: "#1a241f",
609
+ dark: "#1f2c24"
610
+ },
611
+ "--qilin-alias-label-primary": {
612
+ light: "#16211b",
613
+ dark: "#e4f0e7"
614
+ },
615
+ "--qilin-alias-label-primary-dimmed": {
616
+ light: "#24322a",
617
+ dark: "#cfe0d4"
618
+ },
619
+ "--qilin-alias-label-secondary": {
620
+ light: "#4f6157",
621
+ dark: "#9db3a4"
622
+ },
623
+ "--qilin-alias-label-tertiary": {
624
+ light: "#76877c",
625
+ dark: "#7f9487"
626
+ },
627
+ "--qilin-alias-label-caption": {
628
+ light: "#8a998f",
629
+ dark: "#64796b"
630
+ },
631
+ "--qilin-alias-label-dimmed": {
632
+ light: "#c8d5cb",
633
+ dark: "#42544a"
634
+ },
635
+ "--qilin-alias-label-primary-inverted": {
636
+ light: "#fbfdfb",
637
+ dark: "#14201a"
638
+ },
639
+ "--qilin-alias-border-l1": {
640
+ light: "rgba(28, 58, 42, 0.07)",
641
+ dark: "rgba(210, 235, 220, 0.07)"
642
+ },
643
+ "--qilin-alias-border-l2": {
644
+ light: "rgba(28, 58, 42, 0.11)",
645
+ dark: "rgba(210, 235, 220, 0.12)"
646
+ },
647
+ "--qilin-alias-border-l2-darkmode-thin": {
648
+ light: "rgba(28, 58, 42, 0.11)",
649
+ dark: "rgba(210, 235, 220, 0.07)"
650
+ },
651
+ "--qilin-alias-border-l3": {
652
+ light: "rgba(28, 58, 42, 0.13)",
653
+ dark: "rgba(210, 235, 220, 0.16)"
654
+ },
655
+ "--qilin-alias-border-l4": {
656
+ light: "rgba(28, 58, 42, 0.17)",
657
+ dark: "rgba(210, 235, 220, 0.20)"
658
+ },
659
+ "--qilin-alias-border-inverted": {
660
+ light: "rgba(28, 58, 42, 0)",
661
+ dark: "rgba(210, 235, 220, 0.06)"
662
+ },
663
+ "--qilin-alias-border-inverted2": {
664
+ light: "rgba(28, 58, 42, 0)",
665
+ dark: "rgba(210, 235, 220, 0.08)"
666
+ },
667
+ "--qilin-alias-interactive-bg-hover": {
668
+ light: "rgba(28, 58, 42, 0.08)",
669
+ dark: "rgba(210, 235, 220, 0.08)"
670
+ },
671
+ "--qilin-alias-interactive-bg-active": {
672
+ light: "rgba(28, 58, 42, 0.13)",
673
+ dark: "rgba(210, 235, 220, 0.14)"
674
+ },
675
+ "--qilin-alias-interactive-bg-hover-accent": {
676
+ light: "rgba(28, 58, 42, 0.14)",
677
+ dark: "rgba(210, 235, 220, 0.24)"
678
+ },
679
+ "--qilin-alias-interactive-bg-hover-solid": {
680
+ light: "#eaf2ec",
681
+ dark: "#1d2b21"
682
+ },
683
+ "--qilin-alias-button-contrast-fill": {
684
+ light: "#4f6157",
685
+ dark: "#e4f0e7"
686
+ },
687
+ "--qilin-alias-button-elevated-fill": {
688
+ light: "#fcfefc",
689
+ dark: "#1f2c24"
690
+ },
691
+ "--qilin-alias-button-floating-fill": {
692
+ light: "#fcfefc",
693
+ dark: "#18251c"
694
+ },
695
+ "--qilin-alias-button-floating-hover": {
696
+ light: "#eef4ef",
697
+ dark: "#1d2b21"
698
+ },
699
+ "--qilin-alias-button-ghost-active-fill": {
700
+ light: "#eaf2ec",
701
+ dark: "#1f2c24"
702
+ },
703
+ "--qilin-alias-button-ghost-active-hover": {
704
+ light: "#e2ece4",
705
+ dark: "#27362c"
706
+ },
707
+ "--qilin-alias-button-ghost-active-border": {
708
+ light: "#8fa096",
709
+ dark: "#5f7466"
710
+ },
711
+ "--qilin-alias-button-tool-bar-fill": {
712
+ light: "rgba(90, 110, 98, 0.5)",
713
+ dark: "rgba(140, 165, 150, 0.4)"
714
+ },
715
+ "--qilin-alias-button-tool-bar-hover": {
716
+ light: "rgba(90, 110, 98, 0.6)",
717
+ dark: "rgba(140, 165, 150, 0.5)"
718
+ },
719
+ "--qilin-alias-button-tool-bar-fill-invisible": {
720
+ light: "rgba(28, 58, 42, 0.36)",
721
+ dark: "rgba(35, 50, 42, 0.36)"
722
+ },
723
+ "--qilin-alias-markdown-code-block": {
724
+ light: "#e9f1ea",
725
+ dark: "#0f1a13"
726
+ },
727
+ "--qilin-alias-markdown-code-block-banner": {
728
+ light: "#e2ece4",
729
+ dark: "#16221a"
730
+ },
731
+ "--qilin-alias-markdown-inline-code": {
732
+ light: "#e8f0e9",
733
+ dark: "#18251c"
734
+ },
735
+ "--qilin-alias-markdown-citation": {
736
+ light: "#e4eee6",
737
+ dark: "#18251c"
738
+ },
739
+ "--qilin-alias-markdown-tag": {
740
+ light: "#e8f0e9",
741
+ dark: "#14201a"
742
+ },
743
+ "--qilin-alias-scrollbar-bg-l1": {
744
+ light: "#d3e0d6",
745
+ dark: "#39493f"
746
+ },
747
+ "--qilin-alias-scrollbar-bg-l2": {
748
+ light: "#c5d5c9",
749
+ dark: "#4a5c50"
750
+ },
751
+ "--qilin-alias-scrollbar-hover-l1": {
752
+ light: "#c5d5c9",
753
+ dark: "#4a5c50"
754
+ },
755
+ "--qilin-alias-scrollbar-hover-l2": {
756
+ light: "#b7cabd",
757
+ dark: "#5a6d60"
758
+ }
759
+ });
760
+ /** The green pack as one selectable skin. */
761
+ const VERDANT_PACK = Object.freeze({
762
+ id: "verdant",
763
+ label: Object.freeze({
764
+ zh: "墨绿",
765
+ en: "Verdant"
766
+ }),
767
+ boot: Object.freeze({
768
+ light: "#f1f6f2",
769
+ dark: "#0a120e"
770
+ }),
771
+ tokens: VERDANT_TOKENS
772
+ });
773
+ //#endregion
774
+ //#region lib/types/skin.js
775
+ /**
776
+ * The shipped color packs, shared by the node and browser halves.
777
+ *
778
+ * A pack is one selectable skin: an id, a provider-owned label, the canvas
779
+ * colors the pre-plugin index render paints, and the alias-token overrides for
780
+ * both base palettes. Packs are identified by their palette, never by a
781
+ * product name, so a composition can pick any of them without exposing who
782
+ * uses it.
783
+ */
784
+ /** Every shipped pack, in appearance-row order. */
785
+ const SKIN_PACKS = Object.freeze([
786
+ QILIN_PACK,
787
+ MONO_PACK,
788
+ VERDANT_PACK
789
+ ]);
790
+ QILIN_PACK.id;
791
+ QILIN_PACK.label;
792
+ QILIN_PACK.boot;
264
793
  //#endregion
265
794
  //#region lib/types/client/index.js
266
- /** QiLin brand color layer for the Web client theme. */
267
- /** Required service: the theme registry and override stack. */
795
+ /** Color packs for the Web client theme: every shipped pack registers as one selectable skin. */
796
+ /** Required service: the theme registry and its skin registry. */
268
797
  const inject = ["theme"];
269
798
  /**
270
- * Stack the QiLin brand layer over whatever palette the user selected. The
271
- * layer is an effect, so unloading the plugin restores the covered tokens.
799
+ * Register every shipped color pack as a selectable skin. Light/dark selection
800
+ * stays the user's; a skin only replaces the alias tokens it names. Registration
801
+ * is an effect, so unloading the plugin removes every skin and restores the
802
+ * platform palette while the durable selection survives for a later load.
272
803
  * @param ctx - Client root context.
273
804
  */
274
805
  function apply(ctx) {
275
- ctx.effect(() => ctx.theme.overrideTokens(QILIN_THEME_SOURCE, QILIN_TOKENS), "qilin: brand tokens");
806
+ for (const pack of SKIN_PACKS) ctx.effect(() => ctx.theme.registerSkin({
807
+ id: pack.id,
808
+ label: pack.label,
809
+ tokens: pack.tokens
810
+ }), `ui-theme-brand: ${pack.id} skin`);
276
811
  }
277
812
  //#endregion
278
813
  exports.apply = apply;