BD in CS π Azure Developer at Nebula π₯ Web Developer π Blogger βπ» Always Learning
π Minimalism and Performance βοΈ Lover of JAMStack and Eleventy β€οΈ
CSS file, what I just want to know is will I have a whole different CSS file where the website's dark style is already written and all the button does is switch between both light and dark
BD in CS π Azure Developer at Nebula π₯ Web Developer π Blogger βπ» Always Learning
π Minimalism and Performance βοΈ Lover of JAMStack and Eleventy β€οΈ
I have a question please, do I have to have an entire css script for the dark mode version of the website?
What do you mean by βCSS scriptβ?
CSS file, what I just want to know is will I have a whole different CSS file where the website's dark style is already written and all the button does is switch between both light and dark
You donβt need a separate CSS file. I just use CSS variables. The JavaScript code of the button toggles between them.
Thanks, I just wanted to be certain, I'd implement it as soon as I can. I feel