{
  "registryVersion": 1,
  "id": "backgrounds/mesh-gradient-light",
  "slug": "mesh-gradient-light",
  "category": "backgrounds",
  "title": "Mesh Gradient Light",
  "description": "An airy pastel mesh gradient for light themes: big blurred color fields drift and change shape under film grain and a soft vignette, with an elegant dark palette built in.",
  "tags": [
    "background",
    "gradient",
    "ambient",
    "loop",
    "texture"
  ],
  "useCases": [
    "Hero background for a calm SaaS, wellness, or productivity landing page",
    "Soft backdrop behind a waitlist, newsletter, or sign-up form",
    "Section background for a product announcement on a light site"
  ],
  "placement": [
    "background",
    "hero"
  ],
  "style": [
    "elegant",
    "minimal"
  ],
  "intensity": "subtle",
  "stack": {
    "framework": "react",
    "styling": "tailwindcss"
  },
  "dependencies": {
    "npm": {
      "gsap": "^3.13.0",
      "@gsap/react": "^2.1.0"
    },
    "gsapPlugins": []
  },
  "variants": [],
  "version": "1.0.1",
  "updatedAt": "2026-10-05",
  "design": {
    "motion": "smooth",
    "pace": "slow",
    "radius": "round",
    "scheme": "both",
    "palette": "multicolor",
    "hues": [
      "orange",
      "pink",
      "violet",
      "blue",
      "emerald",
      "yellow",
      "teal",
      "indigo"
    ],
    "triggers": [
      "load",
      "loop"
    ]
  },
  "adapt": {
    "colors": [
      {
        "hue": "orange",
        "classes": 0,
        "literals": 3
      },
      {
        "hue": "pink",
        "classes": 0,
        "literals": 3
      },
      {
        "hue": "violet",
        "classes": 0,
        "literals": 2
      },
      {
        "hue": "blue",
        "classes": 0,
        "literals": 2
      },
      {
        "hue": "emerald",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "yellow",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "teal",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "indigo",
        "classes": 0,
        "literals": 1
      }
    ],
    "radiusClasses": [
      "rounded-3xl",
      "rounded-full"
    ],
    "eases": [
      "sine"
    ],
    "durations": [
      9,
      9
    ]
  },
  "photoSlots": [],
  "sprinkles": [],
  "page": "/snippets/backgrounds/mesh-gradient-light",
  "preview": "/preview/backgrounds/mesh-gradient-light",
  "registryPath": "/registry/snippets/backgrounds/mesh-gradient-light.json",
  "install": "npm i gsap @gsap/react",
  "codeLines": 183,
  "readme": "# Mesh Gradient Light\r\n\r\n`backgrounds/mesh-gradient-light`\r\n\r\nAn airy pastel mesh gradient for light themes: big blurred color fields drift and change shape under film grain and a soft vignette, with an elegant dark palette built in.\r\n\r\n## When to use\r\n\r\n- Hero background for a calm SaaS, wellness, or productivity landing page.\r\n- Soft backdrop behind a waitlist, newsletter, or sign-up form.\r\n- Section background for a product announcement on a light site.\r\n\r\n## Install\r\n\r\n1. `npm i gsap @gsap/react`\r\n2. Copy the code with the **Copy** button on the snippet page and save it as a React component.\r\n3. Use it:\r\n\r\n```tsx\r\n<MeshGradientLight colors={[\"#ffd6c9\", \"#d7ccff\", \"#c6f0e0\", \"#cfe4ff\"]} speed={0.7} className=\"h-[560px] max-w-none rounded-none\">\r\n  <YourHero />\r\n</MeshGradientLight>\r\n```\r\n\r\n## Props\r\n\r\n| Prop | Type | Default | Description |\r\n| --- | --- | --- | --- |\r\n| `colors` | `string[]` | peach, lilac, mint, sky, rose, butter | One color field per entry (4–6 work best). |\r\n| `darkColors` | `string[]` | wine, violet, teal, indigo, plum, deep indigo | Field colors under `.dark`, matched by index with `colors`. |\r\n| `background` | `string` | `\"#fbf7f2\"` | Panel base color in the light theme. |\r\n| `darkBackground` | `string` | `\"#0c0b12\"` | Panel base color under `.dark`. |\r\n| `speed` | `number` | `1` | Drift speed multiplier. |\r\n| `grain` | `number` | `0.35` | Film grain opacity, 0 to turn it off. |\r\n| `children` | `ReactNode` | sample hero | Content shown on top. |\r\n| `className` | `string` | `\"\"` | Extra classes for the panel (it is `h-[420px] max-w-5xl rounded-3xl` by default). |\r\n\r\n## Photos\r\n\r\nNo photos and no sprinkles: the color fields are blurred `<span>`s and the grain is an inline SVG filter.\r\n\r\n## Customization\r\n\r\n- Each field morphs between random pebble shapes (`pebble()` returns eight `border-radius` values) and picks a new target every cycle thanks to `repeatRefresh: true`.\r\n- Softness: `blur-[56px]` on the field layer (one blur for all fields, cheap to render).\r\n- Starting spots and sizes: the `FIELDS` array; keep the biggest fields near the corners so the center stays calm for text.\r\n- The light band (`.mgl-sheen`) crosses every 11 s; remove it for an even quieter panel.\r\n- Users with `prefers-reduced-motion` see a still gradient.\r\n",
  "sourceDir": "snippets/backgrounds/mesh-gradient-light",
  "thumbnail": "/registry/thumbnails/backgrounds/mesh-gradient-light.webp",
  "thumbnailDark": "/registry/thumbnails/backgrounds/mesh-gradient-light.dark.webp",
  "codeAccess": "The code is not in this file. Get it with the MCP tool get_snippet and an InWebAsset API key (header Authorization: Bearer aw_...; sign in at /agents to create one), or with the Copy button on the snippet page after signing in. Free accounts can take snippet code 5 times per day (every fetch counts, also of a snippet fetched before); Pro accounts have no limit."
}
