Generator Gradient Builder
Gradient generator for a hero background with stacked linear, radial and conic layers that exports CSS.
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
- Gradient generator for a hero background with stacked linear, radial and conic layers that exports CSS.
- Build a multi-stop gradient with OKLCH colours and copy a Tailwind v4 @theme background-image token.
- CSS gradient builder tool with angle, position and colour stops using my theme tokens.
Includes
- Stacked gradient layers
- Linear radial conic
- Colour stop editor
- Oklch colour stops
- Oklch interpolation
- Angle and position controls
- Theme token colours
- Layer reorder
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 add generator-gradient-buildernpx shadcn@4.17.0 add @agentic-ui/generator-gradient-builderUsed 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.
- npm packages
- None beyond your project's React and Next.js
- Registry dependencies
lib-generator-foundation- Files
11 files
- components/agentic-ui/generator-gradient-builder/generator-gradient-builder/generator-gradient-builder.tsx
- components/agentic-ui/generator-gradient-builder/generator-gradient-builder/gradient-model.ts
- components/agentic-ui/generator-gradient-builder/shared/util.ts
- components/agentic-ui/generator-gradient-builder/shared/oklch.ts
- components/agentic-ui/generator-gradient-builder/generator-gradient-builder/gradient-css.ts
- components/agentic-ui/generator-gradient-builder/generator-gradient-builder/gradient-presets.ts
- components/agentic-ui/generator-gradient-builder/generator-gradient-builder/gradient-edit.ts
- components/agentic-ui/generator-gradient-builder/generator-gradient-builder/gradient-controls.tsx
- components/agentic-ui/generator-gradient-builder/shared/viewport-toolbar.tsx
- components/agentic-ui/generator-gradient-builder/shared/name-field.tsx
- components/agentic-ui/generator-gradient-builder/index.ts
Related components
Generator Border Radius Blob
CSS blob shape generator with draggable border-radius handles and an eight-value border-radius output.
Details and live previewGenerator Clip Path
Clip-path generator with draggable points for polygon, circle, ellipse and inset shapes.
Details and live previewGenerator Css Loader
CSS loader generator with ring, dots, bars, pulse and orbit variants that exports CSS and a React component.
Details and live previewGenerator 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 preview