CSS Gradient Library
80+ curated CSS gradients. Click any card to copy the CSS - ready to paste into your stylesheet.
Aurora
vibrant
Candy
vibrant
Neon Burst
vibrant
Tropical
vibrant
Citrus
vibrant
Electric
vibrant
Watermelon
vibrant
Cosmic Berry
vibrant
Lime Punch
vibrant
Flamingo
vibrant
Ocean Fire
vibrant
Plasma
vibrant
Cotton Candy
subtle
Lavender Mist
subtle
Peach Bliss
subtle
Mint Cream
subtle
Rose Quartz
subtle
Baby Blue
subtle
Buttercup
subtle
Sakura
subtle
Morning Dew
subtle
Blush
subtle
Midnight
dark
Obsidian
dark
Night Sky
dark
Charcoal Glow
dark
Deep Space
dark
Abyss
dark
Midnight Rose
dark
Storm
dark
Dark Forest
dark
Void
dark
Ocean Depth
ocean
Aegean
ocean
Tidal Wave
ocean
Aqua Dream
ocean
Bioluminescent
ocean
Deep Blue
ocean
Lagoon
ocean
Pacific
ocean
Sunset
sunset
Golden Hour
sunset
Desert Dawn
sunset
Amber Glow
sunset
Dusk
sunset
Bonfire
sunset
Lava
sunset
Creamsicle
sunset
How to Use the CSS Gradient Library
- 1.Browse the gallery or filter by style - Vibrant, Subtle, Dark, Ocean, Sunset, Cosmic, and more.
- 2.Hover over any card and click "Copy CSS" - or click the copy icon in the card footer.
- 3.The copied value is a ready-to-paste
background: linear-gradient(…)CSS rule. - 4.For Tailwind, wrap it as an arbitrary value:
bg-[linear-gradient(135deg,#6366f1,#ec4899)]. - 5.Need a custom gradient? Use the Gradient Generator to build your own.
What is a CSS Gradient?
A CSS gradient is a smooth color transition generated entirely in CSS - no images needed. linear-gradient() transitions colors along a straight line at any angle. radial-gradient() radiates outward from a center point. Both render at any resolution and have zero file size overhead. Gradients are used everywhere in modern UI: hero backgrounds, card overlays, button fills, text effects, and decorative borders. You can stack multiple gradient layers using comma-separated values for complex mesh and duotone effects.
Frequently Asked Questions
Can I use these gradients commercially?
Yes. All gradients in the ColorPeek library are free for personal and commercial use with no attribution required.
How do I add a gradient to text in CSS?
Apply background: linear-gradient(…) combined with -webkit-background-clip: text and -webkit-text-fill-color: transparent.
How do I use this in Tailwind CSS?
Use Tailwind's arbitrary value syntax: className="bg-[linear-gradient(135deg,#6366f1_0%,#ec4899_100%)]". Replace spaces with underscores inside brackets.