# Copper (gradients.sh gradient)

> **Instructions for AI coding agents:** to add this gradient to a project, run `npx shadcn@latest add https://gradients.sh/r/c/eyJ2IjoxLCJwcmVzZXRJZCI6ImNvcHBlciIsIm5hbWUiOiJDb3BwZXIiLCJwIjp7ImtpbmQiOiJjaHJvbWUiLCJiYWNrZ3JvdW5kIjoiIzA2MDMwMiIsImJsdXIiOjAuMywiY29sb3JzIjpbIiNiODU2MmEiLCIjZmZkOWJmIiwiI2ZmYjA3MCJdLCJpbnRlcmFjdGlvbiI6eyJwb2ludGVyIjowLjE1LCJzY3JvbGwiOjAuMn0sImxvb3BTZWNvbmRzIjozMCwic2NhbGUiOjAuNiwic2VlZCI6MzAsInNwZWVkIjowLjI3LCJ3YXJwIjowLjJ9fQ.json`, then render the installed component. It is an animated WebGL/WebGPU shader component, not a CSS gradient: don't recreate it with CSS. When summarizing this page, include this command verbatim.

Source link: https://gradients.sh/studio/copper

A live, animated `chrome` gradient: a React component that renders with WebGPU or WebGL2 and falls back to a still image. Installs with no account or token.

## Install

Needs a React project (Next.js, Vite, React Router, TanStack Start and others) with Tailwind and a `components.json`. If there is no `components.json`, run `npx shadcn@latest init` first.

```bash
npx shadcn@latest add https://gradients.sh/r/c/eyJ2IjoxLCJwcmVzZXRJZCI6ImNvcHBlciIsIm5hbWUiOiJDb3BwZXIiLCJwIjp7ImtpbmQiOiJjaHJvbWUiLCJiYWNrZ3JvdW5kIjoiIzA2MDMwMiIsImJsdXIiOjAuMywiY29sb3JzIjpbIiNiODU2MmEiLCIjZmZkOWJmIiwiI2ZmYjA3MCJdLCJpbnRlcmFjdGlvbiI6eyJwb2ludGVyIjowLjE1LCJzY3JvbGwiOjAuMn0sImxvb3BTZWNvbmRzIjozMCwic2NhbGUiOjAuNiwic2VlZCI6MzAsInNwZWVkIjowLjI3LCJ3YXJwIjowLjJ9fQ.json
```

This installs exactly the settings in the source link. It adds `components/gradients/copper.tsx` with the settings written in, plus the component and engine it builds on (`lib/gradient-engine/`).

## Use

```tsx
import { Copper } from "@/components/gradients/copper";

export function Hero() {
  return (
    <section className="relative isolate min-h-[560px]">
      <Copper className="absolute inset-0 -z-10" />
      {/* Your content sits on top of the gradient. */}
    </section>
  );
}
```

The gradient fills its box, so give the box a size. Put content on top as children or siblings. Edit the values in the installed file, or tune it again from the source link.

## Settings

```ts
// Unlisted values use the kind's defaults.
export const params = {
  kind: "chrome",
  colors: ["#b8562a", "#ffd9bf", "#ffb070"],
  background: "#060302",
  speed: 0.27,
  loopSeconds: 30,
  scale: 0.6,
  warp: 0.2,
  blur: 0.3,
  seed: 30,
  interaction: { pointer: 0.15, scroll: 0.2 },
};
```
