Update background color to use CSS variable and remove unused theme toggle logic

This commit is contained in:
2025-04-01 17:46:55 +05:30
parent e95abfb4dd
commit 652dee0c4b
2 changed files with 1 additions and 10 deletions

View File

@@ -20,12 +20,3 @@ export function toggleTheme() {
// Initialize theme on page load
setTheme();
// Example: Call toggleTheme() when a button is clicked
const toggleSwitch: Element | null = document.querySelector('#theme-switch');
if (toggleSwitch) {
toggleSwitch.addEventListener('click', toggleTheme);
} else {
console.warn("Theme switch button not found!");
}