Notice: The devs are no longer actively involved in the forum, so any bug reports regarding the Stylish extension or this website should be sent to them directly at
Changing your Avatar.
The only way to currently change a forum avatar is through The email address used for your account must be one of the email addresses that is registered to your Gravatar account.

Make Changes to White Background and Black Text Only!

Hi Everyone,

I'm looking for a style that only turns all white background black and all black and dark text into white, everything else will be untouched and stays original, especially images. I found the only style that doesn't breaks anything on all websites but make changes to colors of all elements which I don't like. It also turns all dark theme websites white which is a problem. It is called "Black Web" from author Sly Sid.

I want to modify this style to exclude images and bars and charts from any changes. I also want to exclude it from modifying the newtab on Chrome. It is tough. Any help on how to do that will be greatly appreciated. If you can recommend a dark theme style that doesn't break anything from all websites, I appreciate it.

Below is the code which I added some changes that affect mouse over links which turns colors and when click on and a white drop-down menu on certain websites:

html, iframe, frame {background-color: black; -webkit-filter: invert(1) hue-rotate(180deg) !important;}

img, video, embed[flashvars],
{-webkit-filter: invert(1) hue-rotate(180deg) !important;}

div[aria-label="YouTube Video Player in Fullscreen"] video
{-webkit-filter: none !important;}

a:hover, a:hover *, a:visited:hover {color: green !important; text-shadow: 1px 1px 1px white !important;}

a:visited {color: brown;}

a:active, a:active *, a:visited:active {color: purple !important;}

