Default dark theme causes issues with custom theme
See original GitHub issueHere’s my use case. I have two kinds of popovers :
- custom popovers / floating menus, so I want to have control over their look&feel,
- regular tooltips, then I’m fine with default dark theme.
Problem is: some parts of the default dark theme have on effect on my custom tippys.
For example, .tippy-backdrop is not prefixed by .dark-theme so its black background is visible on my custom tippys.
The following CodePen is inspired by the doc, and you can see tomato olor being replace by a dark color : https://codepen.io/anon/pen/MxYerG
Suggestion: make all default CSS dependent of the .dark-theme CSS class.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Default theme refuses to load properly, and looks like the Dark ...
When attempting to change my theme in the customize window, mousing over the Default theme does show the proper colors for it, but...
Read more >Fixing the dark mode flash issue on server rendered websites
Bringing a proper solution to dark mode flashing without an ugly hack.
Read more >Dark theme - Android Developers
Dark theme applies to both the Android system UI and apps running on the device. ... mode flags and gives the app a...
Read more >How to edit default dark theme for Visual Studio Code?
In VS code 'User Settings', you can edit visible colours using the following tags (this is a sample and there are much more...
Read more >10 Common WordPress Theme Issues & How To Fix Them
The most likely cause of this error is that you made manual changes to your template files such as the style.css file (usually)....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’m not really sure what you’re asking – you need to follow the CSS in the themes section so that the
backdropgets properly styled and doesn’t affect the different color.Edit: ok I understand actually, and I think I agree. I never bothered putting the dark-theme specific CSS underneath the
dark-themename. Not sure if that would be a breaking change since by default the tooltip gets that class name. Although to be fair the only “dark-theme” specific thing there is the background-color. Everything else is the “global CSS” of a tippy that you can override without much issue.Ok, maybe I just should have used Popper for the custom one, I came with Tippy first and didn’t think about this solution before now. Thank you for the quick answers 👍