BLACK FRIDAY SALE ⭐ 40% OFF EVERYTHING ⭐ USE PROMO CODE BLACK AT CHECKOUTBLACK FRIDAY SALE ⭐ 40% OFF EVERYTHING ⭐ USE PROMO CODE BLACK AT CHECKOUT

Gradient and shadow generator

Build CSS gradients and layered box shadows, then copy them as CSS, theme.json presets or GenerateBlocks styles.

  • Free, no sign-up
  • Runs in your browser
  • Updated Nov 27, 2026

How to use it

  1. Pick linear, radial or conic, set the angle or centre, and give each color stop a color, an opacity and a position.
  2. Add shadow layers with their x and y offset, blur, spread, color and opacity. Tick Inset for a pressed look.
  3. Watch the preview card: it shows the gradient and the shadow together, as your block will.
  4. Pick CSS, theme.json or GenerateBlocks and copy the code into your site.

Frequently Asked Questions

What is the difference between linear, radial and conic gradients?

A linear gradient runs in a straight line at an angle. A radial gradient spreads out from a centre as a circle or an ellipse. A conic gradient turns around a centre like the hands of a clock, which suits pie shapes and color wheels.

How do I add a gradient or shadow preset to theme.json?

Copy the theme.json tab and merge it into the settings of your block theme's theme.json. The gradient goes in settings.color.gradients and the shadow in settings.shadow.presets, which needs WordPress 6.2 or later. Blocks then offer them in their Gradient and Shadow pickers next to WordPress's own presets.

Can I use these in GeneratePress?

GeneratePress has no gradient or shadow setting of its own. Use GenerateBlocks: its Styles panel has a gradient under Backgrounds and a box shadow under Effects, and the GenerateBlocks tab lists each field. Its gradient picker takes linear gradients, and radial ones only as an ellipse from the centre, with stops at whole percents. For anything else (conic, a circle, a moved centre, a stop at 45.5%) the tab sends you to the CSS or theme.json code.

Why are my stops in a different order?

A gradient draws its stops from the lowest position to the highest, so the tool sorts them by position when you leave a field. Positions below 0 become 0 and above 100 become 100. Two stops at the same position keep their order and make a hard edge.

How do I build a softer, more natural shadow?

Stack two or three layers: a small, sharp one close to the element and a larger, very faint one with a bigger blur. A negative spread keeps a large blur from spilling out at the sides. Low opacity, often under 20%, looks more natural than a dark shadow.

Can I use colors from my palette?

Yes. If you built a palette with our palette and contrast checker in this browser, each color field shows a "From your palette" list. You never need one: any hex color works.