Feature request: Combined use of light and dark themes #4079
sjdalessandro
started this conversation in
Ideas / feature requests
Replies: 1 comment 1 reply
-
Thanks for the idea. A cleaner way would be using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to combine the use of light and dark themes so that some components stand out.
The idea is that with code like this:
The alert would use the dark theme if the light theme is selected, or vice versa.
For now, I've achieved it like this:
But it's not very neat or general, in the sense that it doesn't allow you to define the contrast theme for other themes.
I think if we could add a flag and the name of the contrast theme to an enabled theme, its styling could be applied in pluginOptionsHandler.js.
This way, it would be optional; it wouldn't change anything for those who don't want to use it.
Do you know of an easier way to accomplish this without JavaScript?. I would like to know your opinion on this feature.
Beta Was this translation helpful? Give feedback.
All reactions