How to use CSS gradient & shadow generator
- 1
Pick gradient or box shadow
Switch between the two editors with the tabs above the preview.
- 2
Start from a preset
Click a preset tile to load it, or keep the default and adjust from there.
- 3
Adjust it visually
Drag colour stops and set the angle, or add shadow layers and tune offset, blur and spread.
- 4
Copy the code
Copy the CSS declaration or the Tailwind class and paste it into your project.
Limits and Pro
Free with no sign-up: unlimited colour stops and shadow layers, 3 gradient types, 3 colour-mixing spaces and 24 presets.
Pro removes the ads; both editors are complete on every plan. See Pro
About CSS gradient & shadow generator
Gradients and shadows are the two CSS effects most often tweaked by trial and error in the browser's dev tools. This generator gives each one a visual editor with a large live preview, then writes the exact CSS declaration and a matching Tailwind arbitrary-value class, such as bg-[linear-gradient(135deg,#ff7e5f_0%,#feb47b_100%)], so you can paste the result straight into a stylesheet or a className.
The gradient editor builds linear, radial and conic gradients. Click the stop bar to add a colour where you click, drag a stop to move it or use the arrow keys for precise positions, and give each stop its own opacity. Linear and conic gradients take an angle, radial and conic gradients a centre point, radial gradients a circle or ellipse shape, and any of them can repeat for stripes and rings. You can also choose the colour space used for mixing: OKLab and OKLCH avoid the grey, muddy middle that classic sRGB blending produces between saturated colours, and are supported by all current browsers.
The box-shadow editor stacks as many layers as you need. Each layer has X and Y offsets, blur, spread, colour with opacity, an inset switch and a visibility toggle, and layers can be reordered, because the first one is painted on top. A preview box with adjustable size, corner radius and colours shows the effect on a light or dark surface.
Twelve presets for each editor — sunsets, colour wheels and stripes; Material elevations, layered soft shadows, neumorphism and hard offsets — give you a starting point. The tool covers gradients and box shadows only; text-shadow, filter: drop-shadow and SVG gradients aren't generated.
Privacy
Everything happens in the page: colours and settings never leave your browser and no image is uploaded. Your current gradient and shadow are saved in local storage so they are still there when you come back.
Features
Linear, radial and conic
Draggable colour stops with opacity, angle, centre, shape and repeating mode.
Multi-layer shadows
Stack, reorder, hide and inset shadow layers for realistic depth.
CSS and Tailwind
Copy a ready declaration or a Tailwind arbitrary-value class.