@vokril/ui-solid 0.24.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.
Files changed (51) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +16 -6
  3. package/dist/CommandPalette-Bf8flX2t.cjs +2 -0
  4. package/dist/{CommandPalette-CBA_Shqx.js → CommandPalette-CoIdCmZ0.js} +1287 -1278
  5. package/dist/_internal/platform/settings/settingsTypes.d.cts +7 -0
  6. package/dist/_internal/platform/settings/settingsTypes.d.ts +7 -0
  7. package/dist/appThemeDerivation-Be_oKljl.cjs +1 -0
  8. package/dist/{server/appThemeDerivation-B7-DjMIM.js → appThemeDerivation-CKoSe4KP.js} +334 -252
  9. package/dist/fonts/manrope.css +10 -0
  10. package/dist/fonts.css +2 -0
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.js +476 -472
  13. package/dist/overlay/Drawer.d.cts +8 -0
  14. package/dist/overlay/Drawer.d.ts +8 -0
  15. package/dist/overlay/index.cjs +1 -1
  16. package/dist/overlay/index.js +1 -1
  17. package/dist/server/{CommandPalette-DE59Rq-n.js → CommandPalette-COVjWlx9.js} +772 -764
  18. package/dist/server/CommandPalette-C_9Z8gVc.cjs +1 -0
  19. package/dist/server/appThemeDerivation-Be_oKljl.cjs +1 -0
  20. package/dist/{appThemeDerivation-B7-DjMIM.js → server/appThemeDerivation-CKoSe4KP.js} +334 -252
  21. package/dist/server/index.cjs +1 -1
  22. package/dist/server/index.js +468 -464
  23. package/dist/server/overlay/index.cjs +1 -1
  24. package/dist/server/overlay/index.js +1 -1
  25. package/dist/server/tokens/index.cjs +1 -1
  26. package/dist/server/tokens/index.js +33 -29
  27. package/dist/solid/overlay/Drawer.jsx +18 -7
  28. package/dist/solid/overlay/Drawer.module.css.js +1 -0
  29. package/dist/solid/tokens/index.js +1 -1
  30. package/dist/solid/tokens/palette/palettes.js +62 -4
  31. package/dist/solid/tokens/palette/themeRegistry.js +30 -7
  32. package/dist/solid/tokens/theme.jsx +12 -5
  33. package/dist/style.css +288 -9
  34. package/dist/theme.css +287 -8
  35. package/dist/tokens/index.cjs +1 -1
  36. package/dist/tokens/index.d.cts +2 -2
  37. package/dist/tokens/index.d.ts +2 -2
  38. package/dist/tokens/index.js +33 -29
  39. package/dist/tokens/palette/palettes.d.cts +13 -13
  40. package/dist/tokens/palette/palettes.d.ts +13 -13
  41. package/dist/tokens/palette/themeRegistry.d.cts +27 -6
  42. package/dist/tokens/palette/themeRegistry.d.ts +27 -6
  43. package/dist/tokens/theme.d.cts +11 -8
  44. package/dist/tokens/theme.d.ts +11 -8
  45. package/dist/tokens/tokens.css +287 -8
  46. package/dist/ui.css +1 -1
  47. package/package.json +3 -2
  48. package/dist/CommandPalette-CBFIo0FX.cjs +0 -2
  49. package/dist/appThemeDerivation-NS3Vws8q.cjs +0 -1
  50. package/dist/server/CommandPalette-CRT5VEoR.cjs +0 -1
  51. package/dist/server/appThemeDerivation-NS3Vws8q.cjs +0 -1
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * ThemeProvider / applyAppTheme — the app theme application for @vokril/ui.
3
3
  *
