Update theme toggle functionality and default theme settings

- Changed the default theme from light to dark mode in the theme toggle functionality.
- Updated the setup documentation to reflect the new default theme.
- Added Google Fonts integration for improved typography in the Hacktivity theme.
- Enhanced the lab layout with a theme toggle button for user convenience.
This commit is contained in:
Z. Cliffe Schreuders
2025-09-15 23:56:46 +01:00
parent 72fdaed37f
commit aabede25b8
5 changed files with 98 additions and 45 deletions

View File

@@ -80,8 +80,8 @@ document.addEventListener('DOMContentLoaded', function() {
const themeIcon = document.getElementById('theme-icon');
const body = document.body;
// Check for saved theme preference or default to light mode
const currentTheme = localStorage.getItem('theme') || 'light';
// Check for saved theme preference or default to dark mode
const currentTheme = localStorage.getItem('theme') || 'dark';
body.setAttribute('data-theme', currentTheme);
updateThemeIcon(currentTheme);