Get started
Install shaders with the shadcn CLI or copy the source into your project. Each item is a React component built on Paper Shaders and styled with Tailwind.
01 — Set up shadcn
Already using shadcn? You can skip this step.
npx shadcn@latest init02 — Add the registry
Register the @shaderscn namespace in your components.json. You only need to do this once per project.
npx shadcn@latest registry add @shaderscn=https://shaderscn.com/r/{name}.json{
"registries": {
"@shaderscn": "https://shaderscn.com/r/{name}.json"
}
}03 — Add a shader
Every shader has its own install command. Pick one from the sidebar to copy it, or swap the name below. The CLI also installs @paper-design/shaders-react and any shadcn components it uses.
npx shadcn@latest add @shaderscn/god-rays-heroSkipping the namespace? Install directly from the URL instead.
npx shadcn@latest add https://shaderscn.com/r/god-rays-hero.json04 — Use it
The component lives in your codebase, so every detail is yours to change.
import { GodRaysHero } from "@/components/god-rays-hero"
export default function Page() {
return <GodRaysHero title="Light up your next launch" />
}05 — Customize
Content such as titles, descriptions and actions is passed as props. Any other props, including className, are forwarded to the root element. The shader itself is configured inside the component: edit its colors, speed and shape directly in the source. See the Paper Shaders playground for every parameter.
06 — Copy and paste
Prefer to skip the CLI? Every shader page has a Manual tab with the dependencies to install and the complete source to paste.