|
1 | 1 | [data-md-color-scheme="default"] { |
2 | | - --md-primary-fg-color: #2f8bff; |
3 | | - --md-accent-fg-color: #1f5db0; |
4 | | - --md-accent-fg-color--transparent: #1f5db0; |
| 2 | + --md-primary-fg-color: #1565c0; /* link + header colour: 5.8:1 with white text */ |
| 3 | + --md-typeset-a-color: #1565c0; /* link = header colour: 5.8:1 */ |
| 4 | + --md-accent-fg-color: #1e88e5; /* hover: lighter than the link, 3.7:1 */ |
| 5 | + --md-accent-fg-color--transparent: rgba(30, 136, 229, .1); |
| 6 | + --md-default-fg-color--light: hsla(0, 0%, 0%, .64); /* muted text 6.7:1 */ |
5 | 7 | } |
6 | 8 |
|
7 | 9 | [data-md-color-scheme="slate"] { |
8 | | - --md-hue: 200; |
9 | | - --md-primary-fg-color: #2f8bff; |
10 | | - --md-accent-fg-color: #1f5db0; |
11 | | - --md-accent-fg-color--transparent: #1f5db0; |
| 10 | + --md-hue: 215; |
| 11 | + --md-primary-fg-color: #1565c0; /* header background keeps the brand blue */ |
| 12 | + --md-accent-fg-color: #3578cc; /* hover: darker than the link, 3.6:1 */ |
| 13 | + --md-accent-fg-color--transparent: rgba(53, 120, 204, .1); |
| 14 | + --md-default-fg-color: hsla(var(--md-hue), 15%, 90%, .90); /* body ~10:1 */ |
| 15 | + --md-default-fg-color--light: hsla(var(--md-hue), 15%, 90%, .68); /* muted 6.5:1 */ |
| 16 | + --md-code-hl-keyword-color: hsl(219, 80%, 72%); |
| 17 | +} |
| 18 | + |
| 19 | +/* Material sets the dark link colour per primary colour with higher specificity */ |
| 20 | +[data-md-color-scheme="slate"][data-md-color-primary] { |
| 21 | + --md-typeset-a-color: #4a90e2; /* link: header blue lightened just enough to read on dark, 4.8:1 */ |
12 | 22 | } |
13 | 23 |
|
14 | 24 | /* Latest news cards on the home page (generated by hooks/latest_posts.py) */ |
|
34 | 44 | .latest-posts__more { |
35 | 45 | margin-top: auto; |
36 | 46 | font-size: .7rem; |
37 | | - color: var(--md-accent-fg-color); |
| 47 | + color: var(--md-typeset-a-color); |
38 | 48 | } |
39 | 49 |
|
40 | | -[data-md-color-scheme="slate"] .latest-posts__more { |
41 | | - color: var(--md-primary-fg-color); |
42 | | -} |
| 50 | + |
43 | 51 |
|
44 | 52 | /* Material's pin badge (md-pin) is a flex item on the Announcements page - align it inline here */ |
45 | 53 | .latest-posts__meta .md-pin { |
|
0 commit comments