Skip to content

HTML: add prefers-color-scheme: dark to the default css #7125

@l0r3m1psum

Description

@l0r3m1psum

Hello I would like to add prefers-color-scheme: dark media query to the default CSS generated when using this command pandoc -s -o f.html f.md, something like this:

@media (prefers-color-scheme: dark) {
  html {
    background-color: #1E1F21;
    color: #EEEFF1;
  }
  a {
    color: #EEEFF1;
  }
  a:visited {
    color: #EEEFF1;
  }
  blockquote p: {
    color: #606060;
  }
  hr {
    background-color: #EEEFF1;
  }
}

My rationale behind this enhancement is to make it easier to read the rendered HTML at night by default.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions