Theme system with 5 color presets (Slate, Emerald, Violet, Amber, Rose) and light/dark/system mode. User menu in sidebar with theme picker and sign out. Login page uses standalone dark branded styling with autofill override. Auth persists in sessionStorage across refreshes.
21 lines
672 B
HTML
21 lines
672 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Forte Admin</title>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
// Apply mode before React renders to prevent flash
|
|
(function() {
|
|
var mode = localStorage.getItem('forte-mode') || 'system';
|
|
var isDark = mode === 'dark' || (mode === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches);
|
|
if (isDark) document.documentElement.classList.add('dark');
|
|
})();
|
|
</script>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|