根据 kcContext.themeName 自动识别 class 与默认 NEXUS 主题。

class 控制台复用登录页的蓝、珊瑚、黄色、绿色档案风格。
账号控制台和管理控制台均支持亮色、暗色模式。
优化侧栏文字对比度、身份卡、按钮、背景网格及主题强调色。
修复约 1050px 宽度下内容区横向溢出。
This commit is contained in:
2026-08-04 16:15:41 +08:00 Unverified
parent c1b36b4d72
commit e6945ca09a
5 changed files with 298 additions and 11 deletions
+5
View File
@@ -13,9 +13,14 @@ import { createHashRouter, RouterProvider } from "react-router-dom";
import { i18n } from "./i18n/i18n";
import { Root } from "./Root";
import { routes } from "./routes";
import { getKcContext } from "./KcContext";
import "./index.css";
const { kcContext } = getKcContext();
document.documentElement.dataset.kcThemeName = kcContext.themeName;
const router = createHashRouter([
{
path: "/",