Increase dark mode contrast

This commit is contained in:
2024-11-25 16:37:09 +01:00
parent 49aeb6e4af
commit 54cb434cd3
6 changed files with 29 additions and 20 deletions
+4 -4
View File
@@ -8,8 +8,8 @@ var metaThemeColor = document.querySelector("meta[name=theme-color]");
if (theme !== null) {
document.body.classList.toggle("dark-theme", isDark);
isDark
? metaThemeColor.setAttribute("content", "#252627")
: metaThemeColor.setAttribute("content", "#fafafa");
? metaThemeColor.setAttribute("content", "#1b1c1c")
: metaThemeColor.setAttribute("content", "#f9f9f9");
}
themeToggle.addEventListener("click", () => {
@@ -20,6 +20,6 @@ themeToggle.addEventListener("click", () => {
document.body.classList.contains("dark-theme") ? "dark" : "light"
);
document.body.classList.contains("dark-theme")
? metaThemeColor.setAttribute("content", "#252627")
: metaThemeColor.setAttribute("content", "#fafafa");
? metaThemeColor.setAttribute("content", "#1b1c1c")
: metaThemeColor.setAttribute("content", "#f9f9f9");
});