根据 kcContext.themeName 自动识别 class 与默认 NEXUS 主题。
class 控制台复用登录页的蓝、珊瑚、黄色、绿色档案风格。 账号控制台和管理控制台均支持亮色、暗色模式。 优化侧栏文字对比度、身份卡、按钮、背景网格及主题强调色。 修复约 1050px 宽度下内容区横向溢出。
This commit is contained in:
@@ -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: "/",
|
||||
|
||||
Reference in New Issue
Block a user