LayerwiseLayerwise
  • Features
  • Pricing
  • Templates
  • Docs
DownloadDownload
FeaturesPricingTemplatesDocsAI Website BuilderVibe CodingPersonal Software
DownloadDownload
  1. Glossary
  2. /
  3. Visual styles

Mesh gradient

Also called gradient mesh or freeform gradient

A smooth, multicolor gradient where several colors blend outward from different points, like paint mixing, often used for hero backgrounds.

// Four radial layers, each fading out from its own point, over a deep base.
const MESH =
  'bg-[#1e1b4b] bg-[radial-gradient(at_20%_25%,#8b5cf6_0,transparent_55%),radial-gradient(at_80%_20%,#ec4899_0,transparent_50%),radial-gradient(at_75%_80%,#f59e0b_0,transparent_50%),radial-gradient(at_15%_85%,#14b8a6_0,transparent_55%)]';

export function MeshHero() {
  return (
    <section
      className={`grid min-h-[480px] place-items-center px-6 text-center ${MESH}`}
    >
      <div>
        <h1 className='text-5xl font-semibold tracking-tight text-white'>
          Design in color
        </h1>
        <p className='mt-4 text-lg text-white/80'>
          Palettes, gradients, and themes for every project.
        </p>
      </div>
    </section>
  );
}
Create a hero background with a mesh gradient: a #1e1b4b base with four radial-gradient layers in violet, pink, amber, and teal, each about 60% wide and fading to transparent, placed near different corners. Drift each layer slowly with a 20-second transform animation, add a subtle grain overlay, and keep it still when prefers-reduced-motion is set.

Paste into Layerwise or any AI coding tool.

What is Mesh gradient?

A linear gradient blends colors along one line. A mesh gradient blends several colors placed at different points across a surface, so they flow into each other in every direction. Design tools build them from a grid of points; on the web, the usual approach stacks several radial-gradient() layers, each centered on its own point and fading to transparent.

Mesh gradients make warm, organic backgrounds for hero sections, app icons, wallpapers, and cards. Moving the color points slowly brings the background to life without pulling attention from the content.

Pick colors that sit near each other on the color wheel, or blend in a neutral, to avoid muddy gray where opposite colors meet. A little grain on top hides banding. If you animate it, move layers with transform instead of repainting gradients every frame, and keep it still for people who prefer reduced motion.

Often confused with

Animated gradient
An animated gradient is any gradient that moves or shifts over time. A mesh gradient is a blend of colors from several points, which may or may not move.
Aurora background
An aurora uses a few separate blurred ribbons drifting over a plain background. A mesh gradient blends color across the whole surface.

Related terms

All terms

Aurora background

A background of soft, blurred color ribbons that drift slowly, like the northern lights, used behind hero sections and landing pages.

Animated gradient

A color gradient that slowly shifts across a surface on a loop, often used behind a hero or call to action to add warmth and motion.

Grain texture

A fine layer of random noise placed over a gradient or image to add a tactile, printed feel and hide color banding.

Hero section

The large first section at the top of a landing page, with a headline, a short subhead, a call to action, and a visual.

Build it with Layerwise

Describe your app, watch it run in a live preview, and publish it with a database, storage, and sign-in built in.

DownloadDownloadRead the docs
LayerwiseLayerwise

Build full-stack web apps in minutes with AI.

Product

  • Features
  • Pricing
  • Download
  • Templates

Solutions

  • AI Website Builder
  • Vibe Coding
  • Personal Software

Resources

  • Documentation
  • Changelog
  • Blog
  • Vibe Coding Glossary
  • llms.txt
  • llms-full.txt

Company

  • About
  • Contact

Legal

  • Privacy
  • Analytics Privacy
  • Terms
  • Security
  • Abuse

© 2026 Layerwise. All rights reserved.

Entrances & exits

  • Fade in
  • Slide in
  • Scale in
  • Pop in
  • Blur in
  • Reveal animation
  • Enter and exit animations

Timing & sequencing

  • Duration
  • Delay
  • Keyframes
  • Tweening
  • Stagger
  • Orchestration
  • Fill mode
  • Stepped animation
  • Looping animation
  • Yoyo animation

