Generator Gradient Mesh
A marketing team builds a hero backdrop from the brand's chart colours and ships it as one CSS class.
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 feature
What it's for
- A marketing team builds a hero backdrop from the brand's chart colours and ships it as one CSS class..
- A product adds a soft mesh behind an empty state or onboarding card that follows light and dark themes..
- A designer exports a 1200 × 630 WebP poster of the same mesh for social cards..
Includes
- Gradient mesh background
- Layered radial gradients
- Colour points editor
- Draggable point markers
- Theme or custom colours
- Softness control
- Grain overlay
- Slow drift animation
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the 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 add generator-gradient-meshnpx shadcn@4.17.0 add @agentic-ui/generator-gradient-meshUsed in
A standalone component: drop it into any screen.
- Type
- Feature
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Motion
- Animated, with a reduced-motion fallback
- npm packages
- None beyond your project's React and Next.js
- Registry dependencies
fx-foundationlib-generator-foundationlib-motion- Files
8 files
- components/agentic-ui/generator-gradient-mesh/gradient-mesh.css
- components/agentic-ui/generator-gradient-mesh/gradient-mesh-generator.tsx
- components/agentic-ui/generator-gradient-mesh/poster.ts
- components/agentic-ui/generator-gradient-mesh/mesh-model.ts
- components/agentic-ui/generator-gradient-mesh/mesh-layers.ts
- components/agentic-ui/generator-gradient-mesh/mesh-background.tsx
- components/agentic-ui/generator-gradient-mesh/generate.ts
- components/agentic-ui/generator-gradient-mesh/index.ts
Related components
Generator Easing Spring Editor
A design-system team tunes the brand ease and spring and exports them as a tokens.json override for the Stripe personality.
Details and live previewGenerator Foundation Shell
A background pattern generator that exports CSS, Tailwind classes, a React component and a shadcn registry item.
Details and live previewGenerator Glass
A product team tunes a frosted navigation bar over a hero image and ships it as one CSS class with a solid fallback.
Details and live previewGenerator Noise Grain
A marketing team adds fine film grain over a gradient hero to hide banding and pastes the Tailwind class into the section.
Details and live preview