r/learnreactjs • u/Sad-Establishment-80 • Jul 30 '24
Question Dark Mode for plain looking page
I'm doing something very plain looking that uses just standard html elements like from here https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form (not MUI, Bootstrap those things). Basically just something that looks like this https://diskprices.com/ style-wise.
How do I add dark mode toggle to this? Is there a standard dark mode css for plain html elements? I'm asking because while I only know to set the background to black and text to white but I'm afraid there are things that I have to set too like table borders or link colors etc and it's better if there's a standard that is already available that I can use.
View all comments
Show parent comment
1
u/Sad-Establishment-80 Aug 01 '24
AllHTML5.jsx (which I got from here https://github.com/cbracco/html5-test-page/blob/master/index.html and adjusted to my need)
Actually contains more inputs but too long reddit don't allow to add.