|
2 | 2 | :root {
|
3 | 3 | /* Implementing an auto-selection of dark/light theme via: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/light-dark */
|
4 | 4 | color-scheme: light dark;
|
5 |
| - |
| 5 | + |
6 | 6 | /* PHPUnit light/dark colors */
|
7 | 7 | --phpunit-breadcrumbs: light-dark(var(--bs-gray-200), var(--bs-gray-800));
|
8 | 8 | --phpunit-success-bar: light-dark(#28a745 ,#1f8135);
|
|
15 | 15 | --phpunit-danger-bar: light-dark(#dc3545, #a62633);
|
16 | 16 |
|
17 | 17 | /* Bootstrap v5.3 default colors (light, dark) */
|
18 |
| - --bs-body-bg-rgb: light-dark((255, 255, 255), (33, 37, 41)); |
| 18 | + --bs-body-bg-rgb: 255, 255, 255; |
19 | 19 | --bs-body-bg: light-dark(#fff, #212529);
|
20 | 20 | --bs-body-color-rgb: light-dark(33, 37, 41, 222, 226, 230);
|
21 | 21 | --bs-body-color: light-dark(#212529, #dee2e6);
|
|
28 | 28 | --bs-dark-bg-subtle: light-dark(#ced4da, #1a1d20);
|
29 | 29 | --bs-dark-border-subtle: light-dark(#adb5bd, #343a40);
|
30 | 30 | --bs-dark-text-emphasis: light-dark(#495057, #dee2e6);
|
31 |
| - --bs-emphasis-color-rgb: light-dark((0, 0, 0), (255, 255, 255)); |
| 31 | + --bs-emphasis-color-rgb: 0, 0, 0; |
32 | 32 | --bs-emphasis-color: light-dark(#000, #fff);
|
33 | 33 | --bs-form-invalid-border-color: light-dark(#dc3545, #ea868f);
|
34 | 34 | --bs-form-invalid-color: light-dark(#dc3545, #ea868f);
|
|
42 | 42 | --bs-light-bg-subtle: light-dark(#fcfcfd, #343a40);
|
43 | 43 | --bs-light-border-subtle: light-dark(#e9ecef, #495057);
|
44 | 44 | --bs-light-text-emphasis: light-dark(#495057, #f8f9fa);
|
45 |
| - --bs-link-color-rgb: light-dark((13, 110, 253), (110, 168, 254)); |
| 45 | + --bs-link-color-rgb: 13, 110, 253; |
46 | 46 | --bs-link-color: light-dark(#0d6efd, #6ea8fe);
|
47 |
| - --bs-link-hover-color-rgb: light-dark((10, 88, 202), (139, 185, 254)); |
| 47 | + --bs-link-hover-color-rgb: 10, 88, 202; |
48 | 48 | --bs-link-hover-color: light-dark(#0a58ca, #8bb9fe);
|
49 | 49 | --bs-primary-bg-subtle: light-dark(#cfe2ff, #031633);
|
50 | 50 | --bs-primary-border-subtle: light-dark(#9ec5fe, #084298);
|
51 | 51 | --bs-primary-text-emphasis: light-dark(#052c65, #6ea8fe);
|
52 |
| - --bs-secondary-bg-rgb: light-dark((233, 236, 239), (52, 58, 64)); |
| 52 | + --bs-secondary-bg-rgb: 233, 236, 239; |
53 | 53 | --bs-secondary-bg-subtle: light-dark(#e2e3e5, #161719);
|
54 | 54 | --bs-secondary-bg: light-dark(#e9ecef, #343a40);
|
55 | 55 | --bs-secondary-border-subtle: light-dark(#c4c8cb, #41464b);
|
56 |
| - --bs-secondary-color-rgb: light-dark((33, 37, 41), (222, 226, 230)); |
| 56 | + --bs-secondary-color-rgb: 33, 37, 41; |
57 | 57 | --bs-secondary-color: light-dark(rgba(33, 37, 41, 0.75), rgba(222, 226, 230, 0.75));
|
58 | 58 | --bs-secondary-text-emphasis: light-dark(#2b2f32, #a7acb1);
|
59 | 59 | --bs-success-bg-subtle: light-dark(#d1e7dd, #051b11);
|
60 | 60 | --bs-success-border-subtle: light-dark(#a3cfbb, #0f5132);
|
61 | 61 | --bs-success-text-emphasis: light-dark(#0a3622, #75b798);
|
62 | 62 | --bs-tertiary-bg-rgb: light-dark(248, 249, 250, 43, 48, 53);
|
63 | 63 | --bs-tertiary-bg: light-dark(#f8f9fa, #2b3035);
|
64 |
| - --bs-tertiary-color-rgb: light-dark((33, 37, 41), (222, 226, 230)); |
| 64 | + --bs-tertiary-color-rgb: 33, 37, 41; |
65 | 65 | --bs-tertiary-color: light-dark(rgba(33, 37, 41, 0.5), rgba(222, 226, 230, 0.5));
|
66 | 66 | --bs-warning-bg-subtle: light-dark(#fff3cd, #332701);
|
67 | 67 | --bs-warning-border-subtle: light-dark(#ffe69c, #997404);
|
68 | 68 | --bs-warning-text-emphasis: light-dark(#664d03, #ffda6a);
|
69 | 69 | }
|
70 | 70 |
|
71 | 71 | @media (prefers-color-scheme: dark) {
|
| 72 | + :root { |
| 73 | + --bs-body-bg-rgb: 33, 37, 41; |
| 74 | + --bs-emphasis-color-rgb: 255, 255, 255; |
| 75 | + --bs-link-color-rgb: 110, 168, 254; |
| 76 | + --bs-link-hover-color-rgb: 139, 185, 254; |
| 77 | + --bs-secondary-bg-rgb: 52, 58, 64; |
| 78 | + --bs-secondary-color-rgb: 222, 226, 230; |
| 79 | + --bs-tertiary-color-rgb: 222, 226, 230; |
| 80 | + } |
| 81 | + |
72 | 82 | /* Invert icon's colors on dark mode to improve readability */
|
73 | 83 | img.octicon { filter: invert(1); }
|
74 | 84 | }
|
|
0 commit comments