Repository navigation
feat(fx): GradientFx, animated grain gradient background (HOLD 3.1) - #555
Merged
Merged
Conversation
A WebGL field of soft colour bands that drift through each other under film grain, with a CSS fallback (blurred blobs and SVG grain) for the server and browsers without WebGL. Sleeps off screen, holds a still frame under reduced motion, capped at 30 fps. Props: colors (a ramp, tokens or CSS), speed, grain, blur, angle, seed. internal/shaderStage.ts is the shared WebGL setup for shader effects. Proof page at apps/dev /gradient-fx-proof. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtzJGRzqpqejDC4ZW8N
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtzJGRzqpqejDC4ZW8N
lorant-one
changed the base branch from
feat/3-0-breaking-cleanup
to
preview
November 23, 2026 20:50
27 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Lorant · project thread
HOLD for 3.1. Targets the 3.0 branch like core#552 (mascot mediums) because fx only lives there so far. Don't merge before 3.0.0 ships.
What
<GradientFx>in@once-ui-system/fx: soft colour bands that drift slowly through each other under film grain, the "blurred mesh + grain" hero look. Put it behind content; children sit on top.colors--varsor CSS colours. The first is the ground. Default: page background → brand → accent from the theme. Re-read on theme change.speedSpeed(slow/medium/fastor a multiplier)grainblurangleseedreducedMotion"auto"/true/false, as the other effectsHow
useReducedMotion.internal/shaderStage.ts: the WebGL counterpart ofcanvasStage.ts. It handles compile, the full-screen triangle, resize, the fps cap and visibility. It's meant as the shared setup for later shader effects, including a WebGL mascot medium if core#552 ever needs one; those mediums are SVG-filter based today.Screens
Proof page:
apps/dev→/gradient-fx-proof. Screens and a 7 s clip are in the project files undergradient-fx/: dark, light, CSS fallback (WebGL off) and the hero clip.Checks
vitest runin fx: 243 pass, including 7 new GradientFx tests. They cover the 30 fps cap, no loop off screen, the single still frame under reduced motion, unmount cleanup, the CSS fallback without WebGL and deterministic SSR markup.tsc --noEmitis clean, Biome is clean on the new files, and the fx lint gate stays at baseline.once-ui-validate-ai-codeis clean on the component and the proof page.Follow-ups (not here)
Generated by Claude Code