Set static theme color

This commit is contained in:
Hazem Krimi
2023-11-18 14:55:47 +01:00
parent 4598a12887
commit d963b389af
3 changed files with 3 additions and 6 deletions
-3
View File
@@ -18,9 +18,6 @@ function initTheme() {
function loadTheme() {
root.style.setProperty('--theme', theme);
document
.querySelector('meta[name="theme-color"]')
.setAttribute('content', theme === 'light' ? '#FBFBFB' : '#1D1B1B');
root.style.setProperty(
'--background',
theme === 'light' ? 'var(--light-background)' : 'var(--dark-background)'