Skip to content
CSSCraft

CSS gradient generator

Build a linear or radial gradient from a preset, move the stops, and copy the background declaration or the Tailwind classes that match it.

  • Linear and radial gradients
  • Six gradient presets
  • CSS and Tailwind output
  • Nothing is uploaded

Stops, angle and geometry

Stops stay sorted by position so the CSS is always valid, and the Tailwind output switches between utilities and an arbitrary value depending on the geometry.

Gradient type
Presets
Angledeg
Stop 1 colour
Stop 1 position%
0100
Stop 2 colour
Stop 2 position%
0100

Stops stay sorted by position, which is why the CSS lists them in order even when you type a lower number into a later stop.

2 of 6 stops

Live preview
135deg
CSS declaration
background: linear-gradient(135deg, #7c3aed 0%, #22d3ee 100%);
Tailwind utilities
bg-linear-to-br from-[#7c3aed] to-[#22d3ee]
Tailwind arbitrary value
bg-[linear-gradient(135deg,#7c3aed_0%,#22d3ee_100%)]

How it works

CSS tools that run in your tab

No uploads, no sign-ups and nothing to wait for: the the CSS maths runs inside the page itself, so the numbers appear as you type.

  1. 1. Pick a starting point

    A shadow preset, a gradient or a hex value you already use. All of it lives in page state, so nothing is sent anywhere.

  2. 2. Shape it the way you want

    Drag the sliders, move a stop or type a colour, and every output updates as you type.

  3. 3. Get the output instantly

    The preview, the CSS declaration and the Tailwind class update on every keystroke: no submit button, no waiting screen.

  4. 4. Check before you ship

    Contrast ratios come from the WCAG formula, and the tool says so plainly when a colour cannot be parsed.

Privacy by architecture

Nothing is uploaded — and you can verify it

Privacy claims are cheap, so this one is falsifiable: the app has no upload code path at all.

  • No upload endpoint exists

    None of these tools has a POST route, a storage bucket or a proxy. Open DevTools → Network and use them: the only requests are the page assets.

  • Your designs stay in memory

    Colours, shadow layers and gradient stops live in React state inside the tab and are never persisted. Close the tab and they are gone — nothing survives, because nothing was stored.

  • Contrast is not the whole audit

    Passing WCAG AA proves the ratio, not the design: focus states, tap targets and motion still need their own review.

Free forever, no account required — the tools are static pages that run entirely on the client.

CSS gradient FAQ

Angle semantics, how many stops to use, circle versus ellipse and why gradients band.

What does the angle mean in a linear gradient?

0deg points to the top, 90deg to the right, 180deg to the bottom and 270deg to the left — angles are measured clockwise from the top, which is the opposite of what most people assume.

Two stops or three?

Two stops are clean and fast; a middle stop is what creates the 'lit from one side' look, especially with a lighter tint at 50%. This generator keeps up to six stops sorted by position.

What is the difference between circle and ellipse?

A radial gradient with circle keeps a 1:1 shape, while ellipse stretches to the element's box. Moving the centre point is the fastest way to fake light coming from a corner.

Should I use Tailwind utilities or the arbitrary value?

Utilities (bg-linear-to-br from-violet-600 via-fuchsia-500 to-cyan-400) are readable and themeable; the arbitrary value matches the exact gradient, including custom angles and more than three stops. Both are shown side by side.

Why do some gradients look banded?

Sharp contrast across a short distance, or a gradient that ends on the same colour at both edges. Adding an intermediate stop, or keeping the two ends closer in lightness, removes most of the visible steps.

Do gradients hurt performance?

A static background gradient is cheap and paint-only. Animating one is not: it repaints every frame, so animate transform or opacity instead when you need movement.

  • Box shadow & glass

    Stack up to six shadows with offset, blur, spread, colour and inset controls, switch to glassmorphism with backdrop blur, and copy plain CSS or a ready-made Tailwind arbitrary value.

    Open tool
  • Colours & contrast

    Convert any colour between HEX, RGB, HSL, HSV and OKLCH, list every format at once, and score the contrast ratio against AA and AAA for normal and large text.

    Open tool
  • CSS animations

    Soon

    Pick a keyframe pattern, tune the duration, easing and delay, and copy the @keyframes block with the animation shorthand. In development on the same client-side pipeline.

    In development