Keyword or angle
Set a linear gradient with a direction keyword or an exact angle in degrees.
Visual CSS Tools is a cross browser gradient generator for web designers. Set your color stops, shape a linear or radial fill, then export clean CSS, SVG, or Canvas in a single click.
Every change updates the preview and the code together. Pick a stop, move a value, and see the result right away.
Every control maps to a real CSS feature, so the preview and the code always agree. Here is what the editor covers.
Set a linear gradient with a direction keyword or an exact angle in degrees.
Define a radial gradient with a shape and extent keyword, or give it an explicit size and position.
Switch on repeating radial and linear gradients when you need a tiled pattern.
Convert every parameter combination, where possible, to CSS, SVG for older engines, Canvas, and legacy Webkit syntax.
Express values in percent, px, pc, pt, mm, cm, or in, not just percent.
Use a radial extent keyword and shape, such as far corner circle, or enter an exact width and height.
Place a radial center with horizontal and vertical controls for left, center, right, top, and bottom.
Set an exact angle in degrees, or start from one of eight direction shortcuts.
Convert between unit types without leaving the editor.
Save your own gradient recipes for later.
Pick from the full set of standard CSS color names.
Use a wheel based picker with a familiar feel.
Convert CSS to SVG or Canvas at runtime from your own code.
The controls are built to stay out of the way. Here is the short version, with the full walkthrough in the guide.
Choose linear or radial, then set the angle, shape, extent, and position.
Add color stops, edit hex values or alpha, and set each position.
Switch between CSS, SVG, Canvas, and legacy output, then copy or download.
Visual CSS Generator is built for generating CSS3, Canvas, and SVG code for every linear and radial gradient, so it targets modern browsers including IE9. It can also generate code for the old Webkit syntax.
For a fallback before IE9 you have options: for IE8, include the generated inline PNG data URL in your CSS; for IE7 and lower, save the generated Canvas image as a PNG file.
Type a value directly, or use the arrow keys, the mouse wheel, or the graphical arrows beside a field. Hover between the arrows, then click and drag up or down. Hold Shift to move sideways and Control to reverse the direction.
The gear icon in the corner sets precision, with options such as 100, 10, 1, 0.1, and 0.01. The output buttons switch the preview between CSS, SVG, Canvas, and legacy Webkit. The legacy button is enabled only in Webkit based browsers such as Chrome or Safari.
Some older browser versions could not render a CSS radial gradient whose size is set explicitly as a width and height. If a gradient looks different in an older engine, use SVG or Canvas output when you need an exact size.
Small differences between CSS and SVG or Canvas rendering are normal, because engines compute gradients in different ways. If a difference looks wrong across browsers, send the CSS code to the address in the contact section.
Visual CSS Tools is a browser based gradient editor for CSS, SVG, and Canvas. It is a small, focused project, and everything runs on your device.
If you like what I have built here and have a project that needs work, send a note. I am a native English speaker living in Bulgaria, with a little Bulgarian to get by.
Feature ideas, bug reports, and work enquiries are all welcome.
Email is the fastest way to reach me. Replace the words with the usual symbols.
visualcsstools at gee mail dot comAreas I work in
You can also send a bug report with the CSS code that caused the problem, and I will take a look.
jQuery UI, Farbtastic, and Felix Nagel shaped the original editor. Full credits and reference links live on the credits page.
Paste a standard CSS gradient. Angle, shape, position, and color stops are all supported.