Bootstrap snippet and html example. Background Radial Gradient Color

Bootstrap 4.5.0 snippet "Background Radial Gradient Color" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: gradient

HTML code

Clean, semantic HTML that powers this Bootstrap 4.5.0 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.

<div class="col-md-5">
<div class="card card-custom gutter-b">
<div class="card-header">
	<div class="card-title">
		<h3 class="card-label">Background Radial Gradient Color</h3>
	</div>
</div>
<div class="card-body">
	<!--begin::Example-->
	<div class="example">
		<p>Use 
		<code>bg-radial-gradient-{color}</code>class format to set a background radial gradient color.</p>
		<div class="example-preview">
			<div class="d-flex mb-5">
				<div class="bg-radial-gradient-primary d-flex flex-center w-150px h-150px mr-5 mb-1 mb-md-0"></div>
				<div class="bg-radial-gradient-success d-flex flex-center w-150px h-150px mr-5 mb-1 mb-md-0"></div>
				<div class="bg-radial-gradient-info d-flex flex-center w-150px h-150px mr-5 mb-1 mb-md-0"></div>
			</div>
			<div class="d-flex mb-5">
				<div class="bg-radial-gradient-danger d-flex flex-center w-150px h-150px mr-5 mb-1 mb-md-0"></div>
				<div class="bg-radial-gradient-warning d-flex flex-center w-150px h-150px mr-5 mb-1 mb-md-0"></div>
				<div class="bg-radial-gradient-dark d-flex flex-center w-150px h-150px mr-5"></div>
			</div>
		</div>
		<div class="example-code">
			<span class="example-copy" data-toggle="tooltip" title="" data-original-title="Copy code"></span>
			<div class="example-highlight">
                <p>bg-radial-gradient-primary</p>
                <p>bg-radial-gradient-success</p>
                <p>bg-radial-gradient-info</p>
                <p>bg-radial-gradient-danger</p>
                <p>bg-radial-gradient-warning</p>
                <p>bg-radial-gradient-dark</p>
			</div>
		</div>
	</div>
	<!--end::Example-->
</div>
</div>
</div>

CSS code

Scoped CSS that styles the component. Paste it after Bootstrap 4.5.0 to keep the design, spacing, and responsiveness consistent.

body{margin-top:20px;}
.h-150px {
    height: 150px!important;
}
.w-150px {
    width: 150px!important;
}
.flex-center {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.bg-radial-gradient-primary {
    background-color: #1bc5bd;
    background-image: radial-gradient(circle,rgba(201,247,245,.4),#1bc5bd 70%);
}
.bg-radial-gradient-success {
    background-color: #3699ff;
    background-image: radial-gradient(circle,rgba(225,240,255,.4),#3699ff 70%);
}
.bg-radial-gradient-info {
    background-color: #6993ff;
    background-image: radial-gradient(circle,rgba(225,233,255,.4),#6993ff 70%);
}
.bg-radial-gradient-danger {
    background-color: #f64e60;
    background-image: radial-gradient(circle,rgba(255,226,229,.4),#f64e60 70%);
}
.bg-radial-gradient-warning {
    background-color: #ffa800;
    background-image: radial-gradient(circle,rgba(255,244,222,.4),#ffa800 70%);
}
.bg-radial-gradient-dark {
    background-color: #181c32;
    background-image: radial-gradient(circle,rgba(209,211,224,.4),#181c32 70%);
}

Similar snippets

Bootstrap example and template. Colorful cards with gradient

Colorful cards with gradient

Bootstrap example and template. Gradients dashboard cards

Gradients dashboard cards

Bootstrap example and template. background set

background set

Bootstrap example and template. Bootstrap accordion Start Templates

Bootstrap accordion Start Templates

Bootstrap example and template. bs4 Ratings and Reviews page

bs4 Ratings and Reviews page

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. blog post cards

blog post cards

FAQ

How do I use this snippet?

Include Bootstrap 4.5.0, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.

Can I use it in commercial projects?

Yes. It’s free for personal and commercial work; check the snippets license for details.

Is it responsive?

Yes. It inherits the responsive grid and components from Bootstrap 4.5.0.

Bootstrap example and template. Background Radial Gradient Color

About this bootstrap example/template

Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.

Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.

Already trusted in 6.5K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 4.5.0

<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css'>

<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js'></script>

This code example is based on bootstrap 4.5.0 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working