diff --git a/docs.json b/docs.json index 026e2eb..b1f50b0 100644 --- a/docs.json +++ b/docs.json @@ -80,6 +80,7 @@ "group": "Code Insights", "icon": "chart-line", "root": "platform/insights", + "tag": "NEW", "pages": [ "platform/insights/findings", "platform/insights/repository-health", diff --git a/sidebar-groups.css b/sidebar-groups.css index 557145d..f60b93f 100644 --- a/sidebar-groups.css +++ b/sidebar-groups.css @@ -29,3 +29,18 @@ html.dark #navigation-items a.nav-anchor svg { html.dark #navigation-items a.nav-anchor:hover svg { background-color: rgb(var(--gray-300)) !important; } + +/* Sidebar tags such as NEW. Mintlify draws them as primary text on + bg-primary/10. Our primary colour is black in both themes, so that + chip is clear in light mode and disappears in dark mode. Keep the + default light-mode chip, and use a light translucent chip in dark + mode. Body text is set to 400 across chrome, so restore the weight + Mintlify already asks for on the tag. */ +.nav-tag-pill-text { + font-weight: 600; +} + +html.dark .nav-tag-pill-text { + background-color: rgb(255 255 255 / 14%); + color: #fff; +}