4
- * A theme is one of the built-in Vokril palettes (`vokril-dark` — the default —,
5
- * `light`, `high-contrast-dark`, `high-contrast-light`; see `./palette/palettes`; the
6
- * legacy id `darcula` resolves to `vokril-dark`).
4
+ * A theme is one of the built-in palettes — each design's dark and light theme (`viper-dark`
5
+ * — the default —, `viper-light`, `vokril-dark`, `vokril-light`) and the design-less
6
+ * `high-contrast-dark`, `high-contrast-light`; see `./palette/palettes` and decision 0021.
7
7
  * Applying it does exactly what the host app's `applyPalette` does:
8
8
  *
9
9
  * 1. optional colour-vision-safe transform of the palette (Okabe–Ito) BEFORE derivation,
@@ -11,18 +11,21 @@
11
11
  * <html> (accessible text/surface/on-* variants, derived input border, syntax, diff),
12
12
  * 3. `light` | `dark` class on <html> AND <body> (tokens.css keys its shell weld and
13
13
  * light accents on them), `color-scheme` on <html>, `data-app-theme` on <html>,
14
- * 4. `data-colorblind-safe` on <html> while the colour-vision-safe mode is on.
14
+ * 4. `data-design` on <html> for a theme of a design (tokens.css keys the design's type and
15
+ * shape on it),
16
+ * 5. `data-colorblind-safe` on <html> while the colour-vision-safe mode is on.
15
17
  *
16
18
  * The host app also caches splash colours in localStorage; that app-specific step is omitted.
17
19
  * The same values are available without JS from the generated `palette.css`.
18
20
  *
19
21
  * The provider keeps the earlier @vokril/ui API (`theme`, `resolvedTheme`, `setTheme`,
20
- * `toggleTheme`, `'dark' | 'light' | 'system'`): `'dark'` means Vokril Dark, `'system'` follows
22
+ * `toggleTheme`, `'dark' | 'light' | 'system'`): `'dark'` and `'light'` mean the active design's
23
+ * dark and light theme (`setThemeDesign`), `'system'` picks between them by
21
24
  * `prefers-color-scheme`, and any palette id is accepted as well.
22
25
  */
23
26
  import { type ParentComponent } from 'solid-js';
24
27
  import type { ThemeOption } from '../_internal/platform/settings/settingsTypes.cjs';
25
- /** `'dark'` (= Vokril Dark), `'light'`, `'system'`, or any built-in palette id. */
28
+ /** `'dark'`, `'light'` (the active design's), `'system'`, or any built-in palette id. */
26
29
  export type Theme = 'dark' | 'light' | 'system' | (string & {});
27
30
  export type ResolvedTheme = 'dark' | 'light';
