Jump to content

CSS to prevent dark mode from changing the colours on a site

Recommended Posts

Hi All,
I'm a bit late to the game but I recently learned that some browsers change the background color of sites when set to dark mode (see 1st pic) This makes some text unreadable if it is layered on top of an image (see 2nd pic). 

Is there CSS that will ensure that a site will display as designed (see 3rd pic) regardless of the browser settings?  I found some suggestions here but none of them seemed to work.

Any suggestions or pointers are greatly appreciated 
Thank you!

(Password is demo) 



Screenshot 2024-04-08 at 11.24.09 am.png

Link to comment
  • Replies 3
  • Views 708
  • Created
  • Last Reply

Top Posters In This Topic

On 4/14/2024 at 4:15 PM, Stacey_anne said:


at the moment I have the image sitting above the text on mobile because of the aforementioned problem 🙂

The page doesn't work. Can you check it again?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.