Tools· Design & Creative

    ShaderGradient

    React library for animated 3D gradient backgrounds built on WebGL, configurable through typed props or a copyable web URL, with a Figma plugin and Framer component for use outside React.

    generatingdesigningexecutableOpen Source

    Description

    Strengths

    Pure renderer since version 2
    `@shadergradient/react` now ships only `ShaderGradient` and `ShaderGradientCanvas`, without bundled state management, which keeps the core package lean.
    Control through props or a configuration URL
    A gradient can be configured entirely through React props or loaded from a query string copied directly from shadergradient.co/customize.
    Broad, typed property set
    Shape, animation, frequency, strength, position, rotation, camera angle, light type, and grain effect can each be set through individually named properties.
    Ready-made starters for common frameworks
    CodeSandbox templates cover Create React App, Next.js with and without the App Router, and Vite with React 19.
    Use outside of React
    A Figma plugin and a Framer component allow the same gradient to be used directly in design tools, without a React setup of your own.

    Assessment

    AI features

    • Declarative, typed configuration instead of custom shader code Because every gradient can be fully described through named, typed properties or a copyable configuration URL, an AI coding assistant can generate a matching configuration directly from a text description, without writing GLSL shader code itself.

    Suitable for

    • Hero and section backgrounds on marketing or portfolio sites that should show real 3D motion instead of a static image
    • React projects (Next.js, Vite, Create React App) that want a ready-made 3D gradient renderer instead of writing their own Three.js and shader code
    • Design teams that want to use the same gradient outside of React code, through the Figma plugin or the Framer component
    • Less suitable for Less suitable for standard landing pages without a specific need for motion, where a simple CSS gradient is the lighter and faster-loading result

    Limitations and notes

    • Next.js App Router trap For the App Router in Next.js 15, react-three-fiber version 9 together with React 19 is mandatory; other combinations are, according to the project, structurally incompatible.
    • No built-in state management Interactive controls or presets require bringing in `@shadergradient/ui` in addition, or managing your own state, since the core renderer does not provide that.
    • Two parallel package generations Alongside the current `@shadergradient/react`, a legacy v1 package called `shadergradient-old` still exists with a built-in store, which the project recommends using only for existing setups built on the old architecture.
    • Additional peer dependencies three, three-stdlib, and camera-controls, plus `@types/three` as a dev dependency, are added to the project, more weight than a pure CSS solution.
    • No native Webflow or Wix support According to the project's own roadmap, Webflow and Wix support as well as a framework-independent shader package are still only planned; the current focus is React plus the Figma and Framer bridge.

    Quick start

    1. Install the peer dependencies: `npm i @shadergradient/react @react-three/fiber three three-stdlib camera-controls`, plus `@types/three` as a dev dependency.
    2. For Next.js 15 with the App Router, specifically use react-three-fiber version 9 together with React 19; other combinations lead to conflicts.
    3. Add `ShaderGradientCanvas` and place a `ShaderGradient` component inside it with `control="props"` plus shape, color, and motion parameters.
    4. Alternatively, assemble a gradient visually at shadergradient.co/customize and take the generated URL as a `urlString` prop with `control="query"`.
    5. As a starting point, clone one of the official starters for Create React App, Next.js, or Vite from the CodeSandbox collection.

    Tips

    • For the Next.js 15 App Router, always explicitly pin react-three-fiber version 9 together with React 19, otherwise the build or runtime breaks.
    • For fast experimentation, use the web configurator at shadergradient.co/customize first and copy the finished URL, instead of blindly trying out parameters in code.
    • For pure design reviews outside of React, use the Figma plugin or the Framer component instead of setting up your own React project.
    • For custom controls or presets, add `@shadergradient/ui` in addition, instead of building a control layer from scratch.

    Access

    Last reviewed: · Pricing, plans and features are a snapshot in time. Check the provider's own page before deciding.

    In the workshop this becomes your method.

    Whoever sees this process run once wants the agent behind it next. We build that in the workshop From Process to Agent.

    View workshops

    Related resources

    Browse all resources

    Conversation, not pitch

    Understand first, then decide. We take time for an initial conversation, without sales pressure, without obligation.

    Schedule a call