Easing

  • Easing
  • Linear easing
  • Ease-in
  • Ease-out
  • Ease-in-out
  • Cubic-bezier
  • Asymmetric easing
  • Overshoot easing

Springs & physics

  • Spring animation
  • Stiffness
  • Damping
  • Mass
  • Bounce
  • Velocity
  • Momentum
  • Interruptible animation
  • Rubber-banding

Transforms

  • Translate
  • Scale
  • Rotate
  • Skew
  • 3D flip
  • Perspective
  • Transform origin
  • Origin-aware animation

State transitions

  • Crossfade
  • Morph
  • Shared element transition
  • Layout animation
  • Height auto animation
  • Direction-aware transition
  • Continuity transition
  • Page transition
  • View Transitions API

Scroll effects

  • Scroll reveal
  • Scroll-driven animation
  • Parallax scrolling
  • Scrollytelling
  • Scroll pinning
  • Horizontal scroll section
  • Scroll progress bar
  • Scroll snap
  • Smooth scrolling

Interaction feedback

  • Hover effect
  • Press feedback
  • Ripple effect
  • Shake animation
  • Hold to confirm
  • Drag gesture
  • Drag to reorder
  • Swipe to dismiss
  • Pull to refresh
  • Magnetic button
  • Custom cursor
  • 3D tilt card
  • Spotlight card

Text effects

  • Typewriter effect
  • Text scramble
  • Split text animation
  • Text morph
  • Rotating words
  • Gradient text
  • Shimmer text
  • Number ticker
  • Tabular numbers
  • Underline animation

Loops & ambient motion

  • Marquee
  • Pulse animation
  • Float animation
  • Orbit animation
  • Idle animation
  • Particle background
  • Border beam
  • Confetti
  • Animated gradient

Visual effects

  • Blur
  • Clip-path
  • Mask
  • Before/after slider
  • SVG line drawing
  • Lottie animation

Motion principles

  • Purposeful animation
  • Anticipation
  • Follow-through
  • Squash and stretch
  • Perceived performance
  • Frequency of use
  • Spatial consistency
  • Reduced motion

Animation performance

  • Frame rate (FPS)
  • Jank
  • GPU acceleration
  • will-change
  • Layout thrashing

Layout

  • Hero section
  • Above the fold
  • Sticky header
  • Sidebar
  • Bento grid
  • Card
  • Flexbox
  • CSS Grid
  • Padding vs margin
  • Responsive design
  • Container
  • Masonry layout
  • Split screen
  • Z-index
  • Overflow

Components

  • Button variants
  • Modal
  • Drawer
  • Popover
  • Tooltip
  • Dropdown menu
  • Context menu
  • Toast notification
  • Tabs
  • Segmented control
  • Accordion
  • Carousel
  • Command palette
  • Combobox
  • Toggle switch
  • Checkbox
  • Radio button
  • Date picker
  • Breadcrumb
  • Pagination
  • Infinite scroll
  • Badge
  • Avatar stack
  • Empty state
  • Skeleton screen
  • Spinner
  • Progress bar
  • Data table
  • Stepper
  • Floating label
  • Inline validation
  • Alert banner
  • Tag input

States & patterns

  • Interaction states
  • Focus ring
  • Loading state
  • Optimistic UI
  • Debounce
  • Lazy loading
  • Dark mode
  • Micro-interaction
  • Affordance
  • Undo
  • Drag and drop
  • Keyboard shortcut

Visual styles

  • Glassmorphism
  • Liquid glass
  • Neumorphism
  • Claymorphism
  • Neo-brutalism
  • Skeuomorphism
  • Flat design
  • Mesh gradient
  • Aurora background
  • Grain texture
  • Glow effect
  • Drop shadow
  • Border radius
  • Grid background
  • Typographic hierarchy
  • Accent color
  • Color contrast

Vibe coding & AI

  • Vibe coding
  • Prompt
  • Context window
  • Token
  • AI agent
  • Tool call
  • Hallucination
  • Diff
  • Live preview
  • Checkpoint
  • Git commit
  • Deploy
  • Frontend and backend
  • API
  • Database
  • Rules file
  • MCP
  • Plan mode
  • Visual edit