Skip to content

Request for configuration option for color mode on printing #1144

Description

@lachlanjc

Is your feature request related to a problem? Please describe.
When printing out a webpage as a PDF or on paper, there’s no way to have Theme UI automatically apply a certain color mode.

Describe the solution you'd like
Just like initialColorModeName, I’d like there to be a new configuration option printColorModeName, which applies that color mode inside @media print.

Describe alternatives you've considered
Haven’t considered alternatives, this seems like the easiest approach.

Additional context
It’s difficult right now to add great printing styles to Theme UI sites, especially when they’re in dark mode. You end up with needing global CSS with lots of !important to make everything the right colors.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions