Create CSS linear gradient code with live preview values.
The Gradient Generator creates CSS gradient code — linear, radial, or conic — for use in web design. Gradients replace solid background colors with smooth transitions between two or more colors. The output is ready-to-paste CSS: for example background: linear-gradient(135deg, #667eea 0%, #764ba2 100%). Common uses: hero section backgrounds, button hover effects, card overlays on images, text gradients (with background-clip), and decorative UI elements.
Linear gradient transitions along a straight line (e.g. left to right, top to bottom, or diagonal). Radial gradient radiates from a center point outward in a circle or ellipse. Conic gradient sweeps around a center point like a color wheel — useful for pie chart effects.
Yes. Add additional color stops: linear-gradient(135deg, red 0%, yellow 50%, green 100%). Each stop specifies a color and a position (percentage or pixel value along the gradient line).
Use: background: linear-gradient(...); -webkit-background-clip: text; -webkit-text-fill-color: transparent. This clips the gradient to the shape of the text. Browser support is excellent in modern browsers.