Skip to content

Commit

Permalink
cli color
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoaquim committed May 14, 2024
1 parent aeed807 commit 6f0c522
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions website/src/theme/Navbar/Layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@ export default function NavbarLayout({ children }) {
"#3a204f"
);
}
} else if (cleanedPath.startsWith("/cli")) {
if (document.documentElement.getAttribute("data-theme") === "dark") {
document.documentElement.style.setProperty(
"--ifm-color-primary",
"#d3d3d3"
);
} else {
document.documentElement.style.setProperty(
"--ifm-color-primary",
"#d3d3d3"
);
}
} else {
}
}, [pathname]);
Expand Down

0 comments on commit 6f0c522

Please sign in to comment.