The Arcive of vBulletin Modifications Site. |
|
|
|||||||
[vBMods.rocks] Create an Inverted Color Theme off Existing Theme Using Just Few CSS Details »»
|
|||||||||||||||||||||||||||||
|
[vBMods.rocks] Create an Inverted Color Theme off Existing Theme Using Just Few CSS
Developer Last Online: Sep 2023
If you have a light theme in your forum, you can easily create a dark theme off it, or a dark theme into a light theme, using just few lines of CSS!
![]() How cool is it that you don't have to customize every vB stylevars just to create a dark or light theme and you just let the browser do its magic to detect what the inverted color is for each the element on a page? ![]() Here's a fun quick way to test how color inversion would look like in your own forum. Follow the below steps:
If you add new custom CSS in css_additional of the parent theme/style in the future, do not forget to also add it to the css_additional of the inverted-color child style. Enjoy! ![]() Please see attached screenshot of how it looks like for the vB5 Default Style when using this mod. For more details and support, please head over to https://vbmods.rocks/forum/vbulletin...g-just-few-css Screenshots
Show Your Support
|
|||||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Let's take this mod to another level!
![]() What if a user had enabled Dark mode preference through the Operating System setting or the browser setting and your forum automatically turned into a Dark mode too? Wouldn't that be super awesome? ![]() How to Enable Dark Mode on Your Computer or Mobile Device
Add this CSS in css_additional template of the light theme/style: Code:
/* Auto Detect Dark Mode - START */
@media (prefers-color-scheme: dark) {
/* Copy and paste all CSS code for Dark Theme you've created based from the steps in the first post */
}
/* Auto Detect Dark Mode - END */
Watch demo on YouTube below: In the demo, I used my Android phone and set "System default" in the Theme settings in Chrome browser app and then enabled Dark mode by turning on Battery Saver on the device. |
![]() |
|
|