shadergradient
Add an animated 3D shader gradient background to a React, Next.js, Vue or Nuxt site with ShaderGradient (@shadergradient/react, @shadergradient/vue). Use when…
от siddu1004★ 43 звезды на GitHub
Установить shadergradient в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
ShaderGradient
ShaderGradient renders a customizable moving 3D gradient with three.js. The README and the Vue guide are bundled in reference/: reference/readme.md has install, usage and the full prop list, and reference/vue.md covers Vue 3 and Nuxt.
React
npm i @shadergradient/react @react-three/fiber three three-stdlib camera-controls
npm i -D @types/three
import { ShaderGradientCanvas, ShaderGradient } from '@shadergradient/react'
<ShaderGradientCanvas style={{ position: 'absolute', inset: 0 }} pixelDensity={1.5} fov={45}>
<ShaderGradient cDistance={32} cPolarAngle={125} />
</ShaderGradientCanvas>
To reuse a design made at shadergradient.co/customize, pass the copied address as urlString with control='query'.
Check before you write code
- Versions. The right
@react-three/fiberdepends on the app: Next.js 15 App Router needs React 19 with R3F 9, while Next 14, Next 15 Pages and Vite work with matching 8.x or 9.x. The compatibility table is inreference/readme.md. - Next.js. The gradient is a client-side canvas; put it in a client component and give it a fallback if the page renders on the server.
- Packages.
@shadergradient/reactships only the renderer. It has no store or controls: drive it with props, state of your own or the query string.@shadergradient/uiis not on npm. - Props.
typeisplane,sphereorwaterPlane. The colours arecolor1,color2,color3. Motion isanimate,uSpeed,uStrength,uDensity,uFrequency,uAmplitude. The camera iscAzimuthAngle,cPolarAngle,cDistance,cameraZoom. The full list is in the README. - Cost. A full-screen WebGL canvas uses the GPU all the time. Lower
pixelDensity, turnanimateoff when it does not need to move, and use the canvas's lazy-load options for a gradient below the fold. - Reduced motion. Turn animation off for visitors who ask for it with
prefers-reduced-motion.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- reference/readme.md
- reference/vue.md
FAQ
Что делает скилл shadergradient?
Add an animated 3D shader gradient background to a React, Next.js, Vue or Nuxt site with ShaderGradient (@shadergradient/react, @shadergradient/vue). Use when the user wants a moving gradient, an animated plane, sphere or water-plane backdrop, a gradient configured from a shadergradient.co URL, or help with its props such as color1, uSpeed, cDistance and grain. Also for Figma and Framer gradient components.
Как установить скилл shadergradient?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл shadergradient запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…