Go To _fonts.scss (assets/scss/custom/fonts/_fonts.scss )
if you want to change another font-family Go to the site Google Fonts And Slect One font Family and import In to style.css file
Example:
And paste Your Selected font-family in Style.scss i.e (root:-assets/scss/style.scss)
Example:
@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900");And add the Your Selected font-family in _custom-styles.scss(assets/scss/custom/_custom-styles.scss)
Example:
body {
font-family: "Roboto", sans-serif;
}
Go To _custom-styles.scss (assets/scss/custom/_custom-styles.scss )
You will find --primary-bg-color:#0162e8;
, where you can
simply change color code to change primary color
Example:
Simply you can also change color for
primary-bg-hover:#025cd8;
&
--primary-bg-border:#0162e8;
, where you can simply change
color code to change them
Go To "assets/img/brand" folder and replace your logo with Previous Logos within in image size. note: Please don't increase logo sizes. Replace your logo within given image size. otherwise the logo will not fit in particular place it disturbs the template design.
To enable RTL Version you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and write comments for rtl
as shown in below
/******* RTL VERSION adding class *******/
document.querySelector(".app").classList.add("rtl");
// document.querySelector("html[lang=en]").setAttribute("dir", "rtl");
// document.querySelector(".app").classList.remove("ltr");
To remove LTR Version you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and remove comments for ltr
as shown in below
/******* LTR VERSION *******/
document.querySelector(".app").classList.add("ltr");
// document.querySelector("html[lang=en]").setAttribute("dir", "ltr");
// document.querySelector(".app").classList.remove("rtl");
To enable dark Version you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and write comments for Darktheme
as shown in below
/******* Dark mode adding Class *******/
document.querySelector(".body").classList.add("dark-theme");
To remove dark Version you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and remove comments for Darktheme
as shown in below
/******* Dark mode remove Class *******/
document.querySelector(".body").classList.remove("transparent-theme");
document.querySelector(".body").classList.remove("light-theme");
document.querySelector(".body").classList.remove("light-header");
document.querySelector(".body").classList.remove("color-header");
document.querySelector(".body").classList.remove("gradient-header");
document.querySelector(".body").classList.remove("light-menu");
document.querySelector(".body").classList.remove("color-menu");
document.querySelector(".body").classList.remove("gradient-menu");
To enable Color header you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and write comments for ColorHeader
as shown in below
/******* Color header adding Class *******/
document.querySelector(".app").classList.add("color-header");
To remove Color header you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and remove comments for ColorHeader
as shown in below
/******* Color header remove Class *******/
document.querySelector(".app").classList.remove("gradient-header");
document.querySelector(".app").classList.remove("dark-header");
document.querySelector(".app").classList.remove("light-header");
To enable Dark header you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and write comments for DarkHeader
as shown in below
/******* Dark header adding Class *******/
document.querySelector(".app").classList.add("dark-header");
To remove Dark header you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and remove comments for DarkHeader
as shown in below
/******* Dark header remove Class *******/
document.querySelector(".app").classList.remove("color-header");
document.querySelector(".app").classList.remove("gradient-header");
document.querySelector(".app").classList.remove("light-header");
To enable Light header you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and write comments for LightHeader
as shown in below
/******* Light header adding Class *******/
document.querySelector(".app").classList.add("light-header");
To remove Light header you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and remove comments for LightHeader
as shown in below
/******* Light header remove Class *******/
document.querySelector(".app")..classList.remove("color-header");
document.querySelector(".app")..classList.remove("gradient-header");
document.querySelector(".app")..classList.remove("dark-header");
To enable Gradient header you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and write comments for GradientHeader
as shown in below
/******* Gradient header adding Class *******/
document.querySelector(".app").classList.add("gradient-header");
To remove Gradient header you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and remove comments for GradientHeader
as shown in below
/******* Gradient header remove Class *******/
document.querySelector(".app")..classList.remove("color-header");
document.querySelector(".app")..classList.remove("light-header");
document.querySelector(".app")..classList.remove("dark-header");
To enable Light Menu you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and write comments for LightMenu
as shown in below
/******* Light Menu adding Class *******/
document.querySelector(".app").classList.add("light-menu");
To remove Light Menu you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and remove comments for LightMenu
as shown in below
/******* Light Menu remove Class *******/
document.querySelector(".app")..classList.remove("color-menu");
document.querySelector(".app")..classList.remove("gradient-menu");
document.querySelector(".app")..classList.remove("dark-menu");
To enable Color Menu you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and write comments for ColorMenu
as shown in below
/******* Color Menu adding Class *******/
document.querySelector(".app").classList.add("color-menu");
To remove Color Menu you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and remove comments for ColorMenu
as shown in below
/******* Color Menu remove Class *******/
document.querySelector(".app")..classList.remove("light-menu");
document.querySelector(".app")..classList.remove("gradient-menu");
document.querySelector(".app")..classList.remove("dark-menu");
To enable Dark Menu you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and write comments for DarkMenu
as shown in below
/******* Dark Menu adding Class *******/
document.querySelector(".app").classList.add("dark-menu");
To remove Dark Menu you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and remove comments for DarkMenu
as shown in below
/******* Dark Menu remove Class *******/
document.querySelector(".app")..classList.remove("light-menu");
document.querySelector(".app")..classList.remove("gradient-menu");
document.querySelector(".app")..classList.remove("color-menu");
To enable Gradient Menu you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and write comments for GradientMenu
as shown in below
/******* Gradient Menu adding Class *******/
document.querySelector(".app").classList.add("gradient-menu");
To remove Gradient Menu you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and remove comments for GradientMenu
as shown in below
/******* Gradient Menu remove Class *******/
document.querySelector(".app").classList.remove("light-menu");
document.querySelector(".app").classList.remove("dark-menu");
document.querySelector(".app").classList.remove("color-menu");
To enable Boxed-Layout you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and write comments for Boxed
as shown in below
/******* Boxed-Layout adding Class *******/
document.querySelector(".app").classList.add("layout-boxed");
To remove Boxed-Layout you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and remove comments for Boxed
as shown in below
/******* Boxed-Layout remove Class *******/
document.querySelector(".app").classList.remove("layout-fullwidth");
To enable Scrollable-Layout you have to open
switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and write comments for Scrollable
as shown in below
/******* Scrollable-Layout adding Class *******/
document.querySelector(".app").classList.add("scrollable-layout");
To remove Scrollable-Layout you have to open
switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and remove comments for Scrollable
as shown in below
/******* Scrollable-Layout remove Class *******/
document.querySelector(".app").classList.remove("fixed-layout");
To enable Body-Style you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and write comments for BodyStyle1
as shown in below
/******* Body-Style adding Class *******/
document.querySelector(".app").classList.add("body-style1");
To remove Body-Style you have to open switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and remove comments for BodyStyle1
as shown in below
/******* Body-Style remove Class *******/
document.querySelector(".app").classList.remove("DefaultBody");
To enable Left-side closed menu you have to open header.jsx
(src/layouts/layoutcomponents/header.jsx)
file
and write comments for leftsidemenu
as shown in below
/******* Left-side closed menu *******/
document.querySelector(".app")?.classList.toggle("sidenav-toggled");
To enable horizontal layout you have to open
switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and write comments for horizontalclickmenu
as shown in
below
/******* horizontal layout *******/
document.querySelector(".app").classList.add("horizontal");
document.querySelector(".app").classList.remove("sidenav-toggled");
document.querySelector(".app").classList.remove("horizontal-hover");
To enable horizontal-hover you have to open
switcherdata.jsx
(/src/common/switcherdata.jsx)
file
and write comments for Horizontalhovermenu
as shown in
below
/******* Body-Style adding Class *******/
document.querySelector(".app").classList.add("horizontal");
document.querySelector(".app").classList.add("horizontal-hover");
document.querySelector(".app").classList.remove("sidebar-mini");
document.querySelector(".app").classList.remove("sidenav-toggled");
Step: 1
To remove Switcher you have to open
header.jsx
(src/layouts/layoutcomponents/header.jsx)
file
and there itself you can remove or comments for
switcher code
as shown in
below
{/* Switcher Open */}
<
className="d-flex">
<
Link className="demo-icon new nav-link" to="#" onClick={() => SwitcherIcon()}>
<
svg xmlns="http://www.w3.org/2000/svg" className="header-icon-svgs fa-spin" width="24" height="24" viewBox="0 0 24 24">
<
path d="M12 16c2.206 0 4-1.794 4-4s-1.794-4-4-4-4 1.794-4 4 1.794 4 4 4zm0-6c1.084 0 2 .916 2 2s-.916 2-2 2-2-.916-2-2 .916-2 2-2z" />
<
path d="m2.845 16.136 1 1.73c.531.917 1.809 1.261 2.73.73l.529-.306A8.1 8.1 0 0 0 9 19.402V20c0 1.103.897 2 2 2h2c1.103 0 2-.897 2-2v-.598a8.132 8.132 0 0 0 1.896-1.111l.529.306c.923.53 2.198.188 2.731-.731l.999-1.729a2.001 2.001 0 0 0-.731-2.732l-.505-.292a7.718 7.718 0 0 0 0-2.224l.505-.292a2.002 2.002 0 0 0 .731-2.732l-.999-1.729c-.531-.92-1.808-1.265-2.731-.732l-.529.306A8.1 8.1 0 0 0 15 4.598V4c0-1.103-.897-2-2-2h-2c-1.103 0-2 .897-2 2v.598a8.132 8.132 0 0 0-1.896 1.111l-.529-.306c-.924-.531-2.2-.187-2.731.732l-.999 1.729a2.001 2.001 0 0 0 .731 2.732l.505.292a7.683 7.683 0 0 0 0 2.223l-.505.292a2.003 2.003 0 0 0-.731 2.733zm3.326-2.758A5.703 5.703 0 0 1 6 12c0-.462.058-.926.17-1.378a.999.999 0 0 0-.47-1.108l-1.123-.65.998-1.729 1.145.662a.997.997 0 0 0 1.188-.142 6.071 6.071 0 0 1 2.384-1.399A1 1 0 0 0 11 5.3V4h2v1.3a1 1 0 0 0 .708.956 6.083 6.083 0 0 1 2.384 1.399.999.999 0 0 0 1.188.142l1.144-.661 1 1.729-1.124.649a1 1 0 0 0-.47 1.108c.112.452.17.916.17 1.378 0 .461-.058.925-.171 1.378a1 1 0 0 0 .471 1.108l1.123.649-.998 1.729-1.145-.661a.996.996 0 0 0-1.188.142 6.071 6.071 0 0 1-2.384 1.399A1 1 0 0 0 13 18.7l.002 1.3H11v-1.3a1 1 0 0 0-.708-.956 6.083 6.083 0 0 1-2.384-1.399.992.992 0 0 0-1.188-.141l-1.144.662-1-1.729 1.124-.651a1 1 0 0 0 .471-1.108z" /><
/svg>
<
/Link>
<
/code>
{/* Switcher Close */}
Step: 2
After remove Switcher codein the same page you have to
remove or comments for switcherMenu function code
as shown
in
below
// SwitcherMenu
const SwitcherIcon = () => {
document.querySelector(".demo_changer").classList.toggle("active");
document.querySelector(".demo_changer").style.right = "0px";
}
Step: 3
At last you have to open App.jsx
(src/layouts/App.jsx) and
remove or comments the
Switcher tag as well as the comments the imports also
as
shown in
below
import Switcher from '../layouts/layoutcomponents/switcher';
<
Switcher />
To remove Loader you have to open main.jsx
(src/main.jsx)
file and remove or comments for Loader code
as shown in
below
"const App = lazy(() =>"
<
React.Suspense fallback={<
Loader/>}>
<
/React.Suspense>
if you want to change a custom loader image please follow the below steps below
Step: 1
for changing a custom image you have to open loader.jsx
(src/layouts/layoutcomponents/loader.jsx)
file and remove the existing image path
and you can put the
new image as shown in below
import LoaderImage from '../../../assets/img/loader.svg';
<
img src={LoaderImage} className="loader-img" alt="Loader"/>
Vite allows you to have more control over your project's configuration by extending the default configuration with vite.config.js or vite.config.ts. These are located in the project's base root directory.
the file vite.config.js is the stands for configuration management tools. and we mostly use for to configure the root routing path
for example in Valex admin template we have given the base pathvalex/preview/
Note: While you are create your own project need to change the base path accordingly.
Step:1
Open your index.html (path:src\index.html)
file and
add the following code
mentioned below. This will sets the layout style to horizontal for the
entire document.
<
body class="main-body app ltr horizontal">; //change the sidebar-mini class to horizontal
Step:2
Open your App.jsx (path:src/layouts/App.jsx)
file and
add the following code
mentioned below. This will sets the layout style to horizontal for the
entire document.
<
div className="main-content horizontal-content"> // replace the class to horizontal-content
<
div className="main-container container"> // replace the class container-fluid to container
<
div className="side-app container"> // add the class container
Step: 3
Open your
sidebar.jsx(path:src\layouts\layoutcomponents\sidebar.jsx)
file and add the following code mentioned below.
<
aside className="app-sidebar horizontal-main"> //add the class horizontal-main
Step: 3
Open your
Header.jsx(path:src\layouts\layoutcomponents\header.jsx)
file and add the following code mentioned below.
<
Navbar className="main-header side-header sticky nav nav-item hor-header"> //add the class hor-header
<
div className="main-container container"> //replace the class container-fluid to container
Step: 4
Open your
switcher.jsx(path:src\layouts\layoutcomponents\switcher.jsx)
file and add the following code mentioned below.
<
input type="radio" name="onoffswitch15" id="myonoffswitch35" className="onoffswitch2-checkbox" defaultChecked
onClick={() => SwitcherAction('horizontalclickmenu')} /> // give a property default Checked to this input,
Note: make sure to remove defaultChecked from the vertical input.
Step: 5
Open your
reducer.jsx(path:\src\common\redux\reducer.jsx)
file and add the following code mentioned below.
let vertail:any = document.querySelector("#myonoffswitch35") as HTMLInputElement
vertail.checked = true; //Vertail //change the id #myonoffswitch34 to #myonoffswitch35
Step: 1
Open your App.jsx (path:src\layouts\App.jsx)
file and
add the following code mentioned below. This will sets the layout style
to rtl for the entire document.
document.querySelector("body")?.classList.add("rtl", "bg-primary-transparent", "error-page1", "main-body", "error-2",);
//change the ltr class to rtl
Step: 2
Open your
switcherdata.jsx(path:src\layouts\layoutcomponents\switcherdata.jsx)
file and add the following code mentioned below.
<
input type="radio" name="onoffswitch25" id="myonoffswitch55" className="onoffswitch2-checkbox"
onClick={() => { SwitcherAction("RTL") }} defaultChecked /> // give a property default Checked to this input,
Note: make sure to remove defaultChecked from the ltr input.