Switch between linear and radial gradients for common UI backgrounds.
Online CSS Gradient Generator
Create linear and radial gradients, try random palettes, and generate moving background effects with ready-to-copy CSS.
Refresh the color mix quickly when you need a new visual direction.
Preview and copy the generated CSS without extra assembly steps.
Tool Summary
CSS Gradient GeneratorThe main action comes first. Guides, FAQ, and related tools stay below the workspace.
You can also jump to these categories
CSS 渐变生成
适合快速生成按钮背景、Banner 背景、卡片氛围光和动态渐变代码。
预览效果
CSS 代码
.gradient-surface {
background: linear-gradient(135deg, #1677FF 0%, #5B5CF0 50%, #8B5CF6 100%);
}How to Use
Pick a linear or radial mode, add colors, and adjust positions. The preview and CSS code update in sync.
When stuck for a direction, hit random to swap in a new palette. For atmosphere backgrounds, enable the animated flow, which outputs keyframes with the CSS.
Before applying the code, verify the effect and text contrast on buttons, cards, or banners, then ship it.
Related Guides
FAQ
Can this generate animated gradients?
Yes. Enable animation and the related keyframes are included in the CSS output.
Can I use it just for inspiration?
Absolutely. Random combinations are a quick way to find a direction before fine tuning.