Skip to content

Credit Louie Mantia in Help and colour the title from the chosen colour - #15

Merged
ericchernuka merged 1 commit into
masterfrom
ec/credit-louie-mantia
Nov 10, 2026
Merged

ericchernuka merged 1 commit into
masterfrom
ec/credit-louie-mantia

Conversation

@ericchernuka

Copy link
Copy Markdown
Owner

Closes #3

Summary

The design credit goes in Help, not a tooltip, so keyboard and touch users can reach it. Hovering the title now gives you a small treat: the letters hop and take on the colour you've chosen.

 <Header color>
-  <h1>Huebo</h1>
+  <Wordmark color>                 # h1, aria-label="Huebo"
+    wordmarkColours(color, letters)  # one hover colour per letter
   <Help>
     …how to pick…
+    Based on a design by <a href="https://lmnt.me">Louie Mantia</a>.

How each letter is coloured on hover:

for each letter i
  hue = shown hue + 15° × i
  saturation, brightness = the pick, or 88 / 75 with nothing picked
  while contrast with pageBackground(hue on show) < 3:1
    brightness -= 1

The page's background moves into pageBackground in src/picker/color.ts, so the page and the title use the same colour.

Evidence

  • Before: Help had no credit, and the title was plain ink on hover.
    After: checked in Chromium at 1280×900 and 390×844 with verify-huebo:
    • Help ends with "Based on a design by Louie Mantia", which opens lmnt.me in a new tab.

    • Hovering the title at different colours:

      Link Letter colours on hover
      /200 #1682B8 → #4F17BF (blue to indigo)
      /20/75/88 #BD5E2F → #628221 (orange to olive)
      /200/12/100 greys around #707A80, darkened from a pick too pale to read
    • Screen readers still announce the heading as "Huebo", not "H u e b o".

  • New unit tests in src/picker/__tests__/wordmark-colours.test.ts:
    given the title
      when nothing is picked → letters start at the hue and step 15° round
      when the hue is near 355 → letters wrap to 0
      when a dark pick is made → letters keep its saturation and brightness
      when any of 72 hues × 65 picks → every letter is ≥ 3:1 on the page
      when a pale pick is made → saturation is kept, brightness only drops
    
  • pnpm check passes: 124 tests.

Merge Danger

Door: two-way

It only changes copy and hover styles, so reverting is clean. The hover colour uses the pick's saturation and brightness, but that's one line in wordmarkColours (color.pick ?? UNPICKED) if you'd rather drop it.

Blast Radius: header

Header now takes color, so both layouts pass it. The Help popover gets one line taller. The title's letters are now separate inline-block spans, but its size doesn't change, so nothing shifts.

Help now ends with "Based on a design by Louie Mantia", linking to
lmnt.me. That closes the old request for a design credit; it lives in
Help rather than a tooltip so keyboard and touch users can reach it.

Hovering the title hops its letters and walks them from the hue on
show to its neighbours, 15° apart. With a pick, they take its
saturation and brightness, darkening only as far as WCAG's 3:1
large-text minimum against the page needs. The page background moves
into pageBackground so the title checks against the same colour.

Closes #3
@vercel

vercel Bot commented Nov 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
huebo Ready Ready Preview Nov 10, 2026 3:15am UTC

@ericchernuka ericchernuka self-assigned this Nov 10, 2026
@ericchernuka
ericchernuka merged commit 28af560 into master Nov 10, 2026
3 checks passed
@ericchernuka
ericchernuka deleted the ec/credit-louie-mantia branch November 12, 2026 04:01

This branch was successfully deployed

1 active deployment
Preview — 0066f24f Deployed Nov 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add credit to Louie Mantia

1 participant