Task path / input to outcome
How to compose a CSS gradient
- 01
Choose the gradient type
Open Gradient type and pick Linear for a straight blend or Radial for a circular one. The preview badge shows the current angle as you work. 2–16 Color stops · Linear / Radial · Add / Remove / Reverse / Randomize
- 02
Set the direction or focus
Direction / focus runs from 0 to 360. For a linear gradient it is the angle in degrees; for a radial one it places the focus point on a ring around the center. The badge tracks the value live, which makes small corrections easy to judge.
- 03
Pick colors and stops
Add 2–16 color stops. Set every position from 0% to 100% in nondecreasing order; equal positions create a hard edge. Change, remove, reverse or randomize the stops and inspect the preview.
- 04
Control the blend band
The distance between the two stops is the transition zone: stops 1% apart produce a near-hard edge for two-tone stripes, while stops at 0% and 100% — the defaults — give the softest full-width blend. Watch the preview rather than the numbers.
- 05
Copy the declaration
Press Copy CSS or Download .css to save toolars-gradient.css. The .gradient rule is a single background declaration — linear-gradient(…deg, …) or radial-gradient(circle at …, …) — matched exactly to your stops.
- 06
Apply and extend it
Export the current result. HTML includes the current CSS and a working example. Native controls support keyboard input.