Name or wish to seal composer on a gift lid

A paper chapter with a lacquer lid whose paper band carries the seal, and a composer: type a name in Latin letters or Chinese, or a wish, and it reads the sound, offers up to three readings with pinyin, glosses each character, lets you pick white or red characters and stamps the seal on the lid.

FormsFreeFrom Hongyin, GuochaoChinese or JapaneseAbout 9k tokens saved
The whole page

Links in the preview stay on the block.

Open on its own

The prompt

One prompt, written to stand on its own: goal, structure, type, colour, spacing, behaviour and the words in square brackets to replace. Paste it into any tool that writes HTML. The Code tab has this block as one file.

678 words
Download .zip
# Name or wish to seal composer on a gift lid

One forms section, not a whole page: build it to drop into a page that already exists. Works in Claude, v0, Lovable, Bolt, Cursor or any tool that writes HTML.

## Goal
A personalisation tool that feels like craft: the visitor's name becomes a seal, drafted the way a carver would.

## Structure
1. left: 4:3 lacquer lid with an inner hairline and a vertical paper band holding the brand, the seal and a label; a caption row with the size and the draft
2. right: labelled input with a red Draft button, a hint, six starter chips
3. working row: three square steps that fill in turn
4. draft: a sentence on how it was read, radio readings (characters, pinyin, tag), a gloss list, a style fieldset (white characters, red characters), an add button and a confirmation

## Type
Gloock 400 for Latin display, Noto Serif SC 900 for Chinese display and seal characters, Hanken Grotesk 400 to 600 for text and UI.

## Colour
Ink #15110E, soot #231D19, rice #F3ECE0, rice mute #CFC4B5, paper #FBF7F0, line #DDD2C2, lacquer red #B5121B (paper on it 6.8:1), light red #E0262F only for large type on ink, brown #5C5148 for quiet text on paper.

## Spacing and lines
Lid band clamp(130px, 13vw, 176px); seal clamp(96px, 9.6vw, 132px); 22px between composer rows.

## Behaviour
Scripted logic: a name dictionary with standard transliterations and pinyin, a syllable fallback that drafts by sound and says a carver will check it, family names, Chinese input used as written (first four kept), sixteen wish intents mapped to set phrases, and a fallback that offers characters, a wish or leaving it to a carver. Layout follows seal convention: columns right to left, three characters as one tall column and two stacked. The lid seal stamps in over 520ms with a clip reveal.

## Responsive
One column under 900px; under 640px the button goes full width under the input and reading tags wrap below.

## Accessibility
A real form with a label; readings and styles are radio fieldsets with legends; results announced in an aria-live region; reduced motion skips the working steps.

## Built values (from code.html)
- Fonts: Gloock 400 (self-hosted: fonts/gloock-400.woff2); Hanken Grotesk 400 (self-hosted: fonts/hanken-400.woff2); Hanken Grotesk 500 (self-hosted: fonts/hanken-500.woff2); Hanken Grotesk 600 (self-hosted: fonts/hanken-600.woff2); Hongyin Song 900 (self-hosted: fonts/noto-serif-sc-900.woff2). Self-hosted files sit in fonts/ in the block download.
- Colour variables: --ink #15110E, --soot #231D19, --soot-line #3A312B, --rice #F3ECE0, --rice-mute #CFC4B5, --paper #FBF7F0, --line #DDD2C2, --lacquer #B5121B, --lacquer-deep #8F0E16, --red-lit #E0262F, --smoke #8A7F75, --brown #5C5148.
- Font variables: --display "Gloock", "Songti SC", Georgia, serif; --song "Hongyin Song", "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif; --sans "Hanken Grotesk", "Avenir Next", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif.
- Size variables: --gut clamp(16px, 4.6vw, 64px), --rail 72px, --max 1280px, --bar 76px, --pad clamp(104px, 13vw, 192px).
- Media queries: max-width 900px, max-width 640px, prefers-reduced-motion.
- No media files.
- Script: none, CSS only.

## Script
Set the Chinese or Japanese text in a CJK face with its own letter spacing and a looser line height than the Latin text, with strict line breaking and the palt feature on. Latin words inside a CJK line sit on the same baseline.

## Content to replace
- [Starters]: two names, a Chinese name, three wishes
- [Readings]: up to three
- [Gloss]: one meaning per character

## Rules
Plain, specific copy that reads as a live product; never the word sample. No shadows, glow, glass, blur, gradient text, emoji or italics. Motion moves transform and opacity, with colour, border, height and stroke transitions on state changes, and holds its end state under prefers-reduced-motion. Text passes WCAG AA.

## Output
Return the block in one piece: the markup, one style block with the web fonts imported on its first line, and a small script only if the behaviour needs one. No page wrapper, no framework, no build step. Prefix every class with `blk-` and put the colours and sizes in CSS variables at the top.

Same page

More from Hongyin

See the page