Fx Canvas Kit
Shared canvas stage for building a custom ambient background effect.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this effect
What it's for
- Shared canvas stage for building a custom ambient background effect.
- Seeded random and simplex noise helpers for generative backgrounds.
- Canvas animation helper that pauses offscreen and respects reduced motion.
Includes
- Ambient canvas stage
- Dpr cap
- Resize handling
- Token color resolution
- Pause offscreen and hidden tab
- Static frame under reduced motion
- Pointer forwarding
- Seeded rng
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19 and Tailwind CSS 4 in Next.js (App Router), Vite, React Router or TanStack Start, installed with the agentic-ui or shadcn CLI
- Your theme tokens, in light and dark mode
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add fx-canvas-kitInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/fx-canvas-kitUsed in
A standalone component: drop it into any screen.
- Type
- Effect
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- npm packages
- None beyond your project's React and Next.js
- Registry dependencies
fx-foundationlib-motion- Files
8 files
- components/agentic-ui/fx-canvas-kit/index.ts
- components/agentic-ui/fx-canvas-kit/types.ts
- components/agentic-ui/fx-canvas-kit/props.ts
- components/agentic-ui/fx-canvas-kit/canvas-math.ts
- components/agentic-ui/fx-canvas-kit/rng.ts
- components/agentic-ui/fx-canvas-kit/noise.ts
- components/agentic-ui/fx-canvas-kit/use-stage.ts
- components/agentic-ui/fx-canvas-kit/ambient-canvas.tsx
Related components
Fx Aurora Background
Luminous aurora hero section on high-end SaaS landing page.
Details and live previewFx Background Patterns
Dot grid background with radial fade behind an AI chat landing hero.
Details and live previewFx Beam Border
Feature cards with an energetic travelling beam of light along the contour.
Details and live previewFx Beams Collision
Beams background where light beams fall and collide with the floor.
Details and live preview