docs: landing page visuals — StackGuardian logo and button colour - #279
Merged
Conversation
Replaces img/tirith.png in the navbar with the StackGuardian mark, which is what appears top-left on the landing page and on every docs page. The alt text changes with it: it said "Tirith Logo", and the image is now the StackGuardian logo, so a screen reader would otherwise announce the wrong name. The favicon still points at img/tirith.png. Left deliberately -- swapping the browser-tab icon changes how the site is identified in a tab strip and in bookmarks, which is a separate call from the in-page logo.
The hero button used the site primary. It now uses the blue from the StackGuardian icon, scoped to that one button by overriding the --ifm-button-* properties on a CSS-module class -- deliberately not by changing --ifm-color-primary, which also drives links, sidebar highlights and admonitions across every page. The icon's exact blue is #007aff, which gives only 4.02:1 against white and so fails WCAG AA for normal text. The fill is the same hue darkened to #006ee6 (4.80:1), and darker again on hover. The label is pinned to opaque white rather than left to --ifm-button-color, which resolves per theme -- the same variable whose light-mode value made this button's text invisible once already.
This was referenced Aug 13, 2026
|
❌ The last analysis has failed. |
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
AkashS0510
approved these changes
Aug 13, 2026
arunim2405
approved these changes
Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two visual changes to the landing page, combined. Replaces #277 and #278, which are closed in favour of this — same commits, one review.
The page is already live at https://stackguardian.github.io/tirith/, which still shows the old logo and the old button colour; merging this fires the deploy and the site picks both up.
1. The StackGuardian icon as the site logo
logo: { - alt: 'Tirith Logo', - src: 'img/tirith.png', + alt: 'StackGuardian logo', + src: 'img/sg-icon.png', },Asset added at
documentation/static/img/sg-icon.png— 512×512 RGBA PNG, 17.7 KB. That logo sits top-left on the landing page and on every documentation page.The
alttext changes with it: it read "Tirith Logo", and the image is now the StackGuardian mark, so leaving it would have a screen reader announce the wrong name.Docusaurus emits two
<img>elements for a themed logo. Both were checked — a change landing on only one looks correct until someone toggles light/dark.favicon: 'img/tirith.png'is deliberately untouched, and that asset is now used for nothing else. The favicon is how the site is identified in a tab strip, history and bookmarks, which is a separate decision from the in-page logo. Happy to swap it and delete the orphan in a follow-up.2. The Get started button in the icon blue
Applied by overriding the
--ifm-button-*custom properties on a CSS-module class composed alongside Docusaurus's ownbutton--primary:--ifm-color-primaryincustom.cssis untouched on purpose. It also drives link colour, sidebar highlights and admonitions on every page, so changing it would repaint the whole site to recolour one button. The secondary "GitHub" button is unchanged.The icon's exact blue fails contrast, so the fill is one shade darker
Sampled from the source PNG with a standard-library decoder: the dominant opaque colour is
#007aff, confirmed at seven probe points and by a histogram over the image.White on
#007affis 4.02:1 — below the 4.5:1 WCAG AA threshold for normal text. Rather than ship that, the fill is the same hue darkened to#006ee6(4.80:1), with hover and active at#0062cc(5.80:1). It reads as the icon blue and stays legible.If you would rather have the literal
#007aff, it is a one-character change and this is large text, where AA only requires 3:1 — but it is a conscious trade, so it is not made silently.The label is pinned to opaque white
Not left to
--ifm-button-color, which resolves through--ifm-font-color-base-inverseand flips per theme. That variable is how this button's text ended up invisible once already: an earlier version set the label tovar(--ifm-background-color), which is#0000in light mode. A literal#fffrenders identically in both themes.Verified together, not just separately
npm run buildsucceeds with both commits applied, and each change is present in the emitted output rather than only in source:build/index.html→src="/tirith/img/sg-icon.png"andclass="button button--lg button--primary heroPrimary_i6PQ"build/assets/css/styles.*.css→--ifm-button-background-color:#006ee6plus the hover/active ruleInfima wraps its
.button--primaryrules in:where(), so a single module class wins on base, hover and active without!important.