# Presets and exports

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

Source: https://gradients.sh/docs/guides/presets

A preset is a finished set of gradient settings. The [preset library](https://gradients.sh/presets) 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](https://gradients.sh/presets/chrome), [Soft Fold](https://gradients.sh/presets/soft-fold), [Silk](https://gradients.sh/presets/silk), [Spectra](https://gradients.sh/presets/spectra), [Beams](https://gradients.sh/presets/beams), [Long Exposure](https://gradients.sh/presets/long-exposure), [First Light](https://gradients.sh/presets/first-light), [Polar Night](https://gradients.sh/presets/polar-night), [Nightside](https://gradients.sh/presets/nightside), [Umbra](https://gradients.sh/presets/umbra), [Halo](https://gradients.sh/presets/halo), [Orbit](https://gradients.sh/presets/orbit), [Glass Block](https://gradients.sh/presets/glass-block), [Bitlight](https://gradients.sh/presets/bitlight) and [Evergreen](https://gradients.sh/presets/evergreen).

For palettes by colour, with hex codes and the CSS to blend them, see the posts on [sunset](https://gradients.sh/blog/sunset-gradient-css), [metallic](https://gradients.sh/blog/metallic-gradient-css), [pastel](https://gradients.sh/blog/pastel-gradient-css), [blue](https://gradients.sh/blog/blue-gradient-css), [purple](https://gradients.sh/blog/purple-gradient-css), [green](https://gradients.sh/blog/green-gradient-css) and [red](https://gradients.sh/blog/red-gradient-css) gradients.

## Install a preset

1. Open a preset from the [preset library](https://gradients.sh/presets) and tune it.
2. Copy its install command and run it in your project:

   ```bash
   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:

   ```tsx
   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](https://gradients.sh/account).

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:

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

## Export a PNG or MP4

Open the gradient in the [editor](https://gradients.sh/create), click **Export**, then pick a format and size.

| Format | You get                                          |
| ------ | ------------------------------------------------ |
| PNG    | One still frame.                                 |
| MP4    | One 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](https://gradients.sh/pricing) 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](https://gradients.sh/blog/export-animated-gradient-mp4-loop).
