Skip to content

Commit 8f70cc2

Browse files
committed
Give body links a visible color in both light and dark mode.
1 parent bd41ebf commit 8f70cc2

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/assets/extra.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@
1212
--md-primary-fg-color--dark: #0a1628;
1313
}
1414

15+
/* Material derives the body link color from the primary color, which is a
16+
near-black navy here — links must not blend into the text (light mode)
17+
or vanish on the dark background (slate). */
18+
[data-md-color-scheme="default"] {
19+
--md-typeset-a-color: #1565c0;
20+
}
21+
22+
[data-md-color-scheme="slate"] {
23+
--md-typeset-a-color: #64b5f6;
24+
}
25+
1526
/* Hero section on landing page */
1627
.md-typeset .vdp-hero {
1728
text-align: center;

0 commit comments

Comments
 (0)