Change Global Skin Color
How to Change Global Skin Colors ?
Note:
To run a gulp, go to the package folder where package.json exist. open cmd there and run gulp as shown below. If you don't know how to install gulp then refer this Gulp
gulp
// -------------------------------------------------------------------------------------
// File: package/demos/src/assets/scss/variables/_variables.scss
// -------------------------------------------------------------------------------------
$primary: $primary !default; // Change here
$secondary: $secondary !default; // Change here
// ---------------------------------------------------------------------------------------
// For the Red Theme - Primary-Secondary Color
// ---------------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
// File: package/demos/src/assets/scss/variables/_variables-red.scss
// ---------------------------------------------------------------------------------------
$primary: #F33E5A;
$light-primary: rgba($primary, 0.1);
$secondary:#1781FD;
$light-secondary: rgba($secondary, 0.1);
&:root {
--bs-primary: #{$primary};
--bs-primary-rgb: 243, 62, 90;
--bs-light-primary: #{$light-primary};
--bs-primary-bg-subtle: #{$light-primary};
--bs-secondary: #{$secondary};
--bs-secondary-rgb: 23, 129, 253;
--bs-light-secondary: #{$light-secondary};
--bs-secondary-bg-subtle: #{$light-secondary};
.btn-primary {
--bs-btn-bg: #{$primary};
--bs-btn-border-color: #{$primary};
--bs-btn-hover-bg: #f51739;
--bs-btn-hover-border-color: #f51739;
}
.btn-secondary {
--bs-btn-bg: #{$secondary};
--bs-btn-border-color: #{$secondary};
--bs-btn-hover-bg: #0976f7;
--bs-btn-hover-border-color: #0976f7;
}
}
// ---------------------------------------------------------------------------------------
// For the Aqua Theme - Primary-Secondary Color
// ---------------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
// File: package/demos/src/assets/scss/variables/_variables-aqua.scss
// ---------------------------------------------------------------------------------------
$primary: #0074ba;
$light-primary: rgba($primary, 0.1);
$secondary: #47d7bc;
$light-secondary: rgba($secondary, 0.1);
&:root {
--bs-primary: #{$primary};
--bs-primary-rgb: 0, 116, 186;
--bs-light-primary: #{$light-primary};
--bs-primary-bg-subtle: #{$light-primary};
--bs-secondary: #{$secondary};
--bs-secondary-rgb: 71, 215, 188;
--bs-light-secondary: #{$light-secondary};
--bs-secondary-bg-subtle: #{$light-secondary};
.btn-primary {
--bs-btn-bg: #{$primary};
--bs-btn-border-color: #{$primary};
--bs-btn-hover-bg: #00639e;
--bs-btn-hover-border-color: #00639e;
}
.btn-secondary {
--bs-btn-bg: #{$secondary};
--bs-btn-border-color: #{$secondary};
--bs-btn-hover-bg: #3cb7a0;
--bs-btn-hover-border-color: #3cb7a0;
}
}
// ---------------------------------------------------------------------------------------
// For the Cyan Theme - Primary-Secondary Color
// ---------------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
// File: package/demos/src/assets/scss/variables/_variables-cyan.scss
// ---------------------------------------------------------------------------------------
$primary: #01c0c8;
$light-primary: rgba($primary, 0.1);
$secondary: #fb9678;
$light-secondary: rgba($secondary, 0.1);
&:root {
--bs-primary: #{$primary};
--bs-primary-rgb: 1, 192, 200;
--bs-light-primary: #{$light-primary};
--bs-primary-bg-subtle: #{$light-primary};
--bs-secondary: #{$secondary};
--bs-secondary-rgb: 251, 150, 120;
--bs-light-secondary: #{$light-secondary};
--bs-secondary-bg-subtle: #{$light-secondary};
.btn-primary {
--bs-btn-bg: #{$primary};
--bs-btn-border-color: #{$primary};
--bs-btn-hover-bg: #01a3aa;
--bs-btn-hover-border-color: #01a3aa;
}
.btn-secondary {
--bs-btn-bg: #{$secondary};
--bs-btn-border-color: #{$secondary};
--bs-btn-hover-bg: #d58066;
--bs-btn-hover-border-color: #d58066;
}
}
// ---------------------------------------------------------------------------------------
// For the Green Theme - Primary-Secondary Color
// ---------------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
// File: package/demos/src/assets/scss/variables/_variables-green.scss
// ---------------------------------------------------------------------------------------
$primary: #0a7ea4;
$light-primary: rgba($primary, 0.1);
$secondary: #ccda4e;
$light-secondary: rgba($secondary, 0.1);
&:root {
--bs-primary: #{$primary};
--bs-primary-rgb: 10, 126, 164;
--bs-light-primary: #{$light-primary};
--bs-primary-bg-subtle: #{$light-primary};
--bs-secondary: #{$secondary};
--bs-secondary-rgb: 204, 218, 78;
--bs-light-secondary: #{$light-secondary};
--bs-secondary-bg-subtle: #{$light-secondary};
.btn-primary {
--bs-btn-bg: #{$primary};
--bs-btn-border-color: #{$primary};
--bs-btn-hover-bg: #096b8b;
--bs-btn-hover-border-color: #096b8b;
}
.btn-secondary {
--bs-btn-bg: #{$secondary};
--bs-btn-border-color: #{$secondary};
--bs-btn-hover-bg: #d4e069;
--bs-btn-hover-border-color: #d4e069;
}
}
// ---------------------------------------------------------------------------------------
// For the Orange Theme - Primary-Secondary Color
// ---------------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
// File: package/demos/src/assets/scss/variables/_variables-orange.scss
// ---------------------------------------------------------------------------------------
$primary: #fa896b;
$light-primary: rgba($primary, 0.1);
$secondary: #0074ba;
$light-secondary: rgba($secondary, 0.1);
&:root {
--bs-primary: #{$primary};
--bs-primary-rgb: 250, 137, 107;
--bs-light-primary: #{$light-primary};
--bs-primary-bg-subtle: #{$light-primary};
--bs-secondary: #{$secondary};
--bs-secondary-rgb: 0, 116, 186;
--bs-light-secondary: #{$light-secondary};
--bs-secondary-bg-subtle: #{$light-secondary};
.btn-primary {
--bs-btn-bg: #{$primary};
--bs-btn-border-color: #{$primary};
--bs-btn-hover-bg: #d5745b;
--bs-btn-hover-border-color: #d5745b;
}
.btn-secondary {
--bs-btn-bg: #{$secondary};
--bs-btn-border-color: #{$secondary};
--bs-btn-hover-bg: #00639e;
--bs-btn-hover-border-color: #00639e;
}
}
// ---------------------------------------------------------------------------------------
// For the Purple Theme - Primary-Secondary Color
// ---------------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
// File: package/demos/src/assets/scss/variables/_variables-purple.scss
// ---------------------------------------------------------------------------------------
$primary: #763ebd;
$light-primary: rgba($primary, 0.1);
$secondary: #95cfd5;
$light-secondary: rgba($secondary, 0.1);
&:root {
--bs-primary: #{$primary};
--bs-primary-rgb: 118, 62, 189;
--bs-light-primary: #{$light-primary};
--bs-primary-bg-subtle: #{$light-primary};
--bs-secondary: #{$secondary};
--bs-secondary-rgb: 149, 207, 213;
--bs-light-secondary: #{$light-secondary};
--bs-secondary-bg-subtle: #{$light-secondary};
.btn-primary {
--bs-btn-bg: #{$primary};
--bs-btn-border-color: #{$primary};
--bs-btn-hover-bg: #6435a1;
--bs-btn-hover-border-color: #6435a1;
}
.btn-secondary {
--bs-btn-bg: #{$secondary};
--bs-btn-border-color: #{$secondary};
--bs-btn-hover-bg: #7fb0b5;
--bs-btn-hover-border-color: #7fb0b5;
}
}
Now, save files and check in browser