|
2 | 2 | * Any CSS included here will be global. The classic template |
3 | 3 | * bundles Infima by default. Infima is a CSS framework designed to |
4 | 4 | * work well for content-centric websites. |
| 5 | + * |
| 6 | + * OpenEmber 配色:与 logo 火焰暖色(红/橙/琥珀)保持一致 |
5 | 7 | */ |
6 | 8 |
|
7 | | -/* You can override the default Infima variables here. */ |
| 9 | +/* ========== 白天模式:暖橙红主色(对应 logo 火焰中层~外层) ========== */ |
8 | 10 | :root { |
9 | | - --ifm-color-primary: #2e8555; |
10 | | - --ifm-color-primary-dark: #29784c; |
11 | | - --ifm-color-primary-darker: #277148; |
12 | | - --ifm-color-primary-darkest: #205d3b; |
13 | | - --ifm-color-primary-light: #33925d; |
14 | | - --ifm-color-primary-lighter: #359962; |
15 | | - --ifm-color-primary-lightest: #3cad6e; |
| 11 | + --ifm-color-primary: #c2410c; |
| 12 | + --ifm-color-primary-dark: #a33609; |
| 13 | + --ifm-color-primary-darker: #8b2e07; |
| 14 | + --ifm-color-primary-darkest: #6d2406; |
| 15 | + --ifm-color-primary-light: #d35400; |
| 16 | + --ifm-color-primary-lighter: #e67e22; |
| 17 | + --ifm-color-primary-lightest: #eb984e; |
16 | 18 | --ifm-code-font-size: 95%; |
17 | | - --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); |
| 19 | + --docusaurus-highlighted-code-line-bg: rgba(194, 65, 12, 0.12); |
| 20 | + /* 链接与强调色与主色统一 */ |
| 21 | + --ifm-link-color: #c2410c; |
| 22 | + --ifm-link-hover-color: #a33609; |
18 | 23 | } |
19 | 24 |
|
20 | | -/* For readability concerns, you should choose a lighter palette in dark mode. */ |
| 25 | +/* ========== 黑夜模式:更亮的琥珀/橙,在深色背景上更易读 ========== */ |
21 | 26 | [data-theme='dark'] { |
22 | | - --ifm-color-primary: #25c2a0; |
23 | | - --ifm-color-primary-dark: #21af90; |
24 | | - --ifm-color-primary-darker: #1fa588; |
25 | | - --ifm-color-primary-darkest: #1a8870; |
26 | | - --ifm-color-primary-light: #29d5b0; |
27 | | - --ifm-color-primary-lighter: #32d8b4; |
28 | | - --ifm-color-primary-lightest: #4fddbf; |
29 | | - --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); |
| 27 | + --ifm-color-primary: #e67e22; |
| 28 | + --ifm-color-primary-dark: #d35400; |
| 29 | + --ifm-color-primary-darker: #c2410c; |
| 30 | + --ifm-color-primary-darkest: #a33609; |
| 31 | + --ifm-color-primary-light: #eb984e; |
| 32 | + --ifm-color-primary-lighter: #f0b429; |
| 33 | + --ifm-color-primary-lightest: #f5c942; |
| 34 | + --docusaurus-highlighted-code-line-bg: rgba(230, 126, 34, 0.2); |
| 35 | + --ifm-link-color: #eb984e; |
| 36 | + --ifm-link-hover-color: #f0b429; |
30 | 37 | } |
0 commit comments