cervidaze ☘

cervidaze.me

40,370 views
87 followers
2,584 updates
0 tips
computer how do i make a dark mode toggle.... simplest route, no cookies....
1 like
loomic's avatar loomic 8 months ago

(i can't tell if this is rhetorical or a genuine invitation of advice, but) you can use a bit of js to flip on and off a class on the tag representing dark/light, and then just have different css rules depending on what class the html tag has. then for persistence, you can use localStorage

1 like
cervidaze's avatar cervidaze 8 months ago

!! genuine invitation of advice, tysm loom! i found a super simple js template that does what you describe, but i'm getting too picky with how i want it to look :') i will persevere

Website Stats

Last updated 23 hours ago
CreatedOct 7, 2024
Site Traffic Stats

Tags

blog personal art writing media