---
name: layered-backgrounds
description: Layered background effects with gradient orbs, blur layers, noise textures, and depth. Use when creating hero sections, landing pages, or premium visual effects.
allowed-tools: Read, Write, Edit, Glob, Grep
user-invocable: true
---
# Layered Backgrounds
Premium background effects inspired by DesignCode UI.
## Agent Workflow (MANDATORY)
Before implementation:
1. **fuse-ai-pilot:explore-codebase** - Check existing background patterns
2. **fuse-ai-pilot:research-expert** - CSS filter and blend modes
After: Run **fuse-ai-pilot:sniper** for validation.
## Layer Stack
```
┌─────────────────────────────────────┐
│ Content (z-10) │
├─────────────────────────────────────┤
│ Noise/Grain overlay (z-5) │
├─────────────────────────────────────┤
│ Glass surface (z-0) │
├─────────────────────────────────────┤
│ Gradient orbs (z-[-1]) │
├─────────────────────────────────────┤
│ Base gradient (z-[-2]) │
└─────────────────────────────────────┘
```
## Gradient Orbs
```tsx
function GradientBackground() {
return (
{/* Primary orb - top left */}
{/* Accent orb - bottom right */}
{/* Secondary orb - center */}
);
}
```
## Animated Orbs
```tsx
import { motion } from "framer-motion";
function AnimatedBackground() {
return (
);
}
```
## Noise/Grain Texture
```tsx
/* CSS noise overlay */
function NoiseOverlay() {
return (
);
}
/* Tailwind approach */
```
## Mesh Gradient
```tsx
function MeshBackground() {
return (
);
}
```
## Complete Hero Background
```tsx
function HeroBackground() {
return (
<>
{/* Base gradient */}
{/* Gradient orbs */}
{/* Grid pattern */}
{/* Noise overlay */}
>
);
}
```
## Dark Mode Backgrounds
```tsx
/* Light mode */
/* Dark mode */
/* Orbs in dark mode - more vibrant */
```
## Performance Tips
```tsx
/* Use will-change for animated orbs */
className="will-change-transform"
/* Reduce blur on mobile */
className="blur-2xl md:blur-3xl"
/* Use CSS containment */
style={{ contain: "paint" }}
```
## Validation
```
[ ] Multiple layers with z-index separation
[ ] Gradient orbs with blur (blur-2xl or blur-3xl)
[ ] Colors from CSS variables
[ ] Overflow hidden on container
[ ] Mobile performance considered
[ ] Dark mode variant defined
```
## References
- `../../references/gradients-guide.md` - Gradient types
- `../../references/theme-presets.md` - Visual styles
- `../../skills/glassmorphism-advanced/SKILL.md` - Glass effects