styles improvements

This commit is contained in:
Hazem Krimi
2024-01-26 00:39:08 +01:00
parent 67a42d867b
commit f5adf3bde1
5 changed files with 29 additions and 25 deletions
+2 -2
View File
@@ -86,8 +86,8 @@ function loadTheme() {
'--header-shadow',
theme === 'light' ? 'var(--shadow)' : 'none'
);
root.style.setProperty('--text', theme === 'light' ? 'black' : 'white');
root.style.setProperty('--color', theme === 'light' ? 'black' : 'white');
root.style.setProperty('--text', theme === 'light' ? 'var(--black)' : 'var(--white)');
root.style.setProperty('--color', theme === 'light' ? 'var(--black)' : 'var(--white)');
document.querySelector(
theme === 'light' ? 'header .moon' : 'header .sun'