The void perchance has voices in it

lattematche.neocities.org

26,805 views
129 followers
885 updates
0 tips
Guyss a little question! I'm thinking of making a theme toggle to change the colors and the computer background in css! Is there a way to make the change persist when the user leaves and comes back? :O
4 likes
drewdude762's avatar drewdude762 3 weeks ago

Look up browser cookies. Cookies were used for this in the 1990 and 2000s. Basically a cookie is a string of text that your website will leave inside a persons web browser. When a person comes back with the same web browser your website can be programmed to read back the cookie from last time and do something with that information, like set a CSS theme.

1 like
inkwrought's avatar inkwrought 3 weeks ago

The way I'm doing it is by saving the theme to localStorage!! It was a pain converting everything but so worth it. https://dev.to/marcosrjjunior/implementing-a-theme-switcher-using-javascript-347d

3 likes
lattematche's avatar lattematche 3 weeks ago

@inkwrought Thank you smmm you're the goat!! <3

2 likes
lattematche's avatar lattematche 3 weeks ago

@drewdude762 Thank you! it's a brilliant idea! :D

1 like
win1999's avatar win1999 3 weeks ago

localStorage all the way :)

2 likes
lattematche's avatar lattematche 3 weeks ago

You peeps are the best <3 exactly what I was looking for!!

2 likes
s0viesweb's avatar s0viesweb 3 weeks ago

in localStorage we trust !!!

1 like
lattematche's avatar lattematche 3 weeks ago

@s0viesweb Ill be joining the LocalStorage cult very soon πŸ‘€πŸ‘€

1 like

Website Stats

Last updated 5 days ago
CreatedApr 22, 2026

Tags

art animation personal technology blog