No.135 · Cards
Dither Card
A project card whose picture waits as a coarse one-bit print and resolves on hover — finer and finer dots, then colour — while its meta line types in.
The prompt
Written for the variant you picked above: Paper
Build a portfolio project card (22.5rem wide, 14px radius, hairline border) that is one link. The top is a 4:3 picture shown as a one-bit Atkinson-dithered print in the card's ink and paper colours; under it an Instrument Serif title with a mono year, a mono uppercase meta line and "Read the case study →". Prepare five prints of the same picture up front, at dither cells of 6, 4, 3, 2 and 1 px (each a tiny canvas drawn up with image-rendering: pixelated). On hover or focus, step through them every 95ms, so the dots get visibly finer, then fade in the full-colour picture over 420ms; a small mono badge reports the current state ("1-BIT · 4PX", "COLOUR"). Meanwhile the meta line types itself in at 22ms per character behind a block caret, the card lifts 3px with a soft shadow, and the arrow nudges 4px. Leaving steps back down to the coarse print faster (60ms per step). The picture defaults to a generated canvas study; pass an image URL to use your own. Selected variant — Paper (paper): Palette for this theme (Paper): --dc-bg #f6f2ea; --dc-ink #161412; --dc-line rgb(22 20 18 / 0.14); --dc-muted #6d675e. Treat these as the root colour tokens, one value per role, and name them to suit your code. Select it with the theme option set to "paper". Keep every dimension, spacing value, state and motion from the brief unchanged, and keep text at 4.5:1 contrast or better on these surfaces. 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 the card to resolve the print from coarse dots to colour; leave to drop it back. Motion: Print steps every 95ms (60ms on the way back), colour fade 420ms, meta typing 22ms per character, lift 400ms. Accessibility: The whole card is one link with a visible focus ring; the full meta text is always available to screen readers while the typed copy is aria-hidden. Reduced motion jumps straight between the print and the colour picture with no typing. Responsive behavior: Width is min(100%, 22.5rem); prints are prepared at a fixed size and scaled, so they stay crisp on any screen. Touch: On touch, focus (tap) resolves the picture; a second tap follows the link. 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 the card to resolve the print from coarse dots to colour; leave to drop it back.
- Motion
- Print steps every 95ms (60ms on the way back), colour fade 420ms, meta typing 22ms per character, lift 400ms.
- Accessibility
- The whole card is one link with a visible focus ring; the full meta text is always available to screen readers while the typed copy is aria-hidden. Reduced motion jumps straight between the print and the colour picture with no typing.
- Responsive
- Width is min(100%, 22.5rem); prints are prepared at a fixed size and scaled, so they stay crisp on any screen.
- On touch
- On touch, focus (tap) resolves the picture; a second tap follows the link.