laurenonline

laurenonline.yorniq.xyz

17,103 views
67 followers
1,255 updates
0 tips
does anyone have any resources about how how to make a background or theme toggle button? I'm not sure if i need to fully switch css sheets or not and java scares me a little bit rn lol
2 likes
garfriend's avatar garfriend 6 days ago

I wonder if you could use the "filter" css property? You can huge shift colors, but if it's a completely different background image then I thiiiink it might be java? There's gotta be a code snippet out there

1 like
zooquarium's avatar zooquarium 6 days ago

I actual use a lot of different backgrounds and themes and I use a .json file to hold them and a .js file to apply them. In my css I have variables like "--txtcolor" or "--color1". I don't have a resource but you can look at this code under export function applyBiome. It's very easy to declare variables! Your css would have to be updated. https://zooquarium.yorniq.xyz/scripts/js/biomes.js

2 likes
zooquarium's avatar zooquarium 6 days ago

Js is fun! @diremptiness just did a lot of work with themes and js and I'd definitely say they're more strict and clean than I am. That site is insane! Maybe they have a solid resource to point you to?

1 like
garfriend's avatar garfriend 5 days ago

zooquarium the goat

1 like
laurenonline's avatar laurenonline 5 days ago

@zooquarium and @garfiend thank you so much!!!

1 like

Website Stats

Last updated 3 days ago
CreatedFeb 8, 2025
Site Traffic Stats

Tags

cities transportation art crafts bikes