# Pro components

Interactive and textured components, installed with one command: npx gradients.sh add.

Source: https://gradients.sh/docs/pro

Pro components react to the pointer and to scroll, or draw textures the free set doesn't, such as glass, dither and light shafts. They install as source code, like the free ones. Plans are on the [pricing page](https://gradients.sh/pricing).

- [Border Beam](https://gradients.sh/docs/pro/border-beam.md) (`@gradients-pro/border-beam`): A short beam of dithered light that travels around a card's border, spilling a little light inward.
- [Contour](https://gradients.sh/docs/pro/contour.md) (`@gradients-pro/contour`): Hairline contour lines flowing over a slowly breathing terrain.
- [Cursor Glow](https://gradients.sh/docs/pro/cursor-glow.md) (`@gradients-pro/cursor-glow`): A dithered spotlight that follows the pointer across a field of unlit dots.
- [Dither Avatars](https://gradients.sh/docs/pro/dither-avatars.md) (`@gradients-pro/dither-avatars`): Overlapping avatars in halftone dither. Hovering or focusing one resolves it into the photo and names it.
- [Dither Chart](https://gradients.sh/docs/pro/dither-chart.md) (`@gradients-pro/dither-chart`): An area chart filled with ordered dither, hot along the line and sparse at the baseline, with a lit column under the active point.
- [Dither Gradient](https://gradients.sh/docs/pro/dither-gradient.md) (`@gradients-pro/dither-gradient`): A dusk sky dithered in your exact palette.
- [Dither Progress](https://gradients.sh/docs/pro/dither-progress.md) (`@gradients-pro/dither-progress`): A progress bar whose fill climbs the palette toward a hot leading edge that breaks into pixels. Indeterminate mode sweeps a dithered comet.
- [Dither Reveal](https://gradients.sh/docs/pro/dither-reveal.md) (`@gradients-pro/dither-reveal`): An image held in a few dithered palette tones that dissolves, cell by cell, into the real photo on hover, focus or scroll.
- [Eclipse](https://gradients.sh/docs/pro/eclipse.md) (`@gradients-pro/eclipse`): A total eclipse with a diamond-ring bead and a slowly turning corona.
- [Glass Panel](https://gradients.sh/docs/pro/glass-panel.md) (`@gradients-pro/glass-panel`): Frosted glass over a live dither field: crisp pixels around the panel, melted colour through it, and a sheen that follows the pointer.
- [Glow Command](https://gradients.sh/docs/pro/glow-command.md) (`@gradients-pro/glow-command`): A command menu whose active row is lit from its left edge by dithered light.
- [Glow Tabs](https://gradients.sh/docs/pro/glow-tabs.md) (`@gradients-pro/glow-tabs`): Underline tabs where dithered light rises from the active line. Full keyboard support.
- [God Rays](https://gradients.sh/docs/pro/god-rays.md) (`@gradients-pro/god-rays`): Soft shafts of light falling through haze from a high window.
- [Light Trails](https://gradients.sh/docs/pro/light-trails.md) (`@gradients-pro/light-trails`): A long-exposure bundle of light trails sweeping across the frame.
- [Liquid Blob](https://gradients.sh/docs/pro/liquid-blob.md) (`@gradients-pro/liquid-blob`): A drop of liquid chrome slowly reshaping in a studio.
- [Oscilloscope](https://gradients.sh/docs/pro/oscilloscope.md) (`@gradients-pro/oscilloscope`): A Lissajous figure turning on an analogue oscilloscope.
- [Prism](https://gradients.sh/docs/pro/prism.md) (`@gradients-pro/prism`): Prism light falling across a wall, splitting into its spectrum.
- [Reeded Glass](https://gradients.sh/docs/pro/reeded-glass.md) (`@gradients-pro/reeded-glass`): Soft light refracted through a pane of fluted glass.
- [Risograph](https://gradients.sh/docs/pro/risograph.md) (`@gradients-pro/risograph`): A two-ink risograph print with halftone screens and misregistration.
- [Scroll Stir](https://gradients.sh/docs/pro/scroll-stir.md) (`@gradients-pro/scroll-stir`): A topographic map in hairline contours and dithered elevation. A fast scroll twists the terrain, then it settles.
- [Spotlight Grid](https://gradients.sh/docs/pro/spotlight-grid.md) (`@gradients-pro/spotlight-grid`): One dithered light under a grid of cards. It follows the pointer across the gaps and catches each card's hairline border.

## Setup

Buy Pro on the [pricing page](https://gradients.sh/pricing) while signed in. It's linked to that account. Then, in your project folder, run:

```bash
npx gradients.sh add god-rays
```

The first time, your browser opens. Check the code matches, then press **Connect**. The command then installs the component. It also:

- Finds your project, even if you run it one folder up from the app `shadcn init` created.
- Runs `shadcn init` first if the project has no shadcn setup yet.
- Adds the gradients.sh registries to `components.json`.

The login is for your computer, not one project, so every other project installs without asking again. It lives in `~/.config/gradients.sh/`, readable only by you, and never in your project folder, so there is nothing to commit or gitignore.

Using Claude Code, Codex or Cursor? Your agent runs the same command and shows you the link to approve. See [AI agents](https://gradients.sh/docs/guides/agents.md#pro).

## Managing access

| Command                   | What it does                                     |
| ------------------------- | ------------------------------------------------ |
| `npx gradients.sh whoami` | Shows the account this computer is logged in to. |
| `npx gradients.sh logout` | Logs out and revokes this computer's access.     |
| `npx gradients.sh login`  | Logs in without installing anything.             |

Each computer shows under CLI access on [your account page](https://gradients.sh/account#cli). Disconnect one there and its installs stop. A login unused for 90 days stops working; the next install asks you to approve again.

Prefer the plain shadcn CLI? Run `npx gradients.sh login --project` in your project. It saves your access to `.env.local` as `GRADIENTS_TOKEN` (and makes sure git ignores that file) and adds the registries, so `npx shadcn@latest add @gradients-pro/god-rays` works there. Always install by name that way: shadcn only sends your access for names in a configured registry. In CI, set `GRADIENTS_TOKEN` in the environment.

## If the install fails

| Error                                                   | Cause                                                                                                                         |
| ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| "has no Pro plan"                                       | The account you logged in with has no Pro. Check [your plan](https://gradients.sh/account), or `npx gradients.sh logout` and log in with another. |
| "Registry requires the following environment variables" | You ran `npx shadcn add @gradients-pro/...` directly. Use `npx gradients.sh add <name>` instead.                              |
| 401                                                     | No token was sent, usually because you installed by URL instead of name.                                                      |
| 403                                                     | The project or computer was disconnected, or the account no longer has Pro. Run the install again to log in.                  |
