paint-brush
Implement Dark Mode in Your React Apps Using SCSS [A Step By Step Guide]by@adebola
2,314 reads
2,314 reads

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

by Adebola Adeniran1mMarch 19th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

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.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Implement Dark Mode in Your React Apps Using SCSS [A Step By Step Guide]
Adebola Adeniran HackerNoon profile picture
Adebola Adeniran

Adebola Adeniran

@adebola

RoR and JavaScript Engineer. Chief of Staff @Moni.Africa

About @adebola
LEARN MORE ABOUT @ADEBOLA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Adebola Adeniran HackerNoon profile picture
Adebola Adeniran@adebola
RoR and JavaScript Engineer. Chief of Staff @Moni.Africa

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Startupnchill