Commit 08e12fe
committed
🐛 fix(home): set --md-hue to unbreak MkDocs Material palette CSS chain
ROOT CAUSE: palette.*.min.css computes text colors using:
--md-default-fg-color: hsla(var(--md-hue), 15%, 90%, 0.82)
--md-typeset-color: var(--md-default-fg-color)
When font: text: false is set in mkdocs.yml, MkDocs Material skips
setting --md-hue. The CSS chain breaks: hsla(undefined, 15%, 90%, 0.82)
fails silently, making all text invisible on any background color.
FIX: explicitly set --md-hue: 266 in extra.css [data-md-color-scheme]
selector, which loads AFTER palette.*.min.css, completing the chain.
Why 5 previous attempts failed: we kept trying different --md-typeset-color
values without realizing the variable chain ends at --md-hue.1 parent d86d578 commit 08e12fe
2 files changed
Lines changed: 129 additions & 108 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
3 | 61 | | |
4 | | - | |
5 | 62 | | |
6 | 63 | | |
7 | 64 | | |
| |||
0 commit comments