Repository navigation
Conversation
The --code-comment token (#6a6f80) on the dark code surface (#0d1018) measures 3.8:1, below the WCAG AA 4.5:1 minimum for normal text. This affects code comments, terminal mock-ups, and small labels on code blocks in both themes. Lighten --code-comment to #8f96a8 (~4.6:1 on #0d1018), clearing the AA floor while staying visually distinct from --code-text (#d4d8e2). Resolves: F-W1-SITE-06
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the shared --code-comment token from #6a6f80 to #8f96a8, bringing comments, terminal mock-ups, and code-block labels above the WCAG AA normal-text contrast threshold while leaving other syntax colors and theme tokens unchanged. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Hi @vortsghost2025, thanks for picking up #887! 🙏 I went through this carefully, and the change itself looks right to me. Below is what I verified, plus a few things I'd like to see added so the PR fully meets the issue's acceptance criteria. None of them needs a code change. What I verifiedI computed WCAG 2.1 contrast ratios (sRGB relative luminance) for every text colour used on the code surface, against
The title bars ( The light theme does not redefine What I'd like to see added to the PR1. Please correct the contrast figure in the description and commit message. 2. Please add the rendered browser QA the issue asks for.
The site is static, so 3. Please show the per-token check in the description. Optional
Small process notes
Thanks again, this is a clean, focused change. Once the description has the corrected ratio and the screenshots, I'm happy to move it forward. 🙌 |
Desktop dark/light, mobile dark: index hero terminal, quickstart code blocks, compliance code block. Contrast ratio in description corrected to 6.43:1.
|
Hi @cemililik, thanks for the thorough review! All three items are addressed: 1. Contrast figure corrected. The PR description now says 6.43:1 (was "~4.6:1"). The commit message on the branch still says ~4.6:1 — I can amend it if you'd like, or leave it since the PR description carries the verified number. 2. Rendered browser QA. Screenshots below, served from the PR branch via local http server: index.html — hero terminal (dark): index.html — hero terminal (light theme): index.html — mobile 375px (dark): quickstart.html — code blocks + wizard YAML pane (dark): quickstart.html — code blocks (light theme): compliance.html — code block (dark): 3. Per-token table. Added to the PR description — every code-surface text token against Screenshots are committed under |
|
Hi @vortsghost2025, thanks for the quick turnaround, and for the corrected 6.43:1 figure and the per-token table in the description. The CSS change itself is good as it stands. Two follow-ups on the screenshots; first, an apology: my earlier comment didn't say where to put them, so committing them to the branch was a natural reading. 🙏 1. Please remove
|
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
site-deploy.yml publishes the whole site/ directory to GitHub Pages, so site/qa/ would be served from the public site (about 870 KB of PNGs) and stay in the tree after the squash merge. The screenshots belong on the PR conversation, not in the repository. Refs HodeTech#887 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds the [Unreleased] > Fixed entry for the --code-comment change, with the contrast measured on the rendered pages in both themes. Resolves: F-W1-SITE-06 Refs HodeTech#887 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Hi @vortsghost2025, thank you for taking on #887 and for turning the review round around so quickly. 🙏 To get this ready to merge, I pushed three small commits to your branch (a regular push, no force-push):
I also re-checked the rendering myself rather than relying on the token values alone. With the site served locally, I measured the computed colours of every text node on the code surface across The change is a one-line fix with a well-argued colour choice, and |






Fixes #887
Resolves: F-W1-SITE-06
The
--code-commenttoken (#6a6f80) on the dark code surface (#0d1018) measures 3.8:1, below the WCAG AA 4.5:1 minimum for normal text. This affects code comments, terminal mock-ups, and the small labels on code blocks in both themes (the light theme keeps the code surface dark).This change lightens
--code-commentto #8f96a8, which measures 6.43:1 on #0d1018, clearing the AA floor while staying visually distinct from--code-text(#d4d8e2).Changed files:
site/css/style.css(1 line):--code-comment: #6a6f80→--code-comment: #8f96a8Per-token contrast check (WCAG 2.1, sRGB relative luminance, against
--code-bg#0d1018):--code-commentbefore (#6a6f80)--code-commentafter (#8f96a8)--code-text(#d4d8e2)--code-keyword/--code-string/--code-number/--code-fn--steel-bright,--ember-bright,--success,--warn.terminal-bar,.wizard-yaml-header) on gradient#1a1f2c→#141823The light theme does not redefine
--code-commentand keeps--code-bgdark, so both themes get the fix. Note:#7a8090(suggested in the issue) would give only 4.17:1 on the lightest gradient stop and miss AA there —#8f96a8is the better choice.Verification: Contrast ratios computed per WCAG 2.1; every text colour on the code surface reaches 4.5:1 against
--code-bgin both themes. No other tokens changed.Summary by Sourcery
Raise the code-comment color contrast so code surfaces and their associated labels meet WCAG AA readability requirements.
Bug Fixes:
Chores:
Summary by CodeRabbit