Domain-Warped Diffuse Gradient Shader Cards
Five tall rounded cards sit in a horizontal snap rail, each with a continuously animating shader background under a serif title. Four are single-pass noise shaders and one blurs metaball blobs over several passes. WebGL on web, expo-gl on React Native.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "domain-warped-diffuse-gradient-shader-cards" to this project. The full source is attached at the end of this prompt. Put the files under components/domain-warped-diffuse-gradient-shader-cards/, 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 ===
Details
- Platforms
- iOS, Android
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 3 Sep 2026
- License
- Unlimited commercial projects
- Original design
- X
Are you the designer? Ask us to change or remove this.
Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs
What it does
A horizontal row of five tall, dark schedule cards for focus modes such as deep work, family dinner, wind down, sleep and calm morning. Each card has a title, a time range, a three-dot menu and an optional resume chip. The card backgrounds are slowly moving diffuse color fields: a blue-gray silk with glowing veins, a magenta and violet vertical glow, a deep indigo wisp, a dawn blend, and a set of blurred glowing blobs with a fine grain. The row scrolls and snaps card by card.
How it's built
Each card owns a GLView from expo-gl running raw WebGL fragment shaders on a requestAnimationFrame loop. Most backgrounds are a single pass that warps coordinates with fractal noise, then maps the result through a color ramp with a vignette. The blob card is a multi-pass pipeline: a metaball shader renders to a texture, a small blur is repeated, and a final pass adds a noise-driven warp, a saturation boost and per-frame dither. Cards are laid out in a FlatList with snapping.
Good for
- Schedule, focus-mode or routine cards that need distinct ambient backgrounds
- Hero or onboarding backgrounds where a static gradient looks flat
- Playlist or mood tiles with a living color field behind text
Dependencies
expo-glreact-native