Unsupported input
The tool may reject input that does not match the expected content, structure, or file type.
Fix: Confirm the tool input requirements and paste the correct type of data.
header • up to 320x100 / 728x90
Generate CSS gradient code visually
Build gradients with live preview, production CSS, and fast preset switching.
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
CSS (Cascading Style Sheets) controls how HTML documents look, handling layout, colors, typography, and responsive behavior on every modern website.
CSS Gradient Generator produces standards-track CSS gradient functions — linear-gradient, radial-gradient, conic-gradient, and their repeating variants — with a visual editor for stops, angles, and positions.
The output uses modern CSS Color Module syntax (space-separated channels, hsl() and oklch() support) and works in every evergreen browser without vendor prefixes.
Choose the settings or values required to create cSS Gradient from the tool.
Get generated cSS Gradient output that is ready to copy into your project or workflow.
The tool may reject input that does not match the expected content, structure, or file type.
Fix: Confirm the tool input requirements and paste the correct type of data.
Missing fields or partial content can block processing or produce weak results.
Fix: Provide the full required input before running the tool.
Sample or placeholder values can lead to output that looks valid but is not ready for real use.
Fix: Replace placeholders with your actual values before relying on the result.
Yes. Color stops can be expressed as hex, rgb(), hsl(), or the perceptually-uniform oklch() — handy when you want a gradient that interpolates with consistent perceived brightness rather than RGB's uneven midpoint.
Yes. Add as many stops as the design needs — click anywhere on the gradient bar to insert one, then drag to reposition. The CSS output lists them in stop-position order with explicit percentage anchors.
Linear gradients progress along a straight line (useful for backgrounds and banners). Radial gradients emanate outward from a point (spotlights, glows). Conic gradients sweep around a center point (pie charts, color wheels). Each has its own syntax the generator handles automatically.
No — native gradient functions have been fully supported in every evergreen browser since 2014, so prefixes would add noise. If you need legacy IE11 support, enable the 'Legacy fallback' toggle to get a -ms- prefixed variant.
Yes. Enable 'Export as CSS variable' and the output wraps the gradient in `--bg-hero: linear-gradient(...);` ready to drop into `:root` and reference elsewhere via `background: var(--bg-hero)`.
Yes. The URL in your address bar encodes the current gradient — copy it to share with a teammate or bookmark it. Loading the URL restores the gradient exactly, including stop count, colors, and angle.
Continue the workflow with related tools for cSS Gradient, adjacent input and output steps, or other utilities in the same category. You can also browse the full CSS Tools category for more options.
Generate CSS box-shadow code visually
Generate CSS button styles visually
Generate CSS cubic-bezier timing functions visually
Generate CSS font properties
Generate glassmorphism CSS effects
Build CSS keyframe animations from practical presets with timing controls, live preview, and reusable class output.
Convert CSS to LESS preprocessor syntax
Convert CSS to SCSS preprocessor syntax
Convert px, rem, em, and percent with live font-size context for responsive CSS sizing
Generate responsive clamp() CSS for typography and spacing with viewport-based fluid sizing
Generate light and dark theme CSS variables for design systems with media-query or data-attribute theming output.
Convert LESS to plain CSS