Skip to content

Redesign Heartwritten as paper, type and heartbeat ink - #3

Merged
ubmids merged 3 commits into
mainfrom
claude/redesign
Nov 11, 2026
Merged

ubmids merged 3 commits into
mainfrom
claude/redesign

Conversation

@ubmids

@ubmids ubmids commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Before: the reader and writer used stock web pieces: pill buttons, a gradient summary card, a cartoon heart icon, emoji in the stats, and a salutation that repeated the letter's own "Maya,". The heartbeat ink barely changed colour, so the main idea was hard to see.

After: both pages are one piece of stationery. A desk, a sheet of toothed paper, a real serif with small-caps labels, and one dark ink. The heartbeat is the only colour: words are written in a navy-to-claret-to-vermilion ink that follows the writer's pulse, a thin heartline under the signature draws the whole letter's heart rate, and pauses are noted in the margin beside the line where they happened.

The envelope is a drawn envelope with the wax seal on its flap. The summary is a quiet postscript ("While this was written") instead of a card. The writer now inks the letter live as you type, so you see your own heart colouring the words.

Screens

Envelope, before
Envelope, after
Letter, after
Letter at phone width
Writer, after

How

  • src/shared/playback.js: three-stop ink ramp (calm navy, claret, vermilion; cool blue below baseline), exported as INK.
  • src/shared/heartline.js (new): SVG heartline coloured by the same ink, with a clip rect the reader reveals as the replay runs.
  • src/reader/*: rewritten markup and CSS (system serif only, since the reader's CSP allows no web fonts), margin pulse, margin pause notes, postscript, phone layout with a sticky pulse bar, dark mode keeps the paper.
  • src/writer/*: same language; a transparent textarea over an ink mirror so text takes the live ink colour.
  • README and DEV post text updated.

Tests: npm test passes (25 tests).


Generated by Claude Code

- Richer ink: iron-gall blue-black at rest, warming through claret to
  vermilion, cooling to clear blue-black
- Words land as wet ink, the caret writes in the current ink
- A heartline under the signature draws the whole letter's heart rate
- Pause notes sit in the margin beside the line they happened on
- Envelope drawn as a real envelope with the seal on the flap
- Postscript replaces the summary card; text links replace pill buttons
- Writer: same desk and paper, consent as a set sheet, caret follows the heart

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The writer now shows each character in the ink of the heartbeat that
typed it, through a mirror behind the textarea.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…shots

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
heartwritten Ready Ready Preview Nov 11, 2026 5:05pm UTC

@ubmids
ubmids merged commit df2b7b3 into main Nov 11, 2026
3 checks passed
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.

2 participants