Presets and exports

Start from a preset, tune it, then install it as a component or export it as a PNG or MP4.

A preset is a finished set of gradient settings. The preset library groups them into collections, and any preset opens in the studio for tuning. Anyone can open and tune a preset. You need a free account to copy its install command or export it. Pro presets need a Pro account.

The collections are Chrome, Soft Fold, Silk, Spectra, Beams, Long Exposure, First Light, Polar Night, Nightside, Umbra, Halo, Orbit, Glass Block, Bitlight and Evergreen.

For palettes by colour, with hex codes and the CSS to blend them, see the posts on sunset, metallic, pastel, blue, purple, green and red gradients.

Install a preset

  1. Open a preset from the preset library and tune it.

  2. Copy its install command and run it in your project:

    npx shadcn@latest add https://gradients.sh/r/c/<code>.json
  3. Import the component it adds. The studio shows the exact import for yours:

    import { BlueHour } from "@/components/gradients/blue-hour";
    
    <BlueHour className="h-[560px]" />;

The command adds components/gradients/<name>.tsx, a small wrapper with your settings written in as props, plus the component and engine it needs. Edit the values there, or tune again and reinstall.

Saved gradients

A copied command is a fixed snapshot: each change gets a new link. Save a gradient instead and it keeps one command, https://gradients.sh/r/s/<id>.json, that installs whatever you saved last. Your saves are on your account page.

Anyone can run a command you share. Gradients built on a Pro component need the installer's own Pro account. Install those with the gradients.sh CLI, which logs in and sends your access:

npx gradients.sh add https://gradients.sh/r/s/<id>.json

Export a PNG or MP4

Open the gradient in the editor, click Export, then pick a format and size.

FormatYou get
PNGOne still frame.
MP4One full loop that repeats with no visible seam.

Free exports allow PNG up to 1920px and 1080p H.264 MP4 at up to 60 fps for up to 10 seconds. Pro allows PNG up to 16K, MP4 up to 6K or 4K60, and 1440p or 1080p at 120 fps where supported. Pick Size, Frame rate and Codec separately; the menu estimates the file size. AV1 and HEVC are available where supported. No export has a watermark. The pricing page lists the limits.

To turn an MP4 into a background for a site, a slide or a video edit, see Export an animated gradient as a seamless MP4 loop.