feat: active nav tab uses module accent colour

This commit is contained in:
Ulas
2026-03-31 13:22:16 +02:00
parent c264969f84
commit 6a018867e0
2 changed files with 9 additions and 4 deletions
+5
View File
@@ -321,6 +321,11 @@ function updateNav(path) {
// Bottom-Nav zur aktiven Seite scrollen
scrollNavToActive();
// Modul-Akzentfarbe auf :root setzen — wird von Nav-CSS gelesen
const route = ROUTES.find(r => r.path === path);
const accent = route?.module ? getCSSToken(`--module-${route.module}`) : '';
document.documentElement.style.setProperty('--active-module-accent', accent || '');
}
function renderError(container, err) {