DEV Community

Discussion on: Add dark mode to your website with just a few lines of code

Collapse
 
albertomontalesi profile image
AlbertoM

I think having two different files can save you having unnecessary load styles for a theme you don't use. I guess at the end of the day, both will work just fine.

Collapse
 
coly010 profile image
Colum Ferry

The browser should also cache both CSS so the user may only notice a dip in performance on the first time they switch, whilst their cache lives.