वेब डेवलपमेंट
CSS Gradient Generator
कई रंगों से रैखिक, रेडियल या कोनिक ग्रेडिएंट बनाएं और तैयार CSS प्राप्त करें।
0° — ऊपर, फिर घड़ी की दिशा में।
A CSS gradient is a smooth transition between multiple colors, generated by the browser itself with no image needed. This tool lets you visually build a linear, radial, or conic gradient and copy the finished CSS instantly.
How to use it
- Add color stops and drag them to fine-tune where each transition happens.
- Pick a gradient type — linear (a direction in degrees), radial (shape and center position), or conic (rotation around a point).
- Copy the finished CSS with one click and paste it into background or background-image.
Common uses
- Picking a background for a hero section or button without opening a graphics editor.
- Recreating a gradient from a design mockup (Figma, etc.) in exact CSS syntax.
- Quickly experimenting with color transitions before locking a choice into a design system.
Things to keep in mind
A radial gradient defaults to stretching into the shape of its element (an ellipse), not always staying a circle — worth accounting for on rectangular blocks.
Multiple gradients can be layered by listing them comma-separated in background-image — it works like stacked layers, with the first one in the list on top.
इस टूल के बारे में लेख: CSS ग्रेडिएंट: linear, radial और conic से कैसे अलग है
अक्सर पूछे जाने वाले प्रश्न
लीनियर, रेडियल और कॉनिक ग्रेडिएंट्स में क्या अंतर है?
लीनियर ग्रेडिएंट्स चुने गए एंगल पर एक सीधी रेखा के साथ ट्रांज़िशन होते हैं, रेडियल ग्रेडिएंट्स एक केंद्र बिंदु से बाहर की ओर वृत्त या दीर्घवृत्त के रूप में फैलते हैं, और कॉनिक ग्रेडिएंट्स एक केंद्र बिंदु के चारों ओर रंगों को कलर व्हील की तरह घुमाते हैं।
क्या कॉनिक ग्रेडिएंट्स सभी ब्राउज़र्स में सपोर्टेड हैं?
सभी वर्तमान प्रमुख ब्राउज़र्स कॉनिक ग्रेडिएंट्स सपोर्ट करते हैं, लेकिन यह लीनियर या रेडियल ग्रेडिएंट्स की तुलना में एक नई CSS सुविधा है, इसलिए बहुत पुराने ब्राउज़र वर्शन इसे रेंडर नहीं कर सकते।
मुझे आउटपुट के रूप में क्या मिलता है?
टूल आपके चुने गए रंगों, स्टॉप्स और पोज़िशन्स के साथ इस्तेमाल के लिए तैयार CSS background सिंटैक्स जनरेट करता है, जिसे आप सीधे अपनी स्टाइलशीट में पेस्ट कर सकते हैं।
repeating-linear-gradient, सामान्य linear-gradient से कैसे अलग है?
सामान्य linear-gradient अपनी कलर सीक्वेंस को पूरे एलिमेंट पर ठीक एक बार स्ट्रेच करता है, जबकि repeating-linear-gradient उसी कलर स्टॉप्स की सीक्वेंस को साइक्लिकली दोहराता है, जिससे धारीदार या पैटर्न वाला बैकग्राउंड बनता है।
क्या मैं बैकग्राउंड के तौर पर कई ग्रेडिएंट्स एक के ऊपर एक रख सकता हूं?
हां, background-image प्रॉपर्टी कॉमा से अलग किए गए ग्रेडिएंट्स की लिस्ट स्वीकार करती है, और वे एक के ऊपर एक लेयर होते हैं, ठीक वैसे ही जैसे कई बैकग्राउंड इमेजेज़ होतीं — लिस्ट में सबसे पहला वाला सबसे ऊपर आता है।