mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 05:18:11 +00:00
fix ui
This commit is contained in:
@@ -119,7 +119,7 @@ const tenantConfigs: Record<string, TenantConfig> = {
|
||||
appName: "Smart Office",
|
||||
organizationName: "Addis Ababa City Administration",
|
||||
logo: "",
|
||||
primaryColor: "#115005",
|
||||
primaryColor: "#0EA371",
|
||||
moduleConfig: {
|
||||
dms: true,
|
||||
performance: true,
|
||||
@@ -543,7 +543,14 @@ export const applyTenantTheme = (config: TenantConfig) => {
|
||||
root.style.setProperty("--primary", primary);
|
||||
root.style.setProperty("--ring", primary);
|
||||
root.style.setProperty("--sidebar-primary", primary);
|
||||
root.style.setProperty("--accent", primary);
|
||||
// Accent is a subtle hover/highlight background (dropdown items, menus) that
|
||||
// must stay readable under --accent-foreground text in BOTH color schemes.
|
||||
// Full-strength brand color here produced dark-pill-with-dark-text hovers,
|
||||
// so use a translucent tint of the brand color instead.
|
||||
root.style.setProperty(
|
||||
"--accent",
|
||||
`color-mix(in oklab, ${primary} 15%, transparent)`,
|
||||
);
|
||||
root.style.setProperty("--chart-1", primary);
|
||||
|
||||
if (config.organizationName) {
|
||||
|
||||
Reference in New Issue
Block a user