
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
@sunui-design/gradient
Advanced tools
An animated gradient background component with dynamic glow effects and customizable grid overlay.
npm install @sunui-design/gradient
# or
yarn add @sunui-design/gradient
# or
pnpm add @sunui-design/gradient
import { GradientBackground } from '@sunui-design/gradient';
export default function App() {
return (
<GradientBackground
fromColor="#172554"
viaColor="#1e3a8a"
toColor="#0f172a"
glowFromColor="#60a5fa"
glowViaColor="#2563eb"
gridColor="#3b82f6"
/>
);
}
<GradientBackground
fromColor="#0c4a6e"
viaColor="#0369a1"
toColor="#082f49"
glowFromColor="#38bdf8"
glowViaColor="#0ea5e9"
gridColor="#0284c7"
gridSize={{ width: 16, height: 28 }}
animationDuration={8}
animationScale={[1, 1.2, 1]}
animationOpacity={[0.3, 0.1, 0.3]}
/>
<GradientBackground
fromColor="#7c2d12"
viaColor="#9a3412"
toColor="#431407"
glowFromColor="#fb923c"
glowViaColor="#f97316"
gridColor="#ea580c"
gridSize={{ width: 20, height: 30 }}
animationDuration={6}
animationScale={[1, 1.4, 1]}
animationOpacity={[0.4, 0.15, 0.4]}
/>
<GradientBackground
fromColor="#064e3b"
viaColor="#047857"
toColor="#022c22"
glowFromColor="#34d399"
glowViaColor="#10b981"
gridColor="#059669"
gridSize={{ width: 18, height: 26 }}
animationDuration={10}
animationScale={[1, 1.3, 1]}
animationOpacity={[0.35, 0.12, 0.35]}
/>
<GradientBackground
fromColor="#4c1d95"
viaColor="#6d28d9"
toColor="#2e1065"
glowFromColor="#c084fc"
glowViaColor="#a855f7"
gridColor="#8b5cf6"
gridSize={{ width: 14, height: 24 }}
animationDuration={4}
animationScale={[1, 1.5, 1]}
animationOpacity={[0.4, 0.1, 0.4]}
/>
| Prop | Type | Description | Default |
|---|---|---|---|
| fromColor | string | Starting gradient color | '#172554' |
| viaColor | string | Middle gradient color | '#1e3a8a' |
| toColor | string | Ending gradient color | '#0f172a' |
| glowFromColor | string | Starting glow effect color | '#60a5fa' |
| glowViaColor | string | Middle glow effect color | '#2563eb' |
| gridColor | string | Color of the grid overlay | '#3b82f6' |
| gridSize | { width: number, height: number } | Size of grid cells | { width: 14, height: 24 } |
| animationDuration | number | Duration of animation in seconds | 12 |
| animationScale | [number, number, number] | Scale values for animation | [1, 1.3, 1] |
| animationOpacity | [number, number, number] | Opacity values for animation | [0.3, 0.1, 0.3] |
The component features multiple animation layers:
The animation uses Framer Motion for smooth transitions and supports:
// Ocean Theme
<GradientBackground
fromColor="#0c4a6e"
viaColor="#0369a1"
toColor="#082f49"
glowFromColor="#38bdf8"
glowViaColor="#0ea5e9"
gridColor="#0284c7"
/>
// Sunset Theme
<GradientBackground
fromColor="#7c2d12"
viaColor="#9a3412"
toColor="#431407"
glowFromColor="#fb923c"
glowViaColor="#f97316"
gridColor="#ea580c"
/>
MIT License
Copyright (c) 2024 SunUI Design
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Beautiful gradient background effects for SunUI Design
We found that @sunui-design/gradient demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.