Change input text color on dark or light mode
I created a dark/light theme switcher. The problem that I discovered is that when I enter any information in the input field while the website is in dark mode, the text inside the input field appears black. How can I change it to keep the black text colour in light mode and white text colour in dark mode? Here is my CSS for light/dark mode. How can I add a different text color for dark mode? :root { --primary-color: rgb(82, 80, 144); --secondary-color: #536390; --font-color: #424242; --bg-color: #fff; --heading-color: #292922; --color: black; } [data-theme="dark"] { --primary-color: rgb(107, 1
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.