28
31
  export interface ThemeContextValue {
@@ -30,7 +33,7 @@ export interface ThemeContextValue {
30
33
  theme: () => Theme;
31
34
  /** Light/dark type of the applied palette. */
32
35
  resolvedTheme: () => ResolvedTheme;
33
- /** Id of the applied palette (`vokril-dark`, `light`, …). */
36
+ /** Id of the applied palette (`viper-dark`, `vokril-light`, …). */
34
37
  themeId: () => string;
35
38
  setTheme: (theme: Theme) => void;
36
39
  toggleTheme: () => void;
@@ -55,7 +58,7 @@ export declare function getThemes(): ThemeOption[];
55
58
  /** Where ThemeProvider keeps the chosen theme: `localStorage`, `sessionStorage` or your own. */
56
59
  export type ThemeStorage = Pick<Storage, 'getItem' | 'setItem'>;
57
60
  export interface ThemeProviderProps {
58
- /** Initial theme when nothing is stored (default `'dark'` = Vokril Dark). */
61
+ /** Initial theme when nothing is stored (default `'dark'`: the active design's dark theme). */
59
62
  defaultTheme?: Theme;
60
63
  /** Storage key for the chosen theme (default `'vokril-ui-theme'`); `null` disables persistence. */
61
64
  storageKey?: string | null;
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * ThemeProvider / applyAppTheme — the app theme application for @vokril/ui.
3
3
  *
4
- * A theme is one of the built-in Vokril palettes (`vokril-dark` — the default —,
5
- * `light`, `high-contrast-dark`, `high-contrast-light`; see `./palette/palettes`; the
6
- * legacy id `darcula` resolves to `vokril-dark`).
4
+ * A theme is one of the built-in palettes — each design's dark and light theme (`viper-dark`
5
+ * — the default —, `viper-light`, `vokril-dark`, `vokril-light`) and the design-less
6
+ * `high-contrast-dark`, `high-contrast-light`; see `./palette/palettes` and decision 0021.
7
7
  * Applying it does exactly what the host app's `applyPalette` does:
8
8
  *
9
9
  * 1. optional colour-vision-safe transform of the palette (Okabe–Ito) BEFORE derivation,
@@ -11,18 +11,21 @@
11
11
  * <html> (accessible text/surface/on-* variants, derived input border, syntax, diff),
12
12
  * 3. `light` | `dark` class on <html> AND <body> (tokens.css keys its shell weld and
13
13
  * light accents on them), `color-scheme` on <html>, `data-app-theme` on <html>,
14
- * 4. `data-colorblind-safe` on <html> while the colour-vision-safe mode is on.
14
+ * 4. `data-design` on <html> for a theme of a design (tokens.css keys the design's type and
15
+ * shape on it),
16
+ * 5. `data-colorblind-safe` on <html> while the colour-vision-safe mode is on.
15
17
  *
16
18
  * The host app also caches splash colours in localStorage; that app-specific step is omitted.
17
19
  * The same values are available without JS from the generated `palette.css`.
18
20
  *
19
21
  * The provider keeps the earlier @vokril/ui API (`theme`, `resolvedTheme`, `setTheme`,
20
- * `toggleTheme`, `'dark' | 'light' | 'system'`): `'dark'` means Vokril Dark, `'system'` follows
22
+ * `toggleTheme`, `'dark' | 'light' | 'system'`): `'dark'` and `'light'` mean the active design's
23
+ * dark and light theme (`setThemeDesign`), `'system'` picks between them by
21
24
  * `prefers-color-scheme`, and any palette id is accepted as well.
22
25
  */
23
26
  import { type ParentComponent } from 'solid-js';
24
27
  import type { ThemeOption } from '../_internal/platform/settings/settingsTypes.js';
25
- /** `'dark'` (= Vokril Dark), `'light'`, `'system'`, or any built-in palette id. */
28
+ /** `'dark'`, `'light'` (the active design's), `'system'`, or any built-in palette id. */
26
29
  export type Theme = 'dark' | 'light' | 'system' | (string & {});
27
30
  export type ResolvedTheme = 'dark' | 'light';
28
31
  export interface ThemeContextValue {
@@ -30,7 +33,7 @@ export interface ThemeContextValue {
30
33
  theme: () => Theme;
31
34
  /** Light/dark type of the applied palette. */
32
35
  resolvedTheme: () => ResolvedTheme;
33
- /** Id of the applied palette (`vokril-dark`, `light`, …). */
36
+ /** Id of the applied palette (`viper-dark`, `vokril-light`, …). */
34
37
  themeId: () => string;
35
38
  setTheme: (theme: Theme) => void;
36
39
  toggleTheme: () => void;
@@ -55,7 +58,7 @@ export declare function getThemes(): ThemeOption[];
55
58
  /** Where ThemeProvider keeps the chosen theme: `localStorage`, `sessionStorage` or your own. */
56
59
  export type ThemeStorage = Pick<Storage, 'getItem' | 'setItem'>;
57
60
  export interface ThemeProviderProps {
58
- /** Initial theme when nothing is stored (default `'dark'` = Vokril Dark). */
61
+ /** Initial theme when nothing is stored (default `'dark'`: the active design's dark theme). */
59
62
  defaultTheme?: Theme;
60
63
  /** Storage key for the chosen theme (default `'vokril-ui-theme'`); `null` disables persistence. */
61
64
  storageKey?: string | null;
@@ -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='vokril-dark'],
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='vokril-dark'],
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='vokril-dark'],
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='vokril-dark'],
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
  }