From da94e5cd91c3a7e3556c325ecb015db6b6401b0a Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 23 Nov 2026 11:59:48 +1100 Subject: [PATCH] [docs] Adjust theme colors (#13344) To match the website --- docs/docs/stylesheets/extra.css | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/docs/stylesheets/extra.css b/docs/docs/stylesheets/extra.css index 92efcfde4c..d2f0abc0a5 100644 --- a/docs/docs/stylesheets/extra.css +++ b/docs/docs/stylesheets/extra.css @@ -213,6 +213,22 @@ div:nth-of-type(1) p:not(.admonition-title) { padding-right: 0; } +/* Header colours match the inventree.org website (brown header, light text), + * rather than the documentation blue. The same colours are used in both light and dark mode */ +:root { + --iv-header-bg: #9e7d47; + --iv-header-text: #f9fafb; + --iv-header-muted: #e5e7eb; +} + +.md-header, +.md-tabs, +.md-nav--primary .md-nav__title[for="__drawer"] { + --md-primary-fg-color: var(--iv-header-bg); + --md-primary-bg-color: var(--iv-header-text); + --md-primary-bg-color--light: var(--iv-header-muted); +} + /* Solid primary-colour header and navigation tabs, as in the classic theme. * (The Zensical "modern" variant uses a translucent neutral header.) */ .md-header, @@ -225,7 +241,7 @@ div:nth-of-type(1) p:not(.admonition-title) { backdrop-filter: none; } -/* Search button on the coloured header (darker blue box, white text) */ +/* Search button on the coloured header (darker box, light text) */ .md-header .md-search__button { background-color: rgba(0, 0, 0, 0.26); color: var(--md-primary-bg-color);