cervidaze ☘

cervidaze.me

26,753 views
65 followers
2,100 updates
0 tips
computer how do i make a dark mode toggle.... simplest route, no cookies....
1 like
loomic's avatar loomic 6 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 6 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 1 day ago
CreatedOct 7, 2024
Site Traffic Stats

Tags

blog personal art writing media