Skip to content
layered-backgrounds logo

Layered Backgrounds

layered-backgrounds

Layered background effects with gradient orbs, blur layers, noise textures, and depth. Use when creating hero sections, landing pages, or premium visual effects.

SKILL.md

Full skill instructions

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

function GradientBackground() {
  return (
    <div className="absolute inset-0 -z-10 overflow-hidden">
      {/​* Primary orb - top left */​}
      <div
        className="absolute -top-1/​4 -left-1/​4 w-[600px] h-[600px]
                   bg-primary/​30 rounded-full blur-3xl"
      />

      {/​* Accent orb - bottom right */​}
      <div
        className="absolute -bottom-1/​4 -right-1/​4 w-[500px] h-[500px]
                   bg-accent/​20 rounded-full blur-3xl"
      />

      {/​* Secondary orb - center */​}
      <div
        className="absolute top-1/​2 left-1/​2 -translate-x-1/​2 -translate-y-1/​2
                   w-[400px] h-[400px] bg-secondary/​15 rounded-full blur-2xl"
      />
    </​div>
  );
}

Animated Orbs

import { motion } from "framer-motion";

function AnimatedBackground() {
  return (
    <div className="absolute inset-0 -z-10 overflow-hidden">
      <motion.div
        className="absolute w-[600px] h-[600px] bg-primary/​30 rounded-full blur-3xl"
        animate={{
          x: [0, 100, 0],
          y: [0, -50, 0],
        }}
        transition={{
          duration: 20,
          repeat: Infinity,
          ease: "easeInOut",
        }}
        style={{ top: "-25%", left: "-15%" }}
      />

      <motion.div
        className="absolute w-[500px] h-[500px] bg-accent/​20 rounded-full blur-3xl"
        animate={{
          x: [0, -80, 0],
          y: [0, 60, 0],
        }}
        transition={{
          duration: 25,
          repeat: Infinity,
          ease: "easeInOut",
        }}
        style={{ bottom: "-20%", right: "-10%" }}
      />
    </​div>
  );
}

Noise/​Grain Texture

/​* CSS noise overlay */
function NoiseOverlay() {
  return (
    <div
      className="absolute inset-0 z-5 opacity-[0.03] pointer-events-none"
      style={{
        backgroundImage: `url("data:image/​svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/​2000/​svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/​filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/​svg%3E")`,
      }}
    />
  );
}

/​* Tailwind approach */
<div className="absolute inset-0 bg-[url('/​noise.png')] opacity-5 mix-blend-overlay" />

Mesh Gradient

function MeshBackground() {
  return (
    <div
      className="absolute inset-0 -z-10"
      style={{
        background: `
          radial-gradient(at 40% 20%, var(--color-primary) 0px, transparent 50%),
          radial-gradient(at 80% 0%, var(--color-accent) 0px, transparent 50%),
          radial-gradient(at 0% 50%, var(--color-secondary) 0px, transparent 50%),
          radial-gradient(at 80% 100%, var(--color-primary) 0px, transparent 50%),
          radial-gradient(at 0% 100%, var(--color-accent) 0px, transparent 50%)
        `,
        opacity: 0.3,
      }}
    />
  );
}

Complete Hero Background

function HeroBackground() {
  return (
    <>
      {/​* Base gradient */​}
      <div className="absolute inset-0 -z-20 bg-gradient-to-b from-background via-background to-muted" />

      {/​* Gradient orbs */​}
      <div className="absolute inset-0 -z-10 overflow-hidden">
        <div className="absolute -top-1/​4 -left-1/​4 w-[600px] h-[600px] bg-primary/​20 rounded-full blur-3xl" />
        <div className="absolute -bottom-1/​4 -right-1/​4 w-[500px] h-[500px] bg-accent/​15 rounded-full blur-3xl" />
      </​div>

      {/​* Grid pattern */​}
      <div
        className="absolute inset-0 -z-5 opacity-[0.02]"
        style={{
          backgroundImage: `linear-gradient(var(--color-foreground) 1px, transparent 1px),
                           linear-gradient(90deg, var(--color-foreground) 1px, transparent 1px)`,
          backgroundSize: "64px 64px",
        }}
      />

      {/​* Noise overlay */​}
      <div className="absolute inset-0 bg-[url('/​noise.png')] opacity-[0.02] mix-blend-overlay" />
    </>
  );
}

Dark Mode Backgrounds

/​* Light mode */
<div className="bg-gradient-to-b from-white via-gray-50 to-gray-100" />

/​* Dark mode */
<div className="dark:bg-gradient-to-b dark:from-gray-950 dark:via-gray-900 dark:to-gray-950" />

/​* Orbs in dark mode - more vibrant */
<div className="bg-primary/​20 dark:bg-primary/​30 blur-3xl" />

Performance Tips

/​* 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

More Marketing skills

copywriting logo
Marketing

copywriting

Marketing copy for homepages, landing pages, pricing pages, and other conversion-focused web pages.

53.3K 216.1K
View
flux-2-klein logo
Marketing

flux-2-klein

Fast image generation with Flux 2 Klein, optimized for sub-second iteration and multi-reference brand styling.

52 176.2K
View

Psychological principles and mental models for understanding customer behavior and influencing marketing decisions.

53.3K 153K
View

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
ai-seo logo
Marketing

ai-seo

Optimize content for discovery, citation, and visibility across AI search platforms and LLM assistants.

53.3K 136.7K
View
copy-editing logo
Marketing

copy-editing

Systematic improvement of existing marketing copy through seven focused editing passes.

53.3K 136.4K
View

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View
revops logo
Marketing

revops

Design and optimize systems connecting marketing, sales, and customer success into a unified revenue engine.

53.3K 104.9K
View

Applies 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 colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Convert websites into professional HyperFrames videos with guided storyboarding and brand-aligned composition.

57K 93.5K
View

Sales & marketing AI tools

KreadoAI logo
Sales & marketing

KreadoAI

Revolutionize Video Creation with AI-Generated Avatars and Voices

Paid
View
Followr logo
Sales & marketing

Followr

Social media on autopilot

Paid
View
Logodiffusion logo
Sales & marketing

Logodiffusion

Design custom logos instantly with AI.

Paid
View
I
Sales & marketing

Ideogram

Text-heavy marketing and design images

Freemium
View
Prompt Silo logo
Sales & marketing

Prompt Silo

Boost Your SEO with Content and SEO Silos

Free
View
Marketing Blocks logo
Sales & marketing

Marketing Blocks

Revolutionize Your Marketing with AI-Powered MarketingBlocks!

Paid
View
Scrip AI logo
Sales & marketing

Scrip AI

10X faster & free AI content creation for 100+ use cases

Free
View
T
Sales & marketing

Tribescaler

Tribescaler | Make Your Tweets Go Viral

Paid
View