simulation #32

Merged
Vishnu merged 8 commits from simulation into main 2025-04-02 05:09:50 +00:00
2 changed files with 1 additions and 13 deletions
Showing only changes of commit 975e7e2c1d - Show all commits

View File

@@ -75,7 +75,7 @@
height: 100vh; // Full viewport height
width: 100vw; // Full viewport width
overflow: hidden; // Prevent scrollbars
background-color: #232323;
background-color: var(--background-color-gray);
}
// Root overlay styles

View File

@@ -17,15 +17,3 @@ export function toggleTheme() {
document.documentElement.setAttribute('data-theme', newTheme);
localStorage.setItem('theme', newTheme);
}
// 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!");
}