DEV Community

Discussion on: Add dark mode support on your website with SASS and prefers-color-scheme media query

andreasvirkus profile image

Just a reminder that handling themes in SCSS or Sass will result in twice the code (since it's compiled to hard-coded CSS values) vs using CSS Custom Properties to theme a website 😉 Maybe a trivial difference for smaller projects, but could have a performance impact with lots of CSS rules.

chicio profile image
Fabrizio Duroni Author

Yes I know, but in my case I still have to support users with Internet Explorer 10/11 that don't have support for CSS custom properties (and I didn't want to use a polyfill). But anyway I agree with you, it's a matter to evaluate each specific case/project need 🙂