首页
Tom Utilities

CSS 渐变生成器

开发者实用工具

设计线性或径向 CSS 渐变,实时预览并复制现成 CSS。

使用方法

Build a gradient

Pick linear or radial, adjust the angle for linear gradients and choose the start and end colors. The preview and CSS update live.

  1. Choose linear or radial.
  2. Set the angle and two colors.
  3. Copy the generated CSS declaration.

Using the CSS

The output is a single background declaration. Paste it into a CSS rule, inline style or style block.

常见问题

What does the angle mean?

The angle controls the direction of a linear gradient in degrees, where 0deg points up and 90deg points right.

Can I add more color stops?

This generator creates two-stop gradients. Add extra stops manually to the copied CSS.