React js UI example. Background Radial Gradient Color

React js UI example and template, Background Radial Gradient Color! . Take a look at this UI example and see how it can enhance your project. Your can copy or download the code and use it in your project. Don't forget to browse our library of other free React Native templates for even more design and functionality inspiration. Happy coding!
Tags: gradient

1. First, we need fresh reactjs setup, and for that, we need to run below commands into out terminal, and also we should have latest node version installed on our system:

npx create-react-app my-awesome-project

cd my-awesome-project

npm start

2. Now we need to run below commands into our project terminal to get bootstrap and related modules into our reactjs application:

npm install [email protected] --save

npm start //For start project again

3. Finally for the main output, we need to add below code into our my-awesome-project/src/App.js file or if you have fresh setup then you can replace my-awesome-project/src/App.js file code with below code:

import React from 'react';
import './App.css';
import 'bootstrap/dist/css/bootstrap.min.css';


function App() {
  
	return (
		<div>
			<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">
	
	<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>
	
</div>
</div>
</div>
		</div>
	);
}
export default App;

4. Now we need to add below code into our my-awesome-project/src/App.css file :

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

React js template and ui example Colorful cards with gradient

Colorful cards with gradient

React js template and ui example background set

background set

React js template and ui example Gradients dashboard cards

Gradients dashboard cards

React js template and ui example bs5 dark footer

bs5 dark footer

React js template and ui example account settings

account settings

React js template and ui example Profile settings

Profile settings

React js template and ui example bs5 edit profile account details

bs5 edit profile account details