Skip to content

No.41 · Buttons

Stitch Button

A button sewn from leather or denim with a running stitch inside its edge; hover pulls the thread tight and lifts the panel, and pressing puckers the seam.

The prompt

Copy this text

Automatic copying is unavailable. Copy the selected text using your device’s copy command.

Written for the variant you picked above: Leather

Build a shop button cut from fabric: a textured face with a tiny dotted grain, a light top edge and a darker bottom lip. 5px inside the edge, a running stitch drawn as an SVG rounded rect sized from the measured button: a thread stroke (dasharray 6 4, round caps) over a dark copy offset 1px down, so each stitch sits in a groove. On hover or focus the dasharray animates to 6.5 2.5 — the thread pulls tight — while the panel lifts 1px and its shadow deepens (420ms expo-out). Pressing squashes it slightly (scale 0.985 × 0.97) and shifts the dash offset, so the seam puckers. Selected variant — Leather (leather): Leather: a warm brown radial-gradient face (130% 120% at 30% 0%, #8a5532 → #5a321c), cream thread #ecd9ae, label #f6ead0. This selection takes precedence over references to other themes or options in the general brief. Implement this selected appearance; do not add a variant picker or alternative appearances unless requested. Implementation requirements: Use React and TypeScript. Keep the component self-contained, with uniquely scoped CSS and no animation libraries. Include required imports, styles and font setup in the result. Interaction: Hover or focus to pull the stitches tight; press to pucker the seam. Motion: Stitch spacing, lift and shadow over 420ms expo-out; press is instant. Accessibility: A real button with a text label; the seam is decorative. Thread-coloured focus outline. Reduced motion makes changes instant. Responsive behavior: The seam is rebuilt from the measured size, so any label fits. Preserve keyboard access, visible focus and reduced-motion behavior. Keep fictional demo data and simulated service calls in a separate usage example; expose callbacks for real actions and recover from rejected requests. Keep usage-example links inside the demo: use local buttons or prevent navigation. Demonstration links must not navigate to Vitrine routes or open other pages; preserve real URL support in the reusable component itself. Verify the result at narrow and wide viewport sizes, with keyboard input and reduced motion enabled.

Notes

Interaction
Hover or focus to pull the stitches tight; press to pucker the seam.
Motion
Stitch spacing, lift and shadow over 420ms expo-out; press is instant.
Accessibility
A real button with a text label; the seam is decorative. Thread-coloured focus outline. Reduced motion makes changes instant.
Responsive
The seam is rebuilt from the measured size, so any label fits.