Skip to content

Commit

Permalink
Update Navbar.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ramo-dev authored Apr 16, 2024
1 parent b12a0e2 commit e887ab4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const Navbar = () => {

useEffect(() => {
// Update CSS variables based on dark mode state

document.documentElement.style.setProperty('--background-color', darkMode ? '#111' : '#fff');
document.documentElement.style.setProperty('--primary-color', darkMode ? 'crimson' : 'crimson');
document.documentElement.style.setProperty('--text-color', darkMode ? '#fff' : '#000');
Expand Down

0 comments on commit e887ab4

Please sign in to comment.