Pro components
Interactive and textured components, installed with one command: npx gradients.sh add.
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.
- Border BeamA short beam of dithered light that travels around a card's border, spilling a little light inward.
- ContourHairline contour lines flowing over a slowly breathing terrain.
- Cursor GlowA dithered spotlight that follows the pointer across a field of unlit dots.
- Dither AvatarsOverlapping avatars in halftone dither. Hovering or focusing one resolves it into the photo and names it.
- Dither ChartAn area chart filled with ordered dither, hot along the line and sparse at the baseline, with a lit column under the active point.
- Dither GradientA dusk sky dithered in your exact palette.
- Dither ProgressA progress bar whose fill climbs the palette toward a hot leading edge that breaks into pixels. Indeterminate mode sweeps a dithered comet.
- Dither RevealAn image held in a few dithered palette tones that dissolves, cell by cell, into the real photo on hover, focus or scroll.
- EclipseA total eclipse with a diamond-ring bead and a slowly turning corona.
- Glass PanelFrosted glass over a live dither field: crisp pixels around the panel, melted colour through it, and a sheen that follows the pointer.
- Glow CommandA command menu whose active row is lit from its left edge by dithered light.
- Glow TabsUnderline tabs where dithered light rises from the active line. Full keyboard support.
- God RaysSoft shafts of light falling through haze from a high window.
- Light TrailsA long-exposure bundle of light trails sweeping across the frame.
- Liquid BlobA drop of liquid chrome slowly reshaping in a studio.
- OscilloscopeA Lissajous figure turning on an analogue oscilloscope.
- PrismPrism light falling across a wall, splitting into its spectrum.
- Reeded GlassSoft light refracted through a pane of fluted glass.
- RisographA two-ink risograph print with halftone screens and misregistration.
- Scroll StirA topographic map in hairline contours and dithered elevation. A fast scroll twists the terrain, then it settles.
- Spotlight GridOne dithered light under a grid of cards. It follows the pointer across the gaps and catches each card's hairline border.
21 components and 168 presets today. New Pro components and presets are added to the same license.
Setup
Buy Pro on the pricing page while signed in. It's linked to that account. Then, in your project folder, run:
npx gradients.sh add god-raysThe 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 initcreated. - Runs
shadcn initfirst 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.
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. 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, 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. |