From 4b491279faf54946ebedc491ba72ca6175eab9e0 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Tue, 21 Jul 2026 23:43:46 +0900 Subject: [PATCH] website: restore brand colors after docsy update Docsy >= 0.12 pre-declares Bootstrap color variables in _variables_forward.scss before importing the project's _variables_project.scss, so our `!default` assignments of $primary, $secondary, and $dark were silently ignored, and the site fell back to the stock Bootstrap palette (blue primary, gray secondary). Turn them into plain assignments. Also pin $link-color to $blue: Docsy < 0.12 set it explicitly, but newer Docsy lets Bootstrap derive it from $primary, which is white here, making links invisible. Assisted-by: Claude Fable 5 Signed-off-by: Akihiro Suda --- website/assets/scss/_variables_project.scss | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/website/assets/scss/_variables_project.scss b/website/assets/scss/_variables_project.scss index 11544bb0..09937e42 100644 --- a/website/assets/scss/_variables_project.scss +++ b/website/assets/scss/_variables_project.scss @@ -7,9 +7,14 @@ Add styles or override variables from the theme here. $display1-weight: 500 !default; $display2-weight: 100 !default; -$primary: rgb(255, 255, 255) !default; -$secondary: rgb(66.274512%, 81.176472%, 21.960784%) !default; -$dark: black !default; +// No `!default` here: Docsy >= 0.12 pre-declares these variables in +// _variables_forward.scss, so `!default` assignments would be ignored. +$primary: rgb(255, 255, 255); +$secondary: rgb(66.274512%, 81.176472%, 21.960784%); +$dark: black; +// Bootstrap derives $link-color from $primary (white); pin it to the blue +// that Docsy < 0.12 used. +$link-color: $blue; $td-sidebar-tree-root-color: #222 !default; .nav-shadow {