Skip to content

Print page is inheriting some theme colors #1934

Open

Description

@ehuss

On Chrome and Safari, the print page is inheriting some theme colors. This can make the print page unreadable, or somewhat ugly. Firefox does not seem to be affected.

Safari Light:
image

Safari Coal:
image

Activity

  1. added
    A-Print
    A-Theme
    E-Help-wanted
    on Nov 21, 2022
  2. simonsan commented on Apr 5, 2023

    @simonsan

    Agreed, also that it would print a dark background when you have a dark theme applied (e.g. navy) is not really environmentally sustainable. I would even say that it should always print with the light theme applied.

    @ehuss Could you give me a hint on where to implement that on behalf of the Rust Design patterns repo?

  3. AlessandroMattiazzi commented on Jul 3, 2023

    @AlessandroMattiazzi

    it seems that some tags are colored by the colors of the themes, a workaround can be to insert a custom css and add a similar code:

    @media print {
      p {
             color: black;}
        }
  4. hollow-owl commented on Jun 22, 2026

    @hollow-owl
    Contributor

    Which approach would be preferable strip all the theme colors from the print output or make print versions of each theme to make it readable?

  5. giri256 commented on Jul 27, 2026

    @giri256

    @rustbot claim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-PrintA-ThemeE-Help-wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions