馃寭 Dark Mode - #210
Conversation
- restores visible focus in windows high contrast mode - increases visibility in boxes with bg colour
|
Note: This adds client-side scripting but no JS build process, because scope and such. Optimising JS delivery is on my radar, I will add a ticket for this asap. |
|
@ovlb Bumped in the Slack channels to elicit more feedback. |
|
@ovlb I think that there's one area where the text is still white on |
tatianamac
left a comment
There was a problem hiding this comment.
One area in the table of contents where the word renders as white when it should be black for :focus. See comment with screenshot.
# Conflicts: # 11ty/_includes/layouts/base.njk # assets/css/components/_definitions.scss
|
@tatianamac Good catch. I鈥檝e updated the styles. |
|
@ovlb Some of these highlighted terms on the documentation/front-matter page have troublesome contrast in dark mode. Everything else looks amazing to me! |
|
@derekmurr Thanks for having a look! I鈥檝e updated the styles. |
|
@tatianamac Is there anything left to do here? |
It is, as without the colour change the contrast ratio is not sufficient. |
Gotcha, I guess I'm not 100% following why we can't take an inverted approach from the light mode (so, the highlight colour would need to be a darker shade.) But regardless I trust you and am fine with it as is. |
That鈥檚 a version we can try. I think I took the inverted route because I didn鈥檛 need to broaden the colour palette and I liked the effect. |
|
@tatianamac I鈥檝e updated the focus styles. |
|
@ovlb Perfect! I think this is ready to ship! 馃殌 |
|
@tatianamac Let鈥檚 go! 馃殺 |
|
@tatianamac Do you wanna push the button? |



This implements dark mode. 猬涳笍
It also fixes the missing contrast outline on Windows High Contrast Mode that @dengeist reported.
And it makes the focus state inside of the coloured boxes a little more obvious.
Overall I didn鈥檛 change too much off the design because it was working quite well out of the box