How do I disable dark mode in dawn theme?

How do I disable dark mode in dawn theme?

mkjain
Shopify Partner
3 0 0

In dawn theme, when I use a mobile device with dark mode ON, the white background turns to black and the Buy buttons and login info page is all black which is awful to view. How do I avoid dark mode conversion for dawn theme?

Replies 4 (4)

B2Bridge
Excursionist
320 65 81

Hi @mkjain 
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

mkjain
Shopify Partner
3 0 0

ColinSchuch
Tourist
4 1 2

Hi @mkjain,

 

Dawn inherits system dark mode settings, but you can force light mode by adding this to base.css or theme.css:

 

:root { color-scheme: light !important; }
html, body { background-color: #ffffff !important; color: #000000 !important; }


 Colin Schuch | E-Commerce Optimization & Conversion Boost
I help online stores maximize their conversion rates and increase revenue.
Visit my website to get your free shop analysis!

 Colin Schuch | E-Commerce Optimierung & Conversion-Boost
Ich helfe Online-Shops, ihre Conversion-Rate zu maximieren und mehr Umsatz zu erzielen.
Besuche meine Website für deine kostenlose Shop-Analyse!
mkjain
Shopify Partner
3 0 0

I tried this by adding

line 10

mkjain_2-1739323406866.png

 

and

mkjain_1-1739323225613.png

But the colors still change in dark mode. What am I missing?