darkmode added. fixes #91

This commit is contained in:
mic 2024-07-28 23:18:39 +02:00
parent aa75de3602
commit ebfd1f08c8
2 changed files with 13 additions and 0 deletions

View file

@ -50,6 +50,12 @@ messagesInputStyle .textContent = `
cursor: pointer;
border-radius: 10px;
}
@media (prefers-color-scheme: dark) {
#messageInputField {
background-color: #303030;
color: #ffffff;
}
}
`;
messageInputTemplate.content.appendChild(messagesInputStyle);

View file

@ -40,3 +40,10 @@ p {
margin: 0 0 10px 0;
}
/* Dark mode styles */
@media (prefers-color-scheme: dark) {
body {
background-color: #000000;
color: #ffffff;
}
}