feat: add light theme support and update theme detection in renderer

This commit is contained in:
Илья Глазунов
2026-02-16 22:29:30 +03:00
parent d6dbaa3141
commit 7f15b65eb1
2 changed files with 99 additions and 1 deletions
+5
View File
@@ -1087,6 +1087,11 @@ const theme = {
this.current = themeName;
const root = document.documentElement;
// Determine if theme is light or dark
const lightThemes = ["light", "sepia"];
const isLightTheme = lightThemes.includes(themeName);
document.body.setAttribute("data-theme-type", isLightTheme ? "light" : "dark");
// New design tokens (used by components)
root.style.setProperty("--text-primary", colors.text);
root.style.setProperty("--text-secondary", colors.textSecondary);