hi, i saw your dark/light theme tutorial and it was very useful!! (going to add to my list of resources when i can) i note that you said "have to be defined as a valid color" about variables - not to ask a question thats probably obvious, but is there a way to make a var for a background image? i know the @media would probably work in this case but im just curious really. once again thank you so much for the guide !!
oh yes variables don't have to just be colors! I just meant a color had to be a valid color name. if you want to use an image you can do something like:
ive been wanting to add themes to my site for a while now so this came at the perfect time ^^
oh yes variables don't have to just be colors! I just meant a color had to be a valid color name. if you want to use an image you can do something like:
:root { --bg: url(cat.png);)} and then u can use var(--bg) anywhere you could put an image
makes sense, thank you!!