Gradient Generator
Generate beautiful, highly customizable gradients ready for your Tailwind CSS projects.
bg-gradient-to-br from-[#6366f1] via-[#a855f7] to-[#ec4899]
background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
Features
- Linear, Radial, and Conic Gradients: Choose the style that fits your design.
- Tailwind Ready: Generates
bg-gradient-to-...classes with arbitrary values for maximum color flexibility. - Customizable: Add up to 5 colors, control direction, and randomize combinations.
- CSS Fallback: Provides standard CSS
backgroundstrings for use in vanilla CSS orstyleattributes.
Usage
Copy the generated class and apply it to any element:
<div className='h-40 w-full rounded-xl bg-gradient-to-r from-[#6366f1] via-[#a855f7] to-[#ec4899]' />
For complex gradients (Radial/Conic), the tool generates JIT arbitrary values:
<div className='h-40 w-full rounded-xl bg-[radial-gradient(circle,_#6366f1,_#a855f7)]' />