Skip to content

Add option to force color scheme background#65

Merged
NuPlay merged 1 commit intoNuPlay:mainfrom
jcovin293:main
Jul 20, 2025
Merged

Add option to force color scheme background#65
NuPlay merged 1 commit intoNuPlay:mainfrom
jcovin293:main

Conversation

@jcovin293
Copy link
Contributor

This PR fixes #53.

In the case that a user's HTML includes inline CSS that is overriding the background color set by the colorScheme modifier, users can use the new forceColorSchemeBackground option. This option forces the background to be that of the colorScheme instead of that of the inline CSS.

For example, with the following type of HTML tag:

<p style="background-color: white;">Hello World!</p>

the text would originally appear illegible and would not fit in with the dark mode (if enabled). If it was in light mode, everything would be OK.

@NuPlay
Copy link
Owner

NuPlay commented Jul 17, 2025

Thanks for improving the library
I’ll check it out this weekend and merge it.

@NuPlay NuPlay merged commit ec3469e into NuPlay:main Jul 20, 2025
@NuPlay
Copy link
Owner

NuPlay commented Jul 20, 2025

Thanks for your contribution! 🙏
This change has been included in v2.7.0

Appreciate your help! 🎉

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ability to remove background color

2 participants