Light und Darkmodus in global.css eingestellt, in andere components text-black in root div

This commit is contained in:
ISA
2024-10-24 11:59:52 +02:00
parent 27a078be8d
commit 69a51abdd2
5 changed files with 24 additions and 7 deletions

View File

@@ -26,3 +26,19 @@ body {
text-wrap: balance;
}
}
@media (prefers-color-scheme: light) {
input {
background-color: #333 !important; /* Dunkler Hintergrund im Darkmode */
color: #fff !important; /* Weißer Text im Darkmode */
border: 1px solid #555; /* Optional: etwas hellerer Rahmen */
}
}
@media (prefers-color-scheme: dark) {
input {
background-color: white !important; /* Heller Hintergrund im Lightmode */
color: black !important; /* Schwarzer Text im Lightmode */
border: 1px solid #ccc; /* Optional: heller Rahmen */
}
}