🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Reference › Values › gradient › radial-gradient
radial-gradient() - CSS | MDN
The radial-gradient() CSS function creates an image consisting of a progressive transition between two or more colors that radiate from an origin. Its shape may be a circle or an ellipse. The function's result is an object of the data type, which is a special kind of .
🌐
CSS Gradient
cssgradient.io
CSS Gradient – Generator, Maker, and Background
In fact, most of the code is exactly the same as that of the linear gradient—with just a few tweaks for extra radial customization. For example, unlike with linear gradients, you can actually adjust the size of radial gradients in place of where the direction would normally go.
Discussions

Add radial gradient – GeneratePress
Hey, actually i try to get a radial gradient for my container, but there is just the linear one. I saw that Tom wrote inside the GB Community that there is one coming. Is there any EAT or any Hack to get this working? ... For now you can use CSS. More on generatepress.com
🌐 generatepress.com
Need help with a radial gradient problem in CSS
Yours looks pretty close to that for me? Maybe this? background: radial-gradient(ellipse at 70% 130%, #6F42C1 0%, #ffffff 70%); More on reddit.com
🌐 r/css
4
4
December 12, 2023
Why does this mask gradient not apply?
As far as I can tell, it is working just fine. It's just that the default for radial-gradient() is farthest-corner and 80% of the distance from the middle to the farthest-corner is beyond the border-radius. At the border-radius limit, the % value for such a radial-gradient() is 100%/√2 ≅ 70.71%. Any value smaller than that shows your ring. If you use 65%, you'll see the ring: radial-gradient(#0000 65%, red 0) Note that you don't need circle in this case if you've made your element square via width & height and you only need to set one stop position for transparent (or more shortly written, #0000). And any opaque value works, so I used red because it has fewer characters. Alternatively, you could switch to closest-side: radial-gradient(closest-side, #0000 95%, red 0) If you want smooth edges for your radial-gradient() ring, you need to introduce a 1px difference . radial-gradient(closest-side, #0000 calc(95% - .5px), red calc(95% + .5px)) More on reddit.com
🌐 r/css
4
1
March 24, 2024
Gradient banding issue with transparent overlay
If it’s rendering between very dark and black there’s not a lot of colours between those two. So you are probably detecting when it shifts to the next darker colour. Plus the screen’s settings will factor in. It’s not necessarily a css issue—in fact is unlikely to be a css issue. More on reddit.com
🌐 r/css
4
3
November 23, 2024
🌐
W3Schools
w3schools.com › cssref › func_radial-gradient.php
CSS radial-gradient() function
The CSS radial-gradient() function sets a radial gradient as the background image.
🌐
W3Schools
w3schools.com › css › css3_gradients_radial.asp
CSS Radial Gradients
The CSS radial-gradient() function creates a radial gradient.
🌐
GeneratePress
generatepress.com › forums › topic › add-radial-gradient
Add radial gradient – GeneratePress
.gb-container.has-radial-background { background: radial-gradient(circle, rgba(190,86,227,1) 0%, rgba(112,120,200,1) 50%); } Use this tool to create your own gradient: https://cssgradient.io
🌐
Patrick Brosset
patrickbrosset.com › articles › 2022-10-24-do-you-really-understand-CSS-radial-gradients
Patrick / articles / Do you really understand CSS radial-gradients?
October 24, 2022 - radial-gradient(lime 0 5vmin, #ffe88e 5vmin 10vmin, red 10vmin 15vmin, black 15vmin 20vmin, #21a3f3 0) In this example, each color has two positions: a start position and an end position. And the next color starts right where the previous one ends. Of course, it would be too easy if color stops were always given in their order of appearance. CSS is such a wonderful language that always knows how to display something, even if you screw up the code.
🌐
Quackit
quackit.com › css › functions › css_radial-gradient_function.cfm
CSS radial-gradient() Function
The radial-gradient() function allows you to create a radial gradient using CSS.
Find elsewhere
🌐
CSS-Tricks
css-tricks.com › almanac › functions › r › radial-gradient
radial-gradient() | CSS-Tricks
July 31, 2025 - The radial-gradient() functions creates a circular or elliptical color gradient starting from a center point and spreading outward.
🌐
Digital Thrive
digitalthriveai.com › en-ie › resources › web-performance › radial-gradient
Radial Gradient: Complete Guide to CSS Radial Gradients | Digital Thrive | Digital Thrive Ireland
Master CSS radial gradients with our comprehensive guide. Learn syntax, shape options, size control, positioning, and practical applications for creating depth and visual effects.
🌐
WebPlatform
webplatform.github.io › docs › css › functions › radial-gradient
radial-gradient · WebPlatform Docs
background-image: radial-gradient(farthest-side circle at 40px 50px, #FFF133, #16D611, #00A3EF); Important The Cascading Style Sheets (CSS) Gradients properties do not require a vendor prefix (that is, "-ms-") to work correctly in Internet Explorer 10. The syntax for the radial-gradient function ...
🌐
Aceternity UI
ui.aceternity.com › components › background gradient animation
Background Gradient Animation | Aceternity UI Components
A smooth and elegant background gradient animation that changes the gradient position over time.
🌐
CodePen
codepen.io › inarocket › pen › NWKRbmj
CSS Fundamentals / Colors & backgrounds / Radial gradients
:root { --color-primary: blue; --color-secondary: yellow; --color-tertiary: green; } div { width: 50%; height: 10em; margin-bottom: 1em; font: 700 1em Arial, Helvetica, sans-serif; } .radialgrad-ell { background-image: radial-gradient(ellipse, var(--color-primary), var(--color-secondary)); } .radialgrad-cir { background-image: radial-gradient(circle, var(--color-primary), var(--color-secondary)); } .radialgrad-cirTR { background-image: radial-gradient(circle at top right, var(--color-primary), var(--color-secondary)); } .radialgrad-fc { background-image: radial-gradient(farthest-corner at 200p
🌐
QuirksMode
quirksmode.org › css › images › position.html
CSS3 - radial-gradient position
background: -webkit-radial-gradient(bottom left,red,yellow,green); background: radial-gradient(at bottom left,red,yellow,green);
🌐
findnerd
findnerd.com › list › view › CSS-Radial-gradient-property › 22980
CSS Radial gradient property
August 9, 2016 - Radial gradient can either have circular or elliptical shape but it starts from the center. ... Note:To apply css radial gradient property you must choose minimum two color shades maximum as per your requirements like starting color shade, mid part color shades and last color shade.
🌐
TutorialsPoint
tutorialspoint.com › setting-the-size-of-the-radial-gradients-using-css
Setting the size of the radial gradients using CSS
To set the size of the radial gradient, use the radial-gradient() function. This function sets a radial gradient as the background image. The second parameter in the function is to be set as the size you want as in the below example − background-ima
🌐
Tailwind CSS
tailwindcss.com › docs › background-image
background-image - Backgrounds - Tailwind CSS
Use utilities like bg-linear-to-r and bg-linear-<angle> with the color stop utilities to add a linear gradient to an element: <div class="h-14 bg-linear-to-r from-cyan-500 to-blue-500"></div><div class="h-14 bg-linear-to-t from-sky-500 to-indigo-500"></div><div class="h-14 bg-linear-to-bl from-violet-500 to-fuchsia-500"></div><div class="h-14 bg-linear-65 from-purple-500 to-pink-500"></div> Use the bg-radial and bg-radial-[<position>] utilities with the color stop utilities to add a radial gradient to an element: <div class="size-18 rounded-full bg-radial from-pink-400 from-40% to-fuchsia-700"
🌐
Programiz
programiz.com › css › radial-gradient
CSS Radial Gradient (With Examples)
Here, the radial-gradient() function creates a radial gradient that radiates from orange to red.
🌐
Gradgentool
gradgentool.com › radial-gradient-generator.html
Radial Gradient Generator - Circular CSS Gradients | GradGenTool
Free Radial CSS Gradient Generator - Create circular and elliptical gradients with live preview. Control shape, position, and colors. Copy CSS code instantly.
🌐
Magic UI
magicui.design › docs › components › grid pattern
Grid Pattern | React Components & Templates
"use client" import { cn } from "@/lib/utils" import { GridPattern } from "@/registry/magicui/grid-pattern" export function GridPatternDashed() { return ( <div className="bg-background relative flex size-full items-center justify-center overflow-hidden rounded-lg border p-20"> <GridPattern width={30} height={30} x={-1} y={-1} strokeDasharray={"4 2"} className={cn( "[mask-image:radial-gradient(300px_circle_at_center,white,transparent)]" )} /> </div> ) } Copyimport { GridPattern } from "@/components/ui/grid-pattern" Copy<div className="relative h-[500px] w-full overflow-hidden"> <GridPattern /> </div> Dot PatternStriped Pattern ·