body select * {background-color: black; color: silver;}


  • q1kq1k
    edited March 2017 Chrome
    You can look for global dark themes
  • This is an extremely hard thing to do, to turn arbitrary web page dark without breaking something. I've found the best (still imperfect) solution is "Dark bg white text" extension (Firefox only) + Stylish for additional tweaks. For chrome, I think best you can do is to find a universal or global dark style, and it's going to be hit and miss.
  • Thanks for the response guys. I've tried most of the global dark styles but all of them break certain things on certain websites except "Black Web" style. I tested them all on "" and "" websites and they break the same things on both websites. Black Web style is the only one that doesn't break anything. However, it inverted dark websites into bright white which is a problem here. I also wish I can exclude images from its filtering but nothing works....:(
  • edited March 2017 Chrome
  • Thanks hellotheir and strel,
    that style you provided does better but it breaks some elements on a few websites I tested on. On, it made the menus category disappear. On, it blocked 2 pictures in the upper right hand corner. On, it inverted the background picture in the middle of the page completely. On, it made links on right hand side and in the middle of the page disappeared.

    I can only fix one problem on by removing the "header,footer" code from line 4 in code 1 section. I haven't figure out on how to fix the other broken elements on the other websites.

    I wasted 3 weeks learning to code css styles and finding the best styles that doesn't break anything is tough. I only find "Black Web" style at "" to be almost the best but it inverted some things it shouldn't and changes all colors which is bad. The "Global Black Theme for Chrome" style broke a few elements on those websites I've tested.

    your recommendation doesn't do great job without breaking elements on quite a few websites I've tested. thanks though.

    Can someone find ways to fix all those problems from affecting all websites I've mentioned? Please, we need your help.

    Any help is greatly appreciated!

    Best Regards,

  • edited March 2017 Chrome
  • edited March 2017 Chrome
  • edited March 2017 Chrome
  • Big thanks to Hellotheir,

    Wow, you fixed the problem withing 30 minutes after my post. That is very impressive. Even big companies don't fix problem that All the problems I've mentioned are fixed and works awesome. You deserve big credit and I would be happy to pay for your work if you charge your style for $2.

    I like that your style turned the scrollbar dark too. All other global styles broke the "div" elements on "" and "" as I used them for my testing. Yours work perfectly without breaking anything now, well I haven't fully test it on many more websites yet.

    For "" site, I already know how to add a website exclusion but I want the css style to run on all websites without breaking anything. It did broke the links I've mentioned. Can you prevent it from turning already dark websites into bright white color? I meant was just leave those already dark websites alone instead of making a whole site exclusion. Make code that are smart enough to detect dark elements and leave them untouched. Is it even possible in this case?

    I installed "chrome font fix": "" to run with your style and it made a huge improvement in text quality in Chrome, wow.

    I added a few lines of code to complement your style and make the best dark web browsing experience out there. I make all images to reduced their brightness a little bit to reduce eyes strain on those bright white ones. I also make all links turn green when hover and active. Much better dark web browsing experience at night in the dark.
    Below is the added code:

    img, svg, canvas, object {opacity: .9 !important;}
    img:hover, svg:hover, canvas:hover, object:hover {opacity: 1 !important;}
    a:hover, a:hover *, a:visited:hover, input[type="submit"]:hover, input[type="reset"]:hover {color: green !important; text-shadow: 1px 1px 1px white !important;}
    a:visited {color: brown;}
    a:active, a:active *, a:visited:active, input[type="submit"]:active, input[type="reset"]:active {color: purple !important;}
    select * {background-color: black; color: silver;}

    The internet should make black background as a new standard on all websites as this will helps reduce eyes strain at night when browsing the web...:)

    Thank you all for your great contribution!

    Best Regards,


  • edited March 2017 Chrome
  • Well I guess I fully understand what you need. hope you try below linked theme.


    Your test style changes the text decoration and style on certain websites and it also turn all active links blue which I don't like. Leave text style original. Make a style that only changes all white background black and all black or dark text white on all websites, everything else will be untouched and stays original. Also make it detect dark websites and prevent it from making any changes to already dark background. Try to exclude all images from filtering if you can.

    Thank You,

  • edited March 2017 Firefox
  • edited March 2017 Chrome
  • edited March 2017 Chrome
  • strel said:

    Your recommendation broke a few elements in Gmail as you can see in the picture I've attached. Those elements I circled in green were blocked out by the style. I will notify the author so he can fix and improve it.

    1920 x 1080 - 188K
  • Hi hellotheir,

    Your updated "Global Black for chrome" style is great but it broke a few elements on Go to the site and click on Sign In, the popup dialog was blacked out by it. Check my attached screenshot for reference. Please find a fix and prevent it from affecting on all other websites that has similar login process. Your style is the only one that doesn't breaks anything on Gmail as I had pointed out by Strel's recommended style above this discussion.

    I still like your "Global Black for chrome" style since it is almost close to being the best global dark style out there. I see that you added the font fix for Chrome in your style, nice. It just needs some more fine tuning, bug fixing, and it will be awesome. I am recommending your style to all my friends and family...:)

    What do you think about user scripts manager extension? It is used for injecting Javascript and CSS code into the browsers to add more capabilities. Can you make it work by targeting only white background and black, dark text and inverse them? Leave all other elements untouched?

    Here is the link to the user scripts site: I am learning and testing it now.

    Please let me know as I am getting excited....:)

    Thank you for your hard work.

    You're the best!

    1920 x 1080 - 340K
  • edited March 2017 Firefox

    [...] Your recommendation broke a few elements [...]

    Yeah, probably, my point is it represents an evolution over the same concept of 'Black Web', with some extra customizations, exclusions, and emphasis over some elements... maybe a good starting point.

    Also, about the broken element on the left, is it a frame?, because the description clearly states it is excluding frames, and the style is meant to be used with a userscript linked in the style page...

    This one is interesting, some elements aren't covered and I don't like the colors and the gradients, but it respects web structure quite well:
    Finally, with another concept, I found this quite elegant

  • edited March 2017 Chrome
  • edited March 2017 Chrome
  • edited March 2017 Chrome
  • edited March 2017 Chrome
  • edited March 2017 Chrome

    I like the white font and black shadow over the other two test style which changes the font decoration and type and it looks ugly on many websites such as Can you make a fix that applies to only I haven't find any other problems on other websites beside the Stocktwits website using your updated "Global Black for chrome" style. It is getting to be almost great. I will keep testing it and report any problems I find. Keep improving it and it will be the best style that doesn't break anything on all websites. Can you make your style to fix to look like "Black Web" style? See picture. Black Web broke elements on Gmail while yours is not but it broke elements on

    Black background and dark theme websites help improve battery life on mobile devices and reduce eyes strain at night since back pixel is off which doesn't consume energy. That is why I seriously want a style that works great on all websites. I want to create my own style but it is tough to do. You are good at this stuff...:)

    I installed "Morpheon Dark" extension for Chrome and it turn the newtab page black. Your style and many others invert it back to white which is a problem. Can you make your style to turn Chrome user interface dark like Ms Edge dark mode? If not, then exclude the newtab page from any changes or modification by your style so it stays black with Morpheon Dark. See picture for reference on Ms Edge dark mode.

    Did you take a look into userscripts? I installed Violentmonkey script manager and smoothscroll script which makes Chrome scrolling much smoother and faster. You need to tinker with the settings to find the perfect spot for you. They have some nice scripts which add more functionalities to Chrome, pretty cool stuff. Chrome scrolling and zooming sucks on laptops/ultrabooks with touch gesture touchpads. I don't know why Google haven't fix this big issue on Chrome for years. Edge and IE11 provide perfect scrolling and zooming on my Samsung Notebook 9 15" laptop. It feels and function like on smartphone.

    Looking for your improvements on your style.

    Best Regards,


    1920 x 1080 - 184K
  • Black Web style on Works perfectly without breaking any elements.
    1897 x 961 - 308K
  • edited March 2017 Chrome
  • edited March 2017 Chrome
    Nice, you fixed the broken elements on It would be nice if you can keep the outline of the Sign In box. I see you left the New Tab untouched, great. Are there any way you can turn the URL address bar dark like on Ms Edge dark mode? The "Morpheon Dark" extension doesn't make it dark and I'm staring at a bright white bar across my screen which gives me eyes strain and many other people too who use it.

    Can you make your own style to turn the whole Chrome UI dark?

    Why don't you make a donation section on your style page for Paypal? I like to make a donation for your hard work.

    Thank You,

  • edited March 2017 Chrome
  • High contrast settings on Windows 10 x64 looks ugly. I don't like it at all. I wish Ms make Windows 10 has all black background for everything including File Explorer without turning on High Contrast mode. Morpheon Dark extension is the best dark theme for Chrome UI but it left the URL bar bright white which defeats the purpose of having dark theme for the browser. Do you know any other extension that can turn Chrome URL dark too?

    I found another problem on is that your style messes up the video when I had it on fullscreen. It just inverted the whole video.

    I will make a donation when you had your page up and running.

    Thank You,

  • hellotheir,

    Can you turn the span menu on the New Tab page on Chrome black? Leave the background untouched as I had "Morpheon Dark" extension which turned it black already. Please see picture for reference. I almost get perfect dark browser but Morpheon Dark didn't turn the URL bar dark... :(

    Thank You
    1920 x 1080 - 182K
Sign In or Register to comment.