npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

noise-gradient-bg

v1.0.4

Published

Beautiful, customizable noise gradient backgrounds for React applications

Readme

🌌 Noise Gradient Background

npm version license downloads

A beautiful, highly customizable noise gradient background component for React applications. Create stunning, immersive backgrounds with minimal effort.

As seen on Hookflo Hero section Checkout Gradient Showcase here

✨ Features

  • 🎨 Easily customizable gradient colors
  • 🔄 Multiple noise overlay patterns
  • 🌫️ Adjustable blur and opacity
  • 🔆 Built-in vignette effect
  • 🧩 Compatible with Tailwind CSS
  • 📱 Fully responsive
  • 🚀 Lightweight with zero dependencies
  • 🔧 TypeScript support

📦 Installation

# npm
npm install noise-gradient-bg

# yarn
yarn add noise-gradient-bg

# pnpm
pnpm add noise-gradient-bg

🚀 Quick Start

import { NoiseGradientBackground } from 'noise-gradient-bg';

function App() {
  return (
    <NoiseGradientBackground 
      primaryColor="purple-500/20"
      secondaryColor="indigo-500/15"
    >
      <div className="container mx-auto p-6">
        <h1 className="text-4xl font-bold text-white">
          Your content goes here
        </h1>
      </div>
    </NoiseGradientBackground>
  );
}

📝 Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | primaryColor | string | "purple-500/20" | Primary gradient color. Accepts Tailwind classes or custom colors (HEX, RGB, RGBA, HSL) | | secondaryColor | string | "purple-400/15" | Secondary gradient color. Accepts Tailwind classes or custom colors | | tertiaryColor | string | "purple-300/10" | Optional tertiary gradient color. Accepts Tailwind classes or custom colors | | noiseSize | number | 256 | Controls the large noise pattern size in pixels | | microNoiseSize | number | 128 | Controls the micro noise pattern size in pixels | | noiseOpacity | number | 60 | Controls the opacity of the main noise overlay (0-100) | | microNoiseOpacity | number | 40 | Controls the opacity of the micro noise overlay (0-100) | | primaryBlur | number | 80 | Controls primary blur amount in pixels | | secondaryBlur | number | 60 | Controls secondary blur amount in pixels | | tertiaryBlur | number | 40 | Controls tertiary blur amount in pixels | | vignetteIntensity | "none" \| "light" \| "medium" \| "strong" | "strong" | Controls the vignette intensity | | theme | "purple" \| "blue" \| "green" \| "red" \| "yellow" \| "gray" \| "white" \| "zinc" \| "custom" | "purple" | Optional built-in theme for quick presets | | className | string | | Additional CSS classes to apply to the background container |

🎨 Examples

Tailwind Color Classes

<NoiseGradientBackground 
  primaryColor="blue-500/30"
  secondaryColor="purple-500/20"
  tertiaryColor="pink-500/10"
  noiseOpacity={50}
  vignetteIntensity="light"
/>

Custom Colors

<NoiseGradientBackground 
  primaryColor="rgba(59, 130, 246, 0.3)" // blue
  secondaryColor="rgba(139, 92, 246, 0.2)" // purple
  tertiaryColor="rgba(236, 72, 153, 0.1)" // pink
  primaryBlur={100}
  secondaryBlur={80}
  tertiaryBlur={60}
/>

Dark Theme

<NoiseGradientBackground 
  primaryColor="zinc-800/50"
  secondaryColor="zinc-900/40"
  tertiaryColor="black/30"
  noiseOpacity={30}
  vignetteIntensity="strong"
/>

Using Theme Prop

<NoiseGradientBackground
  theme="green"
  noiseOpacity={50}
  primaryBlur={90}
  vignetteIntensity="medium"
/>

Minimal Setup

<NoiseGradientBackground />

📱 Responsive Design

The component is fully responsive and will adapt to any container size. You can also use it with Tailwind's responsive utilities:

<NoiseGradientBackground 
  className="opacity-50 md:opacity-70 lg:opacity-100"
  primaryColor="blue-500/30"
/>

🧩 Usage with Next.js

For Next.js applications, consider placing the component in your layout file:

// app/layout.tsx or _app.tsx
import { NoiseGradientBackground } from 'noise-gradient-bg';

export default function RootLayout({ children }) {
  return (
    <html lang="en">
      <body>
        <NoiseGradientBackground
          primaryColor="purple-500/20"
          secondaryColor="indigo-500/15"
        />
        {children}
      </body>
    </html>
  );
}

🔧 Tailwind CSS Setup

This component works best with Tailwind CSS. Make sure your tailwind.config.js includes:

module.exports = {
  content: [
    // ...
    './node_modules/noise-gradient-bg/**/*.{js,ts,jsx,tsx}',
  ],
  // ...
};

📄 For any issues

Create a issue in this Repository

MIT © Prateek Jain