diff --git a/src/components/common/ThemeToggle/index.tsx b/src/components/common/ThemeToggle/index.tsx
index 732123b6..b9fe2ccf 100644
--- a/src/components/common/ThemeToggle/index.tsx
+++ b/src/components/common/ThemeToggle/index.tsx
@@ -6,7 +6,7 @@ import { useEffect, useId, useState } from 'react';
import styles from './style.module.scss';
const ThemeToggle = () => {
- const { theme = 'system', setTheme } = useTheme();
+ const { theme = 'system', resolvedTheme, setTheme } = useTheme();
const [mounted, setMounted] = useState(false);
const lightId = `light${useId()}`;
@@ -24,6 +24,15 @@ const ThemeToggle = () => {
const switchPos = themeToSwitch[theme];
const currAltText = `Icon representing ${theme} theme is on.`;
+ useEffect(() => {
+ const metaThemeColor = document.querySelector('meta[name="theme-color"]');
+ if (metaThemeColor && resolvedTheme === 'dark') {
+ metaThemeColor.setAttribute('content', '#37393e');
+ } else if (metaThemeColor) {
+ metaThemeColor.setAttribute('content', '#fff');
+ }
+ }, [resolvedTheme]);
+
useEffect(() => {
setMounted(true);
}, []);
diff --git a/src/components/layout/Navbar/index.tsx b/src/components/layout/Navbar/index.tsx
index 10bb55f3..3a10245b 100644
--- a/src/components/layout/Navbar/index.tsx
+++ b/src/components/layout/Navbar/index.tsx
@@ -57,7 +57,7 @@ const Navbar = ({ accessType }: NavbarProps) => {