Repository navigation
Fix Hugo theme tokens and typography for #8562 - #8596
Conversation
Signed-off-by: Aadi <devrajsingh883@gmail.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
Hugo preview removed because the pull request was closed. |
sarajkrishnasingh
left a comment
There was a problem hiding this comment.
Nice, focused follow-up to #8585 for #8562. The contrast fixes are exactly right: dark-theme buttons on Keppel were failing WCAG AA at 2.64:1, and swapping the seven #04201b literals for var(--on-accent), plus the dark-theme :where() overrides for .btn and .btn-default, closes that gap cleanly. The .btn-invert change from --color-primary to --color-active is the right call too: in dark theme --color-primary is white, so Keppel text on a white background was failing, and the dark --color-active background fixes it. Tokenizing the four terminal hex values without changing their values keeps the terminal looking identical while moving everything behind custom properties. I verified --color-link and --on-accent are defined in both themes, so the --color-brand to --color-link swaps in the FAQ, position-apply, and nav links are safe.
Two things to check before merge. First, I left one inline suggestion on the ghost button hover: the rule lost its color line, so a ghost button on hover now takes the generic white text on --color-active. If that was not intentional, the suggestion restores it. Second, the PR description says it adds the 12 @font-face rules, but those are already on the hugo branch from #8585; this PR's actual change is the token and contrast work, so a quick edit to the description would help reviewers read the diff as it is. The font files do live in root static/fonts/ on this branch, so please confirm in the preview that /fonts/qanelas-soft/... resolves once published, since that depends on the Hugo mount configuration.
Checks are green across the board: DCO, triage, build, and verify-urls all successful. The one pre-existing migrate-mdx failure in make test is unrelated to this CSS-only change. No test coverage is needed for a website styling change.
Signed-off-by: Aadi <devrajsingh883@gmail.com>
|
Thank you again @sarajkrishnasingh for your valuable feedback! I've implemented the suggested changes:
Could you please take another look and re-review the updated PR when you get a chance? |
sarajkrishnasingh
left a comment
There was a problem hiding this comment.
Thanks for the quick turnaround, Aadi. Both points from my last review are addressed: the ghost-button hover color is restored exactly as suggested (color: var(--color-text) in commit 12c4ec9), and the description now correctly credits the font work to #8585 instead of claiming it here. I also checked the preview myself and /fonts/qanelas-soft/QanelasSoftBold.otf resolves with a 200, so the font mount is fine.
The contrast fixes still read well, the thread is resolved, and checks are green on the new head (build, verify-urls, triage, DCO). Approving and merging.
|
A big thank you to @sarajkrishnasingh for taking the time to review our contribution and providing such thoughtful, constructive feedback. Your suggestions helped us improve the final implementation. |
Layer5 Issue #8562: Sistent Design Tokens and Site Fonts
Summary
This PR refines the Hugo site's CSS theme foundation to align its light and dark presentation with the Sistent design system. It addresses Issue #8562.
Problem
Dark-theme button variants used hardcoded
#04201btext color on Keppel (#00D3A9) background (2.64:1), failing WCAG AA 1.4.3. The ghost-button hover text color needed restoration to preserve its intended appearance. Hardcoded hex values in token-definition blocks and terminal UI required mapping to Sistent design tokens.Changes
hugo/DESIGN.md.Design and accessibility
@font-facedeclarations or add font files. Existing font work is from PR [header] feat: Hugo desktop header and mega-menu parity (#8564) #8585.Validation
make build— 120 pages generated successfully.make test— 132 pass, 1 pre-existing fail (migrate-mdx:<Link>: non-literal expression for "to"inprograms/hack/index.mdx), 1 skipped. The migrate-mdx failure is pre-existing and consistent across all investigations (Linux: 134/134 per manifest; macOS: 132 pass/1 fail/1 skipped). Unrelated to [Hugo] Phase 2 · Sistent design tokens and site fonts → CSS custom properties #8562 design-token or font work.hugo/layouts/.color: var(--color-text)restored in.btn-ghost:hover, .btn--ghost:hoverrule.Scope
hugo/assets/css/main.css.References
hugo/DESIGN.md@font-facedeclarations already onhugobranch)