Commit 19dfd99
committed
fix(docs): make the secondary hero button visible in dark mode
An outlined Material button takes its text and border from the primary
colour, which is the header's dark brown. On the dark page that left "Get
started" at 1.71:1 against its own background, drawn but not visible, and its
hover state at 2.13:1, since Material writes white on the light green accent.
Both now use a foreground chosen for that background: 12.44 and 7.59.
Fixing it turned up why the light scheme never looked brown. The brand
primary and accent were declared on :root, where Material's own scheme block
outranks them, so light mode kept the stock indigo for links and buttons
underneath a brown and green header. Declared on the scheme itself they take,
and both now read 7.46 against the page.
Dark-mode links keep Material's blue. It is legible at 5.27 and is what a
link is expected to look like, so it is left alone rather than made warm for
consistency's sake.1 parent a6a0dda commit 19dfd99
1 file changed
Lines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 5 | + | |
9 | 6 | | |
10 | 7 | | |
11 | 8 | | |
| |||
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
96 | 116 | | |
97 | 117 | | |
98 | 118 | | |
| |||
0 commit comments