Implement Light Mode (Beige) via alternate SASS compilation and runtime switching

This commit is contained in:
Kroonk
2026-04-12 19:11:23 +02:00
parent 67044add84
commit ab06284beb
6 changed files with 85 additions and 3 deletions

View File

@@ -3,8 +3,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<!-- Load resources -->
<link rel="stylesheet" href="assets/css/main.min.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.min.css" /></noscript>
<link rel="stylesheet" id="theme-style" href="assets/css/main.min.css" />
<script>
var theme = localStorage.getItem('mischkomposition_theme');
if (theme === 'light') {
document.getElementById('theme-style').href = 'assets/css/light.min.css';
}
</script>
<noscript><link rel="stylesheet" href="assets/css/main.min.css" /></noscript>
<link rel="stylesheet" href="assets/css/custom.min.css" />
<link rel="stylesheet" href="/assets/css/fontawesome-all.min.css">