Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Adds a theme for Dark Mode. #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

philsherry
Copy link

Seeing as how this is accessibility-related, I thought it made some sense to offer a dark mode option.

Seeing as how this is accessibility-related, I thought it made some sense to offer a dark mode option.
lib/report.html Outdated
<style>
@media (prefers-color-scheme: light),
(prefers-color-scheme: no-preference) {
:root {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the light set of colors be defined as the default, then overridden if the user uses dark-mode?
That way we can support browsers that allow CSS variables, but that don't yet support preferes-color-scheme

@joeyciechanowicz joeyciechanowicz added the status: work required The PR required additional work before it can be merged label Aug 19, 2019
(Only took me like 8 months to get around to it!)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: work required The PR required additional work before it can be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants