Skip to content

How to implement light/dark theme toggle? #5491

Answered by IsaacHub
IsaacHub asked this question in Q&A
Discussion options

You must be logged in to vote

Here is the enterprise-grade professional way of doing it using css variables
https://stackblitz.com/edit/dark-mode-with-angular-and-css-variables-4bjhu3

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jdang67
Comment options

@KaranTrivedi
Comment options

Answer selected by vthinkxie
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@zulfiqarlaili
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants
Converted from issue

This discussion was converted from issue #5491 on October 22, 2020 11:27.