From 6ef746735e257a1b0b3b355cce114d3e7ec39cfa Mon Sep 17 00:00:00 2001 From: goodboy Date: Sat, 27 Jun 2026 18:02:22 -0400 Subject: [PATCH] Make the hero logo a theme-adaptive wireframe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Swap the landing-page hero from a static `` (white-faced — which glared as a light box on the dark theme) to an INLINE svg whose linework uses `fill: currentColor` and whose faces are transparent. The wireframe now inherits the theme text colour (`svg.hero-logo { color: var(--pst-color-text-base); }`) and the page background shows through, so it flips correctly with the light/dark toggle. - `tractor_logo_hero.html`: the inline svg partial (`.st0` -> `currentColor`, `.st1` -> `none`), `.. raw:: html :file:`-d into `index.rst`, - the shared `tractor_logo_side.svg` is untouched here (navbar + favicon still ride it). (this patch was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code --- docs/_static/css/custom.css | 13 +- docs/_static/tractor_logo_hero.html | 456 ++++++++++++++++++++++++++++ docs/index.rst | 6 +- 3 files changed, 468 insertions(+), 7 deletions(-) create mode 100644 docs/_static/tractor_logo_hero.html diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css index b75c49f7..1e862488 100644 --- a/docs/_static/css/custom.css +++ b/docs/_static/css/custom.css @@ -68,8 +68,15 @@ aside.sidebar.margin > p.sidebar-title { font-size: 0.9rem; margin-bottom: 0.3rem; } -/* landing page hero logo sizing */ -img.hero-logo { - max-width: 360px; +/* landing-page hero logo (inline svg): the linework uses + * `fill: currentColor` so it inherits the theme text colour + * (auto-flips light<->dark), and the faces are transparent so + * the page background shows through. */ +svg.hero-logo { + display: block; width: 60%; + max-width: 360px; + height: auto; + margin: 0 auto 1.5rem; + color: var(--pst-color-text-base); } diff --git a/docs/_static/tractor_logo_hero.html b/docs/_static/tractor_logo_hero.html new file mode 100644 index 00000000..27460752 --- /dev/null +++ b/docs/_static/tractor_logo_hero.html @@ -0,0 +1,456 @@ + diff --git a/docs/index.rst b/docs/index.rst index 98759aea..dc0b77ef 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,7 +1,5 @@ -.. image:: _static/tractor_logo_side.svg - :class: hero-logo - :align: center - :alt: tractor +.. raw:: html + :file: _static/tractor_logo_hero.html tractor =======