Skip to content
Yunedia Tools

渐变生成器

设计最多四个色标的线性和径向 CSS 渐变,实时预览并复制 CSS。

Preview

Blend steps between the first and last stop

使用方法

  1. Set each color stop. Use Add stop to grow the gradient to up to four colors.
  2. Switch between linear and radial, and set the direction with the angle slider for linear gradients.
  3. The CSS under the preview is ready to use; Copy CSS copies it with the background property included.
  4. Random gradient builds a fresh gradient from cryptographically secure random values.

注意事项

Stops are placed at even intervals automatically (0% and 100% for two stops; 0%, 50% and 100% for three). The blend strip below the preview interpolates the first and last colors in RGB space across ten steps, so you can judge how smooth the transition is. All processing happens in your browser.

常见问题

Which direction is 0 degrees?
In CSS linear-gradient, 0deg points upward (bottom to top), 90deg points right and 180deg points down. The angle here follows the CSS specification exactly.