No.246 · AI & Chat
Thinking Trace
A reasoning status that shows its work without shouting: the current step shimmers across its own words with a live timer, and the line expands into the steps already done, each with its duration.
The prompt
Written for the variant you picked above: Paper
Design the 'thinking' state of an AI reply as a quiet one-line status that is also a log. The line has a breathing accent dot (scale pulse plus an expanding ring), the current step's text, a tabular mono timer and a chevron. The current step's text carries its own shimmer — a 100° gradient (muted → ink → muted) clipped to the letters with background-clip: text, sliding across every 1.8s — and each new step enters with a 4px rise. The whole line is a disclosure button: expanding (grid-template-rows 0fr → 1fr, 480ms) reveals the steps already finished on a thin vertical thread, each with a dot and its duration in mono, plus the pending step highlighted in accent. When everything finishes, the dot settles into a small still grey point and the line becomes 'Thought for 6s'. Steps and durations are data; the demo loops. Paper and night themes. Selected variant — Paper (paper): Apply the paper theme. Where the brief above gives no colour values for it, choose a restrained paper palette with text at 4.5:1 contrast or better. Keep the geometry, states and motion described above unchanged. 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: Click (or Enter/Space) the status line to show or hide the finished steps. Motion: 1.8s text shimmer, 1.6s breathing dot with ring, 460ms step entry, 480ms disclosure; everything settles when done. Accessibility: The line is a real button with aria-expanded/aria-controls; the current step and completion are announced politely; reduced motion shows the final state without shimmer or pulses. Responsive behavior: Fluid to 34rem; long step names truncate with an ellipsis on the line and wrap in the log. Touch: Tap the line to toggle the log. 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
- Click (or Enter/Space) the status line to show or hide the finished steps.
- Motion
- 1.8s text shimmer, 1.6s breathing dot with ring, 460ms step entry, 480ms disclosure; everything settles when done.
- Accessibility
- The line is a real button with aria-expanded/aria-controls; the current step and completion are announced politely; reduced motion shows the final state without shimmer or pulses.
- Responsive
- Fluid to 34rem; long step names truncate with an ellipsis on the line and wrap in the log.
- On touch
- Tap the line to toggle the log.