Agent skill UI design
Vantajs
Shape a web interface around a coherent visual direction.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add https://github.com/MengTo/Skills/tree/main/agent-skills/web-design/vantajs --skill vantajs --agent claude-code --yesCheck this file in your project.claude/skills/vantajs/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/MengTo/Skills/tree/main/agent-skills/web-design/vantajs --skill vantajsSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use a hero with real layout dimensions, a contrast-safe static background, and client-side access to WebGL. The browser example was exercised with Vanta 0.5.24 and Three.js r134 (0.134.0).
View operation manualWhat this skill helps with
- Shape a web interface around a coherent visual direction.
Good for
- Visual direction
- Publisher
- Meng To
- Runtime
- vanta@0.5.24 · three@0.134.0 · WebGL
- Bundled example
- The bundled page is a Canvas 2D visualization. The documented Waves example loads Three.js and the Vanta effect bundle separately.
- Skill name
vantajs- Repository
MengTo/Skills
Common pitfall
Avoid this prompt
Initialize a second effect whenever the accent changes and leave each canvas mounted.
Each effect owns a renderer and listeners. Repeated initialization can stack canvases and consume GPU resources.
Use these steps
- Inspect the demo and target
- Apply the runtime recipe
- Verify the browser behavior
Project walkthrough
Add a single Vanta Waves background to an original page and tie it to the section’s lifecycle.
Add a single Vanta Waves background to an original page and tie it to the section’s lifecycle.
Inspect the demo and target
The bundled page is a Canvas 2D visualization. The documented Waves example loads Three.js and the Vanta effect bundle separately.
Prompt · Step 1Use Vanta.js on [my tide-table hero]. Inspect the installed demo/index.html for visual placement and the Minimal waves background recipe in SKILL.md for the real runtime. Confirm the hero’s initial width and height and identify the foreground link. Keep the fallback background in CSS and reuse the project’s dependency manager.Apply the runtime recipe
Add a single Vanta Waves background to an original page and tie it to the section’s lifecycle.
Prompt · Step 2For the standalone repro, load Three.js r134 before the Vanta 0.5.24 Waves browser bundle. Mount VANTA.WAVES once on the sized hero with color 0x153c55, shininess 32, waveHeight 12 and zoom 0.9. Store the effect to call setOptions({ color }) on theme changes and resize() after container layout changes. Call destroy() when the section unmounts. Skip initialization for reduced motion and show the CSS fallback when WebGL or dependency loading fails.Verify the browser behavior
The same Waves instance changes color and tracks its container height.
- The same Waves instance changes color and tracks its container height.
- Destroy removes its canvas and remount creates exactly one canvas.
Prompt · Step 3Change the accent and shorten the hero without changing the viewport, then verify the existing effect updates color and bounds. Activate the foreground link. Navigate away and back, checking that the old canvas disappears and exactly one new canvas appears. Reload in reduced motion and confirm the fallback and link are both available.
Implementation lookup
Find the actual behavior in the recipe and check it in your browser.
Tune the documented controlsInputs
- Command or reference
VANTA.WAVES · color · shininess · waveHeight · zoom · setOptions · resize · destroy- Examples
- The same Waves instance changes color and tracks its container height.
Check the fallback and lifecycleVerify
- Command or reference
Reload and recheck- Examples
- Destroy removes its canvas and remount creates exactly one canvas.
FAQ
Which Three.js version should I use here?
The installed Waves example and official Vanta examples use r134. The isolated workflow pins that pairing. If the host already uses another Three.js version, check that combination before reusing its renderer dependency.
What does the installed demo include?
The bundled page is a Canvas 2D visualization. The documented Waves example loads Three.js and the Vanta effect bundle separately.