Files
CoHaiSe-CLOUD/frontend/cloud/public/theme.js
T
Esiah cc397e96d8
PR — Ouverture automatique / create-pr (push) Failing after 1s
chore: initial import of CoHaiSe Cloud
Standalone files & media application: React/Vite frontend with the @cohaise/ui design system, Hono + MariaDB backend, nginx reverse proxy, Docker Compose stack, migrations 000-006, and project docs.

Adds Gitea Actions workflows for deployment, automatic pull requests, and Renovate dependency updates.
2026-10-14 15:24:06 +02:00

11 lines
340 B
JavaScript

(function () {
try {
var stored = localStorage.getItem("cohaise-theme");
var prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
var theme = stored || (prefersDark ? "dark" : "light");
if (theme === "dark") document.documentElement.classList.add("dark");
} catch (error) {
void error;
}
})();