|
7 | 7 | --theme-color: #0b85d7; |
8 | 8 |
|
9 | 9 | /* Color: Monochromatic */ |
| 10 | + /* NOTE: Static color values computed from --color-bg (#fff) and --color-text (#333) |
| 11 | + These replace color-mix() for browser compatibility. If base colors change, |
| 12 | + recalculate using: mix(#fff, #333, percentage) in sRGB color space. |
| 13 | + Formula: newColor = color1 * (1 - p) + color2 * p */ |
10 | 14 | --color-mono-min: var(--color-bg); |
11 | | - --color-mono-1 : #f5f5f5; |
12 | | - --color-mono-2 : #ebebeb; |
13 | | - --color-mono-3 : #d6d6d6; |
14 | | - --color-mono-4 : #bebebe; |
15 | | - --color-mono-5 : #999999; |
16 | | - --color-mono-6 : #747474; |
17 | | - --color-mono-7 : #5c5c5c; |
18 | | - --color-mono-8 : #474747; |
19 | | - --color-mono-9 : #3d3d3d; |
| 15 | + --color-mono-1 : #f5f5f5; /* 5% mix of --color-text with --color-bg */ |
| 16 | + --color-mono-2 : #ebebeb; /* 10% mix of --color-text with --color-bg */ |
| 17 | + --color-mono-3 : #d6d6d6; /* 20% mix of --color-text with --color-bg */ |
| 18 | + --color-mono-4 : #bebebe; /* 32% mix of --color-text with --color-bg */ |
| 19 | + --color-mono-5 : #999999; /* 50/50 mix of --color-text and --color-bg */ |
| 20 | + --color-mono-6 : #747474; /* 68% mix of --color-text with --color-bg */ |
| 21 | + --color-mono-7 : #5c5c5c; /* 80% mix of --color-text with --color-bg */ |
| 22 | + --color-mono-8 : #474747; /* 90% mix of --color-text with --color-bg */ |
| 23 | + --color-mono-9 : #3d3d3d; /* 95% mix of --color-text with --color-bg */ |
20 | 24 | --color-mono-max: var(--color-text); |
21 | 25 |
|
22 | 26 | /* Color: Theme Shades (darker) & Tints (lighter)*/ |
23 | | - /* NOTE: Values derived from --theme-color */ |
24 | | - --theme-color-1: #e7f3fb; |
25 | | - --theme-color-2: #c2e1f5; |
26 | | - --theme-color-3: #91c8ed; |
27 | | - --theme-color-4: #54aae3; |
28 | | - --theme-color-5: #176ca6; |
29 | | - --theme-color-6: #21587d; |
30 | | - --theme-color-7: #29485c; |
31 | | - --theme-color-8: #2f3b43; |
| 27 | + /* NOTE: Static color values computed from --theme-color (#0b85d7) |
| 28 | + These replace color-mix() for browser compatibility. If --theme-color changes, |
| 29 | + recalculate using: mix(#0b85d7, target, percentage) in sRGB color space. |
| 30 | + Tints (1-4) mix with --color-bg (#fff), Shades (5-8) mix with --color-text (#333) */ |
| 31 | + --theme-color-1: #e7f3fb; /* 10% --theme-color, 90% white (lightest tint) */ |
| 32 | + --theme-color-2: #c2e1f5; /* 25% --theme-color, 75% white */ |
| 33 | + --theme-color-3: #91c8ed; /* 45% --theme-color, 55% white */ |
| 34 | + --theme-color-4: #54aae3; /* 70% --theme-color, 30% white */ |
| 35 | + --theme-color-5: #176ca6; /* 70% --theme-color, 30% dark gray */ |
| 36 | + --theme-color-6: #21587d; /* 45% --theme-color, 55% dark gray */ |
| 37 | + --theme-color-7: #29485c; /* 25% --theme-color, 75% dark gray */ |
| 38 | + --theme-color-8: #2f3b43; /* 10% --theme-color, 90% dark gray (darkest shade) */ |
32 | 39 |
|
33 | 40 | /* Typography */ |
34 | 41 | --font-family : system-ui, sans-serif; |
|
133 | 140 | --link-underline-thickness-hover: var(--link-underline-thickness); |
134 | 141 | --mark-bg : #fef08a; |
135 | 142 | --mark-color : ; |
136 | | - --strong-color : #212121; |
| 143 | + --strong-color : #212121; /* 35% darker than --color-text (#333) */ |
137 | 144 | --strong-font-weight : 600; |
138 | 145 | --table-row-alt-bg : var(--color-mono-1); |
139 | 146 |
|
|
171 | 178 | --sidebar-toggle-alignment : center; /* start center end */ |
172 | 179 | --sidebar-toggle-bg : var(--color-mono-2); |
173 | 180 | --sidebar-toggle-bg-hover : var(--button-bg); |
| 181 | + /* NOTE: Hardcoded RGBA from --theme-color (#0b85d7) at 10% opacity for compatibility. |
| 182 | + Modern rgba(from var(--theme-color) r g b / 0.1) syntax not widely supported yet. |
| 183 | + If --theme-color changes, update this to: rgba(R, G, B, 0.1) */ |
174 | 184 | --sidebar-toggle-bg-hover-alpha : rgba(11, 133, 215, 0.1); |
175 | 185 | --sidebar-toggle-color : var(--color-mono-4); |
176 | 186 | --sidebar-toggle-color-hover : var(--button-color); |
|
0 commit comments