mirror of
https://github.com/maikka39/Personal-Website.git
synced 2026-10-02 14:46:25 +00:00
Increase dark mode contrast
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user