Now In Code
Get access

Voice-Reactive Mesh Gradient Assistant

A pale blue, mint and cream mesh gradient drifts slowly, then speeds up and folds into sharp color patches while someone speaks. A frosted pill moves from Hold to talk to Listening and Thinking, with the question and answer fading in word by word above it.

Inspired by a design by @desugar_64 on XRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "voice-reactive-mesh-gradient-assistant" to this project.

The full source is attached at the end of this prompt. Put the files under components/voice-reactive-mesh-gradient-assistant/, install the listed dependencies with `npx expo install`, and render it on a route I can open.

Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply.

=== Source files are attached here for paid plans ===
Pro piece. The prompt includes the full source.Get access

Details

Platforms
iOS, Android
Requires
Expo SDK 54+
Access
Pro
Updated
18 Nov 2026
License
Unlimited commercial projects
Original design
@desugar_64 on X

Are you the designer? Ask us to change or remove this.

CLI and MCP server Coming soon

Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs

What it does

A voice assistant screen with a pale blue-grey gradient that flows slowly across the whole display. When the user speaks or the assistant answers, the flow speeds up and sharp folded colour patches appear. A white blurred pill at the bottom reads Hold to talk, then Listening, then Thinking, and its fill fades between opaque and translucent. The user's question fades in above the pill word by word in a sans-serif, and the assistant's answer fades in word by word at the top in a serif face, each sentence fading out as a whole. The script runs about 27 seconds and loops, with two questions and two answers about weekend plans.

How it's built

The background is a mesh gradient of Bezier patches with Catmull-Rom colour interpolation in Oklab space, tessellated on the CPU and drawn through Skia's vertices API. No shader is used. The patch algorithm is a JavaScript port of a published open-source mesh gradient painter, and the folds come from patches overlapping as control points move with the speech energy. The text is placed as whole sentences first and revealed word by word in place. Fonts load through expo-font, and a requestAnimationFrame loop drives the timeline.

Good for

  • A voice assistant or chat screen with an ambient background that reacts to audio level
  • Hero backgrounds that need soft colour fields without a video or shader
  • Hold-to-talk interfaces with staged listening and thinking states

Dependencies

@shopify/react-native-skiaexpo-fontreact-native

Tags

AI AssistantAudio VisualizerBlur TransitionFluid MotionGradientLight ModeLong PressSoft and CalmText AnimationVoice Assistant

Related