feat: redesign UI to Hetzner Cloud style with light theme

This commit is contained in:
markmorado
2026-03-15 03:25:15 +01:00
parent ed7f1f779e
commit 284c3dfce0
10 changed files with 363 additions and 313 deletions

View File

@@ -10,19 +10,15 @@
const DARK_THEME = 'dark';
const LIGHT_THEME = 'light';
// Get saved theme or system preference
// Get saved theme or default to light
function getPreferredTheme() {
const savedTheme = localStorage.getItem(THEME_KEY);
if (savedTheme) {
return savedTheme;
}
// Check system preference
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) {
return LIGHT_THEME;
}
return DARK_THEME;
// Default to light theme (cloud panel style)
return LIGHT_THEME;
}
// Apply theme to document