Skip to content

No.507 · Type & Names

Roll Call

A roster of names where focus dims the room: the chosen name turns to italic serif in its own colour and its role slides out on a mono rail.

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: Roster

Stack a list of people, each a full-width button row: a mono index, the name in Geist 600 at clamp(1.6–2.6rem) with -0.035em tracking, and a mono uppercase role hidden to the right. When a row is hovered or focused, drop every other row to 20% opacity. The active name switches to Instrument Serif italic, takes its own accent colour, nudges right by 0.5rem, and its role slides in from -14px while fading up. ArrowUp/ArrowDown move focus between rows; a tap toggles the state on touch. Selected variant — Roster (roster): Roster: five rows — Masar (#7c9cff), Wally (#ff7fb6), OCS (#4fd68a), TransOcean (#ffc35c), Vitrine (#5fd6e8) — each with its role. 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 a row to spotlight it; arrow keys move between rows; tap toggles on touch. Motion: Opacity, colour, transform and font swap on a 0.3–0.4s ease; role slides in on a spring-ish cubic-bezier. Accessibility: Each row is a real button in a list, with visible focus ring; motion is transitions only and is removed under reduced motion. Responsive behavior: Type scales with clamp(); the role column sits beside the name and stays right-aligned. 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 a row to spotlight it; arrow keys move between rows; tap toggles on touch.
Motion
Opacity, colour, transform and font swap on a 0.3–0.4s ease; role slides in on a spring-ish cubic-bezier.
Accessibility
Each row is a real button in a list, with visible focus ring; motion is transitions only and is removed under reduced motion.
Responsive
Type scales with clamp(); the role column sits beside the name and stays right-aligned.