Gerador Gradiente CSS
Crie gradientes lineares e radiais CSS.
Pontos de cor
Orientação
Saída CSS
Predefinições rápidas
Working with CSS Gradients
Overview
CSS gradients let you create smooth color transitions without any image files — making them faster, scalable to any size, and easy to edit. They've been part of the CSS standard since 2010 and have full browser support today. Three types are commonly used: linear (color flows in one direction), radial (flows outward from a point), and conic (flows around a circle). Modern CSS adds advanced features like multiple color stops, transparency, and interpolation hints. This generator lets you create any gradient visually and copies the CSS to clipboard.
How It Works
Linear gradient: linear-gradient(direction, color1 stop1%, color2 stop2%, ...). Direction can be an angle (45deg) or keyword (to bottom right). Each color stop optionally specifies where (0% = start, 100% = end). Radial gradients add shape (circle/ellipse) and size. Conic gradients sweep around an angle. The generator wraps all this in a visual editor — pick colors, drag stops, choose direction, and see the result instantly.
When to Use This
Hero section backgrounds, button styles, card accents, decorative dividers, loading bars, progress indicators. Use gradients sparingly — overused, they feel dated; used with restraint, they add depth and visual interest. Particularly effective for splash screens, mobile app onboarding, and modern landing pages. Replace gradient images you might otherwise export from design tools to keep page weight down.
Frequently Asked Questions
Why does my gradient look banded?
Color quantization on the user's display. Modern monitors handle gradients smoothly; older or low-quality displays show visible bands ('banding'). Adding slight noise (CSS filter) can mask it. Also, transitions between very similar colors band more than between contrasting ones.
Can I animate gradients?
Yes, but CSS gradients are not native CSS properties (they're computed images), so they don't tween smoothly. Common workaround: use background-size larger than the element and animate background-position. Or use CSS custom properties with newer @property syntax for true gradient animation.
Linear vs radial vs conic — when to use each?
Linear for backgrounds and most UI accents. Radial for spotlights or button glows. Conic for pie-chart-like visuals or color-wheel effects. Conic has slightly less browser support than linear/radial but is supported in all modern browsers.
Ferramentas recomendadas
Utilitários selecionados que você pode achar úteis