@vokril/ui-solid 0.25.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +16 -6
- package/dist/_internal/platform/settings/settingsTypes.d.cts +7 -0
- package/dist/_internal/platform/settings/settingsTypes.d.ts +7 -0
- package/dist/appThemeDerivation-Be_oKljl.cjs +1 -0
- package/dist/{appThemeDerivation-B7-DjMIM.js → appThemeDerivation-CKoSe4KP.js} +334 -252
- package/dist/fonts/manrope.css +10 -0
- package/dist/fonts.css +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +476 -472
- package/dist/server/appThemeDerivation-Be_oKljl.cjs +1 -0
- package/dist/server/{appThemeDerivation-B7-DjMIM.js → appThemeDerivation-CKoSe4KP.js} +334 -252
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +468 -464
- package/dist/server/tokens/index.cjs +1 -1
- package/dist/server/tokens/index.js +33 -29
- package/dist/solid/tokens/index.js +1 -1
- package/dist/solid/tokens/palette/palettes.js +62 -4
- package/dist/solid/tokens/palette/themeRegistry.js +30 -7
- package/dist/solid/tokens/theme.jsx +12 -5
- package/dist/style.css +288 -9
- package/dist/theme.css +287 -8
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +2 -2
- package/dist/tokens/index.d.ts +2 -2
- package/dist/tokens/index.js +33 -29
- package/dist/tokens/palette/palettes.d.cts +13 -13
- package/dist/tokens/palette/palettes.d.ts +13 -13
- package/dist/tokens/palette/themeRegistry.d.cts +27 -6
- package/dist/tokens/palette/themeRegistry.d.ts +27 -6
- package/dist/tokens/theme.d.cts +11 -8
- package/dist/tokens/theme.d.ts +11 -8
- package/dist/tokens/tokens.css +287 -8
- package/dist/ui.css +1 -1
- package/package.json +3 -2
- package/dist/appThemeDerivation-NS3Vws8q.cjs +0 -1
- package/dist/server/appThemeDerivation-NS3Vws8q.cjs +0 -1
package/dist/theme.css
CHANGED
|
@@ -379,6 +379,44 @@ body.light {
|
|
|
379
379
|
--ui-color-surface: var(--ui-shell-surface);
|
|
380
380
|
--ui-color-bg: var(--ui-shell-bg);
|
|
381
381
|
}
|
|
382
|
+
:root[data-design='vokril'] {
|
|
383
|
+
--font-sans: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
384
|
+
--ui-shell-surface: var(--color-surface);
|
|
385
|
+
--ui-shell-bg: var(--color-surface);
|
|
386
|
+
--ui-color-bg: var(--color-surface);
|
|
387
|
+
--ui-color-bg-subtle: var(--color-surface);
|
|
388
|
+
--ui-color-surface: var(--color-surface);
|
|
389
|
+
--ui-color-surface-hover: var(--color-surface-alt);
|
|
390
|
+
--ui-color-surface-alt: var(--color-surface-alt);
|
|
391
|
+
--ui-color-surface-muted: var(--color-surface-alt);
|
|
392
|
+
--ui-color-surface-sunken: var(--color-surface-alt);
|
|
393
|
+
--ui-color-surface-2: var(--color-surface-alt);
|
|
394
|
+
--ui-color-border-subtle: var(--color-border);
|
|
395
|
+
--ui-color-border-hover: var(--ui-color-border-strong);
|
|
396
|
+
--ui-color-link: var(--ui-color-brand-text);
|
|
397
|
+
--radius-xs: 0;
|
|
398
|
+
--radius-sm: 0;
|
|
399
|
+
--radius-md: 0;
|
|
400
|
+
--radius-lg: 0;
|
|
401
|
+
--radius-xl: 0;
|
|
402
|
+
--radius-2xl: 0;
|
|
403
|
+
--radius-pill: 0;
|
|
404
|
+
--ui-radius-sm: 0;
|
|
405
|
+
--ui-radius-md: 0;
|
|
406
|
+
--ui-radius-lg: 0;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
:root[data-design='vokril'].light {
|
|
410
|
+
--ui-color-border-strong: #BDB7C9;
|
|
411
|
+
--ui-color-brand-deep: #3F25B0;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
:root[data-design='vokril'].dark {
|
|
415
|
+
--ui-color-border-strong: #433D53;
|
|
416
|
+
--ui-color-brand-deep: #B4A6F8;
|
|
417
|
+
--ui-color-brand-surface: var(--color-brand);
|
|
418
|
+
--ui-color-on-brand: var(--color-surface);
|
|
419
|
+
}
|
|
382
420
|
:root.light,
|
|
383
421
|
body.light {
|
|
384
422
|
--ui-color-value-number: #296E8E;
|
|
@@ -565,12 +603,12 @@ samp:where([class^='vk_'], [class*=' vk_'], :is([class^='vk_'], [class*=' vk_'])
|
|
|
565
603
|
border-radius: 3px;
|
|
566
604
|
pointer-events: none;
|
|
567
605
|
}
|
|
568
|
-
:root[data-app-theme='
|
|
606
|
+
:root[data-app-theme='viper-dark'],
|
|
569
607
|
:root[data-theme='dark']:not([data-app-theme]) {
|
|
570
608
|
color-scheme: dark;
|
|
571
609
|
}
|
|
572
610
|
:root:not(.light):not([data-app-theme]):not([data-theme]),
|
|
573
|
-
:root[data-app-theme='
|
|
611
|
+
:root[data-app-theme='viper-dark'],
|
|
574
612
|
:root[data-theme='dark']:not([data-app-theme]) {
|
|
575
613
|
--color-surface: #212329;
|
|
576
614
|
--color-surface-alt: #181A1F;
|
|
@@ -610,12 +648,12 @@ samp:where([class^='vk_'], [class*=' vk_'], :is([class^='vk_'], [class*=' vk_'])
|
|
|
610
648
|
--ui-color-bg: var(--ui-shell-bg);
|
|
611
649
|
}
|
|
612
650
|
:root.light:not([data-app-theme]):not([data-theme]),
|
|
613
|
-
:root[data-app-theme='light'],
|
|
651
|
+
:root[data-app-theme='viper-light'],
|
|
614
652
|
:root[data-theme='light']:not([data-app-theme]) {
|
|
615
653
|
color-scheme: light;
|
|
616
654
|
}
|
|
617
655
|
:root.light:not([data-app-theme]):not([data-theme]),
|
|
618
|
-
:root[data-app-theme='light'],
|
|
656
|
+
:root[data-app-theme='viper-light'],
|
|
619
657
|
:root[data-theme='light']:not([data-app-theme]) {
|
|
620
658
|
--color-surface: #FFFFFF;
|
|
621
659
|
--color-surface-alt: #F3F4F8;
|
|
@@ -679,6 +717,165 @@ samp:where([class^='vk_'], [class*=' vk_'], :is([class^='vk_'], [class*=' vk_'])
|
|
|
679
717
|
--age-ramp-5: #007DB4;
|
|
680
718
|
--age-ramp-6: #717682;
|
|
681
719
|
}
|
|
720
|
+
:root[data-app-theme='vokril-dark'] {
|
|
721
|
+
color-scheme: dark;
|
|
722
|
+
}
|
|
723
|
+
:root[data-app-theme='vokril-dark'] {
|
|
724
|
+
--color-surface: #121018;
|
|
725
|
+
--color-surface-alt: #1C1925;
|
|
726
|
+
--color-surface-elevated: #121018;
|
|
727
|
+
--color-brand: #8C75F2;
|
|
728
|
+
--color-brand-hover: #A593F6;
|
|
729
|
+
--color-content: #F0EDF7;
|
|
730
|
+
--color-content-secondary: #A8A1B8;
|
|
731
|
+
--color-border: #2C2838;
|
|
732
|
+
--color-input: #1C1925;
|
|
733
|
+
--color-input-border: #686476;
|
|
734
|
+
--color-success: #4FB772;
|
|
735
|
+
--color-error: #FF8A80;
|
|
736
|
+
--color-warning: #F0A945;
|
|
737
|
+
--color-info: #55A8DB;
|
|
738
|
+
--color-success-text: #64cc84;
|
|
739
|
+
--color-error-text: #ffa198;
|
|
740
|
+
--color-warning-text: #f8b14d;
|
|
741
|
+
--color-info-text: #6dbff4;
|
|
742
|
+
--color-brand-text: #afa3ff;
|
|
743
|
+
--color-unique-text: #f98bd8;
|
|
744
|
+
--color-brand-surface: #7b62de;
|
|
745
|
+
--color-error-surface: #FF8A80;
|
|
746
|
+
--color-success-surface: #4FB772;
|
|
747
|
+
--color-warning-surface: #F0A945;
|
|
748
|
+
--color-on-brand: #ffffff;
|
|
749
|
+
--color-on-error: #1C1925;
|
|
750
|
+
--color-on-success: #1C1925;
|
|
751
|
+
--color-on-warning: #1C1925;
|
|
752
|
+
--color-syntax-keyword: #BC97E8;
|
|
753
|
+
--color-syntax-string: #92C487;
|
|
754
|
+
--color-syntax-function: #F0C77C;
|
|
755
|
+
--color-syntax-comment: #8F939F;
|
|
756
|
+
--color-syntax-number: #6FBCE3;
|
|
757
|
+
--color-syntax-type: #76CDC5;
|
|
758
|
+
--font-sans: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
759
|
+
--ui-shell-surface: var(--color-surface);
|
|
760
|
+
--ui-shell-bg: var(--color-surface);
|
|
761
|
+
--ui-color-bg: var(--color-surface);
|
|
762
|
+
--ui-color-bg-subtle: var(--color-surface);
|
|
763
|
+
--ui-color-surface: var(--color-surface);
|
|
764
|
+
--ui-color-surface-hover: var(--color-surface-alt);
|
|
765
|
+
--ui-color-surface-alt: var(--color-surface-alt);
|
|
766
|
+
--ui-color-surface-muted: var(--color-surface-alt);
|
|
767
|
+
--ui-color-surface-sunken: var(--color-surface-alt);
|
|
768
|
+
--ui-color-surface-2: var(--color-surface-alt);
|
|
769
|
+
--ui-color-border-subtle: var(--color-border);
|
|
770
|
+
--ui-color-border-hover: var(--ui-color-border-strong);
|
|
771
|
+
--ui-color-link: var(--ui-color-brand-text);
|
|
772
|
+
--radius-xs: 0;
|
|
773
|
+
--radius-sm: 0;
|
|
774
|
+
--radius-md: 0;
|
|
775
|
+
--radius-lg: 0;
|
|
776
|
+
--radius-xl: 0;
|
|
777
|
+
--radius-2xl: 0;
|
|
778
|
+
--radius-pill: 0;
|
|
779
|
+
--ui-radius-sm: 0;
|
|
780
|
+
--ui-radius-md: 0;
|
|
781
|
+
--ui-radius-lg: 0;
|
|
782
|
+
--ui-color-border-strong: #433D53;
|
|
783
|
+
--ui-color-brand-deep: #B4A6F8;
|
|
784
|
+
--ui-color-brand-surface: var(--color-brand);
|
|
785
|
+
--ui-color-on-brand: var(--color-surface);
|
|
786
|
+
}
|
|
787
|
+
:root[data-app-theme='vokril-light'] {
|
|
788
|
+
color-scheme: light;
|
|
789
|
+
}
|
|
790
|
+
:root[data-app-theme='vokril-light'] {
|
|
791
|
+
--color-surface: #FFFFFF;
|
|
792
|
+
--color-surface-alt: #F3F1F7;
|
|
793
|
+
--color-surface-elevated: #FFFFFF;
|
|
794
|
+
--color-brand: #593BD8;
|
|
795
|
+
--color-brand-hover: #4227B4;
|
|
796
|
+
--color-content: #24212D;
|
|
797
|
+
--color-content-secondary: #5E596B;
|
|
798
|
+
--color-border: #DEDBE5;
|
|
799
|
+
--color-input: #FFFFFF;
|
|
800
|
+
--color-input-border: #96939d;
|
|
801
|
+
--color-success: #048A45;
|
|
802
|
+
--color-error: #B42318;
|
|
803
|
+
--color-warning: #C27400;
|
|
804
|
+
--color-info: #007AB0;
|
|
805
|
+
--color-success-text: #006732;
|
|
806
|
+
--color-error-text: #a81109;
|
|
807
|
+
--color-warning-text: #875000;
|
|
808
|
+
--color-info-text: #005e8a;
|
|
809
|
+
--color-brand-text: #5535d2;
|
|
810
|
+
--color-unique-text: #9c3682;
|
|
811
|
+
--color-brand-surface: #593BD8;
|
|
812
|
+
--color-error-surface: #B42318;
|
|
813
|
+
--color-success-surface: #028944;
|
|
814
|
+
--color-warning-surface: #ac6600;
|
|
815
|
+
--color-on-brand: #ffffff;
|
|
816
|
+
--color-on-error: #ffffff;
|
|
817
|
+
--color-on-success: #ffffff;
|
|
818
|
+
--color-on-warning: #ffffff;
|
|
819
|
+
--color-syntax-keyword: #7D3AB7;
|
|
820
|
+
--color-syntax-string: #357426;
|
|
821
|
+
--color-syntax-function: #895709;
|
|
822
|
+
--color-syntax-comment: #696D79;
|
|
823
|
+
--color-syntax-number: #006A9D;
|
|
824
|
+
--color-syntax-type: #007973;
|
|
825
|
+
--ui-color-value-number: #296E8E;
|
|
826
|
+
--ui-color-value-date: #826144;
|
|
827
|
+
--syntax-number: var(--color-syntax-number, var(--ui-color-value-number));
|
|
828
|
+
--elevation-sm: none;
|
|
829
|
+
--elevation-md: none;
|
|
830
|
+
--elevation-popover:
|
|
831
|
+
0 0 0 1px var(--ui-color-border-subtle),
|
|
832
|
+
0 1px 0 0 rgba(255, 255, 255, 0.5) inset, 0 6px 18px rgba(0, 0, 0, 0.08),
|
|
833
|
+
0 14px 32px rgba(0, 0, 0, 0.04);
|
|
834
|
+
--elevation-lg: 0 4px 18px rgba(0, 0, 0, 0.1);
|
|
835
|
+
--elevation-xl: 0 8px 24px rgba(0, 0, 0, 0.14);
|
|
836
|
+
--elevation-dropdown:
|
|
837
|
+
0 0 0 1px var(--ui-color-border-subtle),
|
|
838
|
+
0 1px 0 0 rgba(255, 255, 255, 0.6) inset, 0 4px 14px rgba(0, 0, 0, 0.08);
|
|
839
|
+
--elevation-modal:
|
|
840
|
+
0 0 0 1px var(--ui-color-border-subtle),
|
|
841
|
+
0 1px 0 0 rgba(255, 255, 255, 0.7) inset, 0 12px 36px rgba(0, 0, 0, 0.12),
|
|
842
|
+
0 28px 64px rgba(0, 0, 0, 0.08);
|
|
843
|
+
--elevation-tooltip: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
844
|
+
--elevation-notification: 0 4px 14px rgba(0, 0, 0, 0.08);
|
|
845
|
+
--elevation-notification-hover: 0 6px 18px rgba(0, 0, 0, 0.1);
|
|
846
|
+
--age-ramp-1: #D73E41;
|
|
847
|
+
--age-ramp-2: #BE5A0A;
|
|
848
|
+
--age-ramp-3: #907200;
|
|
849
|
+
--age-ramp-4: #008844;
|
|
850
|
+
--age-ramp-5: #007DB4;
|
|
851
|
+
--age-ramp-6: #717682;
|
|
852
|
+
--font-sans: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
853
|
+
--ui-shell-surface: var(--color-surface);
|
|
854
|
+
--ui-shell-bg: var(--color-surface);
|
|
855
|
+
--ui-color-bg: var(--color-surface);
|
|
856
|
+
--ui-color-bg-subtle: var(--color-surface);
|
|
857
|
+
--ui-color-surface: var(--color-surface);
|
|
858
|
+
--ui-color-surface-hover: var(--color-surface-alt);
|
|
859
|
+
--ui-color-surface-alt: var(--color-surface-alt);
|
|
860
|
+
--ui-color-surface-muted: var(--color-surface-alt);
|
|
861
|
+
--ui-color-surface-sunken: var(--color-surface-alt);
|
|
862
|
+
--ui-color-surface-2: var(--color-surface-alt);
|
|
863
|
+
--ui-color-border-subtle: var(--color-border);
|
|
864
|
+
--ui-color-border-hover: var(--ui-color-border-strong);
|
|
865
|
+
--ui-color-link: var(--ui-color-brand-text);
|
|
866
|
+
--radius-xs: 0;
|
|
867
|
+
--radius-sm: 0;
|
|
868
|
+
--radius-md: 0;
|
|
869
|
+
--radius-lg: 0;
|
|
870
|
+
--radius-xl: 0;
|
|
871
|
+
--radius-2xl: 0;
|
|
872
|
+
--radius-pill: 0;
|
|
873
|
+
--ui-radius-sm: 0;
|
|
874
|
+
--ui-radius-md: 0;
|
|
875
|
+
--ui-radius-lg: 0;
|
|
876
|
+
--ui-color-border-strong: #BDB7C9;
|
|
877
|
+
--ui-color-brand-deep: #3F25B0;
|
|
878
|
+
}
|
|
682
879
|
:root[data-app-theme='high-contrast-dark'] {
|
|
683
880
|
color-scheme: dark;
|
|
684
881
|
}
|
|
@@ -786,12 +983,12 @@ samp:where([class^='vk_'], [class*=' vk_'], :is([class^='vk_'], [class*=' vk_'])
|
|
|
786
983
|
--age-ramp-5: #007DB4;
|
|
787
984
|
--age-ramp-6: #717682;
|
|
788
985
|
}
|
|
789
|
-
:root[data-colorblind-safe][data-app-theme='
|
|
986
|
+
:root[data-colorblind-safe][data-app-theme='viper-dark'],
|
|
790
987
|
:root[data-colorblind-safe][data-theme='dark']:not([data-app-theme]) {
|
|
791
988
|
color-scheme: dark;
|
|
792
989
|
}
|
|
793
990
|
:root[data-colorblind-safe]:not(.light):not([data-app-theme]):not([data-theme]),
|
|
794
|
-
:root[data-colorblind-safe][data-app-theme='
|
|
991
|
+
:root[data-colorblind-safe][data-app-theme='viper-dark'],
|
|
795
992
|
:root[data-colorblind-safe][data-theme='dark']:not([data-app-theme]) {
|
|
796
993
|
--color-surface: #212329;
|
|
797
994
|
--color-surface-alt: #181A1F;
|
|
@@ -831,12 +1028,12 @@ samp:where([class^='vk_'], [class*=' vk_'], :is([class^='vk_'], [class*=' vk_'])
|
|
|
831
1028
|
--color-syntax-type: #76CDC5;
|
|
832
1029
|
}
|
|
833
1030
|
:root[data-colorblind-safe].light:not([data-app-theme]):not([data-theme]),
|
|
834
|
-
:root[data-colorblind-safe][data-app-theme='light'],
|
|
1031
|
+
:root[data-colorblind-safe][data-app-theme='viper-light'],
|
|
835
1032
|
:root[data-colorblind-safe][data-theme='light']:not([data-app-theme]) {
|
|
836
1033
|
color-scheme: light;
|
|
837
1034
|
}
|
|
838
1035
|
:root[data-colorblind-safe].light:not([data-app-theme]):not([data-theme]),
|
|
839
|
-
:root[data-colorblind-safe][data-app-theme='light'],
|
|
1036
|
+
:root[data-colorblind-safe][data-app-theme='viper-light'],
|
|
840
1037
|
:root[data-colorblind-safe][data-theme='light']:not([data-app-theme]) {
|
|
841
1038
|
--color-surface: #FFFFFF;
|
|
842
1039
|
--color-surface-alt: #F3F4F8;
|
|
@@ -875,6 +1072,88 @@ samp:where([class^='vk_'], [class*=' vk_'], :is([class^='vk_'], [class*=' vk_'])
|
|
|
875
1072
|
--color-syntax-number: #006A9D;
|
|
876
1073
|
--color-syntax-type: #007973;
|
|
877
1074
|
}
|
|
1075
|
+
:root[data-colorblind-safe][data-app-theme='vokril-dark'] {
|
|
1076
|
+
color-scheme: dark;
|
|
1077
|
+
}
|
|
1078
|
+
:root[data-colorblind-safe][data-app-theme='vokril-dark'] {
|
|
1079
|
+
--color-surface: #121018;
|
|
1080
|
+
--color-surface-alt: #1C1925;
|
|
1081
|
+
--color-surface-elevated: #121018;
|
|
1082
|
+
--color-brand: #8C75F2;
|
|
1083
|
+
--color-brand-hover: #A593F6;
|
|
1084
|
+
--color-content: #F0EDF7;
|
|
1085
|
+
--color-content-secondary: #A8A1B8;
|
|
1086
|
+
--color-border: #2C2838;
|
|
1087
|
+
--color-input: #1C1925;
|
|
1088
|
+
--color-input-border: #686476;
|
|
1089
|
+
--color-success: #009e73;
|
|
1090
|
+
--color-error: #d55e00;
|
|
1091
|
+
--color-warning: #e69f00;
|
|
1092
|
+
--color-info: #56b4e9;
|
|
1093
|
+
--color-success-text: #43c394;
|
|
1094
|
+
--color-error-text: #ff8b49;
|
|
1095
|
+
--color-warning-text: #f4ad26;
|
|
1096
|
+
--color-info-text: #66c4f9;
|
|
1097
|
+
--color-brand-text: #afa3ff;
|
|
1098
|
+
--color-unique-text: #f98bd8;
|
|
1099
|
+
--color-brand-surface: #7b62de;
|
|
1100
|
+
--color-error-surface: #c35600;
|
|
1101
|
+
--color-success-surface: #008762;
|
|
1102
|
+
--color-warning-surface: #e69f00;
|
|
1103
|
+
--color-on-brand: #ffffff;
|
|
1104
|
+
--color-on-error: #ffffff;
|
|
1105
|
+
--color-on-success: #ffffff;
|
|
1106
|
+
--color-on-warning: #1C1925;
|
|
1107
|
+
--color-diff-added: #009e73;
|
|
1108
|
+
--color-diff-deleted: #d55e00;
|
|
1109
|
+
--color-syntax-keyword: #BC97E8;
|
|
1110
|
+
--color-syntax-string: #92C487;
|
|
1111
|
+
--color-syntax-function: #F0C77C;
|
|
1112
|
+
--color-syntax-comment: #8F939F;
|
|
1113
|
+
--color-syntax-number: #6FBCE3;
|
|
1114
|
+
--color-syntax-type: #76CDC5;
|
|
1115
|
+
}
|
|
1116
|
+
:root[data-colorblind-safe][data-app-theme='vokril-light'] {
|
|
1117
|
+
color-scheme: light;
|
|
1118
|
+
}
|
|
1119
|
+
:root[data-colorblind-safe][data-app-theme='vokril-light'] {
|
|
1120
|
+
--color-surface: #FFFFFF;
|
|
1121
|
+
--color-surface-alt: #F3F1F7;
|
|
1122
|
+
--color-surface-elevated: #FFFFFF;
|
|
1123
|
+
--color-brand: #593BD8;
|
|
1124
|
+
--color-brand-hover: #4227B4;
|
|
1125
|
+
--color-content: #24212D;
|
|
1126
|
+
--color-content-secondary: #5E596B;
|
|
1127
|
+
--color-border: #DEDBE5;
|
|
1128
|
+
--color-input: #FFFFFF;
|
|
1129
|
+
--color-input-border: #96939d;
|
|
1130
|
+
--color-success: #009e73;
|
|
1131
|
+
--color-error: #d55e00;
|
|
1132
|
+
--color-warning: #e69f00;
|
|
1133
|
+
--color-info: #56b4e9;
|
|
1134
|
+
--color-success-text: #00694c;
|
|
1135
|
+
--color-error-text: #974100;
|
|
1136
|
+
--color-warning-text: #855b00;
|
|
1137
|
+
--color-info-text: #006996;
|
|
1138
|
+
--color-brand-text: #5535d2;
|
|
1139
|
+
--color-unique-text: #9c3682;
|
|
1140
|
+
--color-brand-surface: #593BD8;
|
|
1141
|
+
--color-error-surface: #c35600;
|
|
1142
|
+
--color-success-surface: #008762;
|
|
1143
|
+
--color-warning-surface: #e69f00;
|
|
1144
|
+
--color-on-brand: #ffffff;
|
|
1145
|
+
--color-on-error: #ffffff;
|
|
1146
|
+
--color-on-success: #ffffff;
|
|
1147
|
+
--color-on-warning: #000000;
|
|
1148
|
+
--color-diff-added: #009e73;
|
|
1149
|
+
--color-diff-deleted: #d55e00;
|
|
1150
|
+
--color-syntax-keyword: #7D3AB7;
|
|
1151
|
+
--color-syntax-string: #357426;
|
|
1152
|
+
--color-syntax-function: #895709;
|
|
1153
|
+
--color-syntax-comment: #696D79;
|
|
1154
|
+
--color-syntax-number: #006A9D;
|
|
1155
|
+
--color-syntax-type: #007973;
|
|
1156
|
+
}
|
|
878
1157
|
:root[data-colorblind-safe][data-app-theme='high-contrast-dark'] {
|
|
879
1158
|
color-scheme: dark;
|
|
880
1159
|
}
|
package/dist/tokens/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../appThemeDerivation-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../appThemeDerivation-Be_oKljl.cjs");exports.DEFAULT_THEME_ID=e.DEFAULT_THEME_ID;exports.DESIGN_THEMES=e.DESIGN_THEMES;exports.INK_ROLE_KEYS=e.INK_ROLE_KEYS;exports.LEGACY_THEME_IDS=e.LEGACY_THEME_IDS;exports.MAX_TEXT_TINT_ALPHA=e.MAX_TEXT_TINT_ALPHA;exports.OKABE_ITO_DIFF=e.OKABE_ITO_DIFF;exports.TEXT_ROLE_KEYS=e.TEXT_ROLE_KEYS;exports.ThemeProvider=e.ThemeProvider;exports.UNIQUE_ACCENT=e.UNIQUE_ACCENT;exports.WELD_BG=e.WELD_BG;exports.WELD_SURFACE=e.WELD_SURFACE;exports.accessibleFillSurface=e.accessibleFillSurface;exports.accessibleInputBorder=e.accessibleInputBorder;exports.accessibleOnFillInk=e.accessibleOnFillInk;exports.accessibleTextColor=e.accessibleTextColor;exports.applyAppTheme=e.applyAppTheme;exports.derivePaletteProperties=e.derivePaletteProperties;exports.generateMonacoThemeFromPalette=e.generateMonacoThemeFromPalette;exports.generateTerminalPaletteFromPalette=e.generateTerminalPaletteFromPalette;exports.getDefaultThemeId=e.getDefaultThemeId;exports.getThemeById=e.getThemeById;exports.getThemeDesign=e.getThemeDesign;exports.getThemeOptions=e.getThemeOptions;exports.getThemes=e.getThemes;exports.isColorVisionSafeActive=e.isColorVisionSafeActive;exports.isKnownThemeId=e.isKnownThemeId;exports.readActiveAppPalette=e.readActiveAppPalette;exports.readActiveAppThemeId=e.readActiveAppThemeId;exports.readActiveAppThemeType=e.readActiveAppThemeType;exports.registerThemeSource=e.registerThemeSource;exports.resolveThemeOption=e.resolveThemeOption;exports.setThemeDesign=e.setThemeDesign;exports.textGroundsFor=e.textGroundsFor;exports.themeOptions=e.themeOptions;exports.toColorVisionSafePalette=e.toColorVisionSafePalette;exports.useTheme=e.useTheme;
|
package/dist/tokens/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './theme.cjs';
|
|
2
2
|
export { themeOptions } from './palette/palettes.cjs';
|
|
3
|
-
export { DEFAULT_THEME_ID, LEGACY_THEME_IDS, getThemeById, getThemeOptions, isKnownThemeId, registerThemeSource, type ThemeSource, } from './palette/themeRegistry.cjs';
|
|
3
|
+
export { DEFAULT_THEME_ID, DESIGN_THEMES, LEGACY_THEME_IDS, getDefaultThemeId, getThemeById, getThemeDesign, getThemeOptions, isKnownThemeId, registerThemeSource, setThemeDesign, type ThemeSource, } from './palette/themeRegistry.cjs';
|
|
4
4
|
export { derivePaletteProperties, type PaletteProperties } from './palette/paletteProperties.cjs';
|
|
5
5
|
export { toColorVisionSafePalette, isColorVisionSafeActive, OKABE_ITO_DIFF, } from './palette/colorVisionPalette.cjs';
|
|
6
|
-
export type { ThemeOption, ThemePalette, ThemeMode, } from '../_internal/platform/settings/settingsTypes.cjs';
|
|
6
|
+
export type { ThemeDesign, ThemeOption, ThemePalette, ThemeMode, } from '../_internal/platform/settings/settingsTypes.cjs';
|
|
7
7
|
export * from './palette/accessiblePalette.cjs';
|
|
8
8
|
export * from '../_internal/app/settings/theme/appThemeDerivation.cjs';
|
package/dist/tokens/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './theme.js';
|
|
2
2
|
export { themeOptions } from './palette/palettes.js';
|
|
3
|
-
export { DEFAULT_THEME_ID, LEGACY_THEME_IDS, getThemeById, getThemeOptions, isKnownThemeId, registerThemeSource, type ThemeSource, } from './palette/themeRegistry.js';
|
|
3
|
+
export { DEFAULT_THEME_ID, DESIGN_THEMES, LEGACY_THEME_IDS, getDefaultThemeId, getThemeById, getThemeDesign, getThemeOptions, isKnownThemeId, registerThemeSource, setThemeDesign, type ThemeSource, } from './palette/themeRegistry.js';
|
|
4
4
|
export { derivePaletteProperties, type PaletteProperties } from './palette/paletteProperties.js';
|
|
5
5
|
export { toColorVisionSafePalette, isColorVisionSafeActive, OKABE_ITO_DIFF, } from './palette/colorVisionPalette.js';
|
|
6
|
-
export type { ThemeOption, ThemePalette, ThemeMode, } from '../_internal/platform/settings/settingsTypes.js';
|
|
6
|
+
export type { ThemeDesign, ThemeOption, ThemePalette, ThemeMode, } from '../_internal/platform/settings/settingsTypes.js';
|
|
7
7
|
export * from './palette/accessiblePalette.js';
|
|
8
8
|
export * from '../_internal/app/settings/theme/appThemeDerivation.js';
|
package/dist/tokens/index.js
CHANGED
|
@@ -1,35 +1,39 @@
|
|
|
1
|
-
import { D as
|
|
1
|
+
import { D as a, a as t, I as T, L as r, M as i, O as o, T as l, b as m, U as E, W as n, c as p, d as h, e as A, f as _, g as c, h as I, i as d, j as g, k as D, l as S, m as F, n as O, o as P, p as v, q as L, r as u, s as C, t as f, u as M, v as b, w as B, x as K, y as N, z as U, A as x, B as y } from "../appThemeDerivation-CKoSe4KP.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
t as
|
|
3
|
+
a as DEFAULT_THEME_ID,
|
|
4
|
+
t as DESIGN_THEMES,
|
|
5
|
+
T as INK_ROLE_KEYS,
|
|
5
6
|
r as LEGACY_THEME_IDS,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
7
|
+
i as MAX_TEXT_TINT_ALPHA,
|
|
8
|
+
o as OKABE_ITO_DIFF,
|
|
9
|
+
l as TEXT_ROLE_KEYS,
|
|
10
|
+
m as ThemeProvider,
|
|
11
|
+
E as UNIQUE_ACCENT,
|
|
12
|
+
n as WELD_BG,
|
|
13
|
+
p as WELD_SURFACE,
|
|
14
|
+
h as accessibleFillSurface,
|
|
15
|
+
A as accessibleInputBorder,
|
|
16
|
+
_ as accessibleOnFillInk,
|
|
17
|
+
c as accessibleTextColor,
|
|
18
|
+
I as applyAppTheme,
|
|
19
|
+
d as derivePaletteProperties,
|
|
20
|
+
g as generateMonacoThemeFromPalette,
|
|
21
|
+
D as generateTerminalPaletteFromPalette,
|
|
22
|
+
S as getDefaultThemeId,
|
|
23
|
+
F as getThemeById,
|
|
24
|
+
O as getThemeDesign,
|
|
22
25
|
P as getThemeOptions,
|
|
23
26
|
v as getThemes,
|
|
24
27
|
L as isColorVisionSafeActive,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
u as isKnownThemeId,
|
|
29
|
+
C as readActiveAppPalette,
|
|
30
|
+
f as readActiveAppThemeId,
|
|
31
|
+
M as readActiveAppThemeType,
|
|
32
|
+
b as registerThemeSource,
|
|
33
|
+
B as resolveThemeOption,
|
|
34
|
+
K as setThemeDesign,
|
|
35
|
+
N as textGroundsFor,
|
|
36
|
+
U as themeOptions,
|
|
37
|
+
x as toColorVisionSafePalette,
|
|
38
|
+
y as useTheme
|
|
35
39
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { ThemeOption } from '../../_internal/platform/settings/settingsTypes.cjs';
|
|
2
2
|
/**
|
|
3
|
-
* Built-in colour themes:
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
3
|
+
* Built-in colour themes: a dark and a light theme for each design (decision 0021) —
|
|
4
|
+
* **Viper Dark** (the default) and **Viper Light**, **Vokril Dark** and **Vokril Light** —
|
|
5
|
+
* plus the two high-contrast themes, which belong to no design. Their values are the Vokril
|
|
6
|
+
* colour system in `scripts/palette/vokril.mjs` — do not hand-edit them, change the
|
|
7
|
+
* parameters and run `node scripts/palette/vokril.mjs --write`. The legacy ids `darcula` and
|
|
8
|
+
* `light` resolve to Viper Dark and Viper Light (`themeRegistry`).
|
|
8
9
|
*
|
|
9
|
-
* ⚠
|
|
10
|
-
* dark-only built-in set the light code path — the `body.light` seam, the OKLCH
|
|
11
|
-
* derivation in `accessiblePalette.ts`, every `-text`/`-surface`/`-on-*` role —
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* as a plugin.
|
|
10
|
+
* ⚠ Each design keeps its light theme as a TEST BASELINE, not to re-grow the catalogue.
|
|
11
|
+
* With a dark-only built-in set the light code path — the `body.light` seam, the OKLCH
|
|
12
|
+
* derivation in `accessiblePalette.ts`, every `-text`/`-surface`/`-on-*` role — shipped but
|
|
13
|
+
* was unreachable without installing a plugin, so light-theme regressions (hardcoded
|
|
14
|
+
* dark-only badge colours, white-on-white headings) went unseen by everyone including CI.
|
|
15
|
+
* Keep one dark and one light theme per design; publish anything else as a plugin.
|
|
16
16
|
*
|
|
17
|
-
* ⚠
|
|
17
|
+
* ⚠ Viper Dark must stay FIRST — `appThemeDerivation.ts` and `themeRegistry.ts` fall
|
|
18
18
|
* back to index 0.
|
|
19
19
|
*
|
|
20
20
|
* ⚠ Three consumers parse this file as TEXT rather than importing it (the
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { ThemeOption } from '../../_internal/platform/settings/settingsTypes.js';
|
|
2
2
|
/**
|
|
3
|
-
* Built-in colour themes:
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
3
|
+
* Built-in colour themes: a dark and a light theme for each design (decision 0021) —
|
|
4
|
+
* **Viper Dark** (the default) and **Viper Light**, **Vokril Dark** and **Vokril Light** —
|
|
5
|
+
* plus the two high-contrast themes, which belong to no design. Their values are the Vokril
|
|
6
|
+
* colour system in `scripts/palette/vokril.mjs` — do not hand-edit them, change the
|
|
7
|
+
* parameters and run `node scripts/palette/vokril.mjs --write`. The legacy ids `darcula` and
|
|
8
|
+
* `light` resolve to Viper Dark and Viper Light (`themeRegistry`).
|
|
8
9
|
*
|
|
9
|
-
* ⚠
|
|
10
|
-
* dark-only built-in set the light code path — the `body.light` seam, the OKLCH
|
|
11
|
-
* derivation in `accessiblePalette.ts`, every `-text`/`-surface`/`-on-*` role —
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* as a plugin.
|
|
10
|
+
* ⚠ Each design keeps its light theme as a TEST BASELINE, not to re-grow the catalogue.
|
|
11
|
+
* With a dark-only built-in set the light code path — the `body.light` seam, the OKLCH
|
|
12
|
+
* derivation in `accessiblePalette.ts`, every `-text`/`-surface`/`-on-*` role — shipped but
|
|
13
|
+
* was unreachable without installing a plugin, so light-theme regressions (hardcoded
|
|
14
|
+
* dark-only badge colours, white-on-white headings) went unseen by everyone including CI.
|
|
15
|
+
* Keep one dark and one light theme per design; publish anything else as a plugin.
|
|
16
16
|
*
|
|
17
|
-
* ⚠
|
|
17
|
+
* ⚠ Viper Dark must stay FIRST — `appThemeDerivation.ts` and `themeRegistry.ts` fall
|
|
18
18
|
* back to index 0.
|
|
19
19
|
*
|
|
20
20
|
* ⚠ Three consumers parse this file as TEXT rather than importing it (the
|
|
@@ -7,17 +7,35 @@
|
|
|
7
7
|
* a settings group validates a stored theme id against it, and settings groups are realm-wide
|
|
8
8
|
* declarations. Lookups answer the built-ins first, then each source in registration order.
|
|
9
9
|
*
|
|
10
|
+
* The realm also has one design (decision 0021): `viper` (the default) or `vokril`. A product picks it
|
|
11
|
+
* once at start-up with `setThemeDesign`; the theme lists then offer that design's themes (and the
|
|
12
|
+
* high-contrast ones, which belong to no design), and a built-in theme of the other design resolves to
|
|
13
|
+
* this design's theme of the same type — a stored `vokril-dark` reads as `viper-dark` in a Viper product
|
|
14
|
+
* and the other way round, so no stored setting needs migrating.
|
|
15
|
+
*
|
|
10
16
|
* Logger-free and storage-free on purpose: subsystems that resolve a theme by id (the `auto` editor and
|
|
11
17
|
* terminal themes, the grid pin) import it without the theme runtime.
|
|
12
18
|
*/
|
|
13
|
-
import type { ThemeOption } from '../../_internal/platform/settings/settingsTypes.cjs';
|
|
19
|
+
import type { ThemeDesign, ThemeMode, ThemeOption } from '../../_internal/platform/settings/settingsTypes.cjs';
|
|
14
20
|
import type { IDisposable } from '../../_internal/base/lifecycle.cjs';
|
|
15
|
-
|
|
21
|
+
/** The designs and the ids of each design's dark and light theme. */
|
|
22
|
+
export declare const DESIGN_THEMES: Readonly<Record<ThemeDesign, Readonly<Record<ThemeMode, string>>>>;
|
|
23
|
+
/** The default design's dark theme. The active design's default: `getDefaultThemeId()`. */
|
|
24
|
+
export declare const DEFAULT_THEME_ID = "viper-dark";
|
|
16
25
|
/**
|
|
17
26
|
* Ids that earlier releases (and the host app, whose default is `darcula`) stored or
|
|
18
|
-
* stamped; they resolve to the
|
|
27
|
+
* stamped; they resolve to the palette that replaced them (decisions 0015, 0021).
|
|
19
28
|
*/
|
|
20
29
|
export declare const LEGACY_THEME_IDS: Readonly<Record<string, string>>;
|
|
30
|
+
/**
|
|
31
|
+
* Sets the realm's design. Call it once, before the first theme is applied; a product does not mix
|
|
32
|
+
* designs.
|
|
33
|
+
*/
|
|
34
|
+
export declare function setThemeDesign(design: ThemeDesign): void;
|
|
35
|
+
/** The realm's design (`viper` unless `setThemeDesign` chose another). */
|
|
36
|
+
export declare function getThemeDesign(): ThemeDesign;
|
|
37
|
+
/** The id of the active design's dark (or light) theme. */
|
|
38
|
+
export declare function getDefaultThemeId(type?: ThemeMode): string;
|
|
21
39
|
/** A source of themes the host contributes (its user-imported themes, its plugins' themes). */
|
|
22
40
|
export interface ThemeSource {
|
|
23
41
|
byId(id: string): ThemeOption | null;
|
|
@@ -25,9 +43,12 @@ export interface ThemeSource {
|
|
|
25
43
|
}
|
|
26
44
|
/** Contributes a source of themes; its themes are listed and resolved until the registration is disposed. */
|
|
27
45
|
export declare function registerThemeSource(source: ThemeSource): IDisposable;
|
|
28
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* Resolve a theme by id (built-in → contributed), else the active design's default. A built-in theme
|
|
48
|
+
* of another design resolves to the active design's theme of the same type.
|
|
49
|
+
*/
|
|
29
50
|
export declare function getThemeById(rawId: string): ThemeOption;
|
|
30
|
-
/** All selectable themes: built-ins, then each source's in registration order. */
|
|
51
|
+
/** All selectable themes: the active design's built-ins, then each source's in registration order. */
|
|
31
52
|
export declare function getThemeOptions(): ThemeOption[];
|
|
32
|
-
/** True if the id names a real built-in or contributed theme (vs an unknown id). */
|
|
53
|
+
/** True if the id names a real built-in (of any design) or contributed theme (vs an unknown id). */
|
|
33
54
|
export declare function isKnownThemeId(rawId: string): boolean;
|
|
@@ -7,17 +7,35 @@
|
|
|
7
7
|
* a settings group validates a stored theme id against it, and settings groups are realm-wide
|
|
8
8
|
* declarations. Lookups answer the built-ins first, then each source in registration order.
|
|
9
9
|
*
|
|
10
|
+
* The realm also has one design (decision 0021): `viper` (the default) or `vokril`. A product picks it
|
|
11
|
+
* once at start-up with `setThemeDesign`; the theme lists then offer that design's themes (and the
|
|
12
|
+
* high-contrast ones, which belong to no design), and a built-in theme of the other design resolves to
|
|
13
|
+
* this design's theme of the same type — a stored `vokril-dark` reads as `viper-dark` in a Viper product
|
|
14
|
+
* and the other way round, so no stored setting needs migrating.
|
|
15
|
+
*
|
|
10
16
|
* Logger-free and storage-free on purpose: subsystems that resolve a theme by id (the `auto` editor and
|
|
11
17
|
* terminal themes, the grid pin) import it without the theme runtime.
|
|
12
18
|
*/
|
|
13
|
-
import type { ThemeOption } from '../../_internal/platform/settings/settingsTypes.js';
|
|
19
|
+
import type { ThemeDesign, ThemeMode, ThemeOption } from '../../_internal/platform/settings/settingsTypes.js';
|
|
14
20
|
import type { IDisposable } from '../../_internal/base/lifecycle.js';
|
|
15
|
-
|
|
21
|
+
/** The designs and the ids of each design's dark and light theme. */
|
|
22
|
+
export declare const DESIGN_THEMES: Readonly<Record<ThemeDesign, Readonly<Record<ThemeMode, string>>>>;
|
|
23
|
+
/** The default design's dark theme. The active design's default: `getDefaultThemeId()`. */
|
|
24
|
+
export declare const DEFAULT_THEME_ID = "viper-dark";
|
|
16
25
|
/**
|
|
17
26
|
* Ids that earlier releases (and the host app, whose default is `darcula`) stored or
|
|
18
|
-
* stamped; they resolve to the
|
|
27
|
+
* stamped; they resolve to the palette that replaced them (decisions 0015, 0021).
|
|
19
28
|
*/
|
|
20
29
|
export declare const LEGACY_THEME_IDS: Readonly<Record<string, string>>;
|
|
30
|
+
/**
|
|
31
|
+
* Sets the realm's design. Call it once, before the first theme is applied; a product does not mix
|
|
32
|
+
* designs.
|
|
33
|
+
*/
|
|
34
|
+
export declare function setThemeDesign(design: ThemeDesign): void;
|
|
35
|
+
/** The realm's design (`viper` unless `setThemeDesign` chose another). */
|
|
36
|
+
export declare function getThemeDesign(): ThemeDesign;
|
|
37
|
+
/** The id of the active design's dark (or light) theme. */
|
|
38
|
+
export declare function getDefaultThemeId(type?: ThemeMode): string;
|
|
21
39
|
/** A source of themes the host contributes (its user-imported themes, its plugins' themes). */
|
|
22
40
|
export interface ThemeSource {
|
|
23
41
|
byId(id: string): ThemeOption | null;
|
|
@@ -25,9 +43,12 @@ export interface ThemeSource {
|
|
|
25
43
|
}
|
|
26
44
|
/** Contributes a source of themes; its themes are listed and resolved until the registration is disposed. */
|
|
27
45
|
export declare function registerThemeSource(source: ThemeSource): IDisposable;
|
|
28
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* Resolve a theme by id (built-in → contributed), else the active design's default. A built-in theme
|
|
48
|
+
* of another design resolves to the active design's theme of the same type.
|
|
49
|
+
*/
|
|
29
50
|
export declare function getThemeById(rawId: string): ThemeOption;
|
|
30
|
-
/** All selectable themes: built-ins, then each source's in registration order. */
|
|
51
|
+
/** All selectable themes: the active design's built-ins, then each source's in registration order. */
|
|
31
52
|
export declare function getThemeOptions(): ThemeOption[];
|
|
32
|
-
/** True if the id names a real built-in or contributed theme (vs an unknown id). */
|
|
53
|
+
/** True if the id names a real built-in (of any design) or contributed theme (vs an unknown id). */
|
|
33
54
|
export declare function isKnownThemeId(rawId: string): boolean;
|