New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-color4bg

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-color4bg

React component wrapper of color4bg.js written in TypeScript.

latest
Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
31
63.16%
Maintainers
1
Weekly downloads
 
Created
Source

react-color4bg

About color4bg.js

Super easily generate dynamic, abstract, and visually stunning background images for your web pages based on WebGL and JavaScript. High performance.

📦 winterx/color4bg.js

🔗 https://www.color4bg.com/

Get Started

1.install react-color4bg

npm i react-color4bg

2.Import the component into your project.

<BlurGradientBg
  style={{ width: '100%', height: '100%' }}
  colors={["#D1ADFF","#98D69B","#FAE390","#FFACD8","#7DD5FF","#D1ADFF"]}
  loop
/>

Component Props

All components have three identical properties (see below), Some components have additional properties, which can be viewed through TypeScript's type completion, You can visit https://www.color4bg.com/ to view all available background types.

colors

type: string[]

An array of up to 6 hexadecimal color values, used to describe the color combination of the background.

seed

type: number

A Pseudo-random numerical value used to generate a consistent pattern, default is 1000.

loop

type: boolean

Determines whether the background should animated looply or not.

Keywords

react

FAQs

Package last updated on 10 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts