Neocities.org

cervidaze ☘

cervidaze.me

8,412 views
25 followers
1,582 updates
0 tips
computer how do i make a dark mode toggle.... simplest route, no cookies....
1 like
loomic 1 month 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 1 month 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 16 hours ago
CreatedOct 7, 2024
Site Traffic Stats

Tags

blog media personal art writing