Implement Dark Mode in Your React Apps Using SCSS [A Step By Step Guide]

Written by adebola | Published 2020/03/19
Tech Story Tags: react | javascript | dark-mode | react-top-story | get-dark-mode-on-my-website | get-dark-mode-react-app | dark-mode-scss-code-react | toggle-for-dark-mode-react | web-monetization

TLDR Implementing dark mode is as simple as calling a toggle on your classes. You can use this same logic in your vanilla Javascript apps too. We will be writing our very basic styles in SCSS — it’s just cleaner. With SCSS, we can use variable names in our stylesheet. We also want to change the colour of our button in dark mode to reflect the dark mode theme. We need to use a button that toggles our dark mode classes off and on and on so we can update the text appropriately.via the TL;DR App

no story

Written by adebola | RoR and JavaScript Engineer. Chief of Staff @Moni.Africa
Published by HackerNoon on 2020/03/19