Frest admin manages all the core scss files in
src/scss/
folder. Gulp command
gulp sass-compile
to compile scss which will
generate all css files in app-assets/css
.
Heads Up!
It is not recommended to change any scss files inside
src/scss/
folder to avoid future update
conflicts. If you still modify the file, it may require to
merge it manually with future updates.
frest-clean-bootstrap-admin-dashboard-template/
├── src/
| ├── scss/
| | ├── bootstrap-extended/
| | | ├── _variables.scss
| | ├── components/
| | | ├── _variables.scss
| | ├── core/
| | | ├── colors/
| | | | ├── _palette.scss
| | | | ├── palette-variables.scss
| | | ├── layouts/
| | | ├── menu/
| | | └── mixins/
| | ├── pages/
| | ├── plugins/
| | ├── themes/
| | | ├── dark-layout.scss
| | | ├── semi-dark-layout.scss
| | ├── bootstrap-extended.scss
| | ├── bootstrap.scss
| | ├── colors.scss
| | ├── components.scss
| | └── custom-rtl.scss
Folder/Files | Details |
---|---|
bootstrap-extended |
bootstrap-extended/ folder contains
customized bootstrap scss files for Frest admin. This
folder contains _variable.scss to
override bootstrap core variables.
|
components |
components/ folder contains Frest admin
all custom components and pages scss files. This
folder contains _variable.scss for theme
custom component variables.
|
core |
core/ folder contain colors, layouts,
menu, mixins and variables folder.
|
pages |
pages/ folder contains all pages specific
scss files.
|
plugins |
plugins/ folder contains all vendors scss
files.
|
themes |
themes/ folder contains template layouts
specific scss files.
|
bootstrap-extended.scss |
bootstrap-extended.scss file is for those
bootstrap components which are customized for this
theme. It include all files from
bootstrap-extended/ folder.
|
bootstrap.scss |
bootstrap.scss file is bootstrap file
which includes all the core bootstrap files from
node_modules/bootstrap/ folder. It
extends the default bootstrap variable by using file
scss/bootstrap-extended/_variables.scss
|
colors.scss |
colors.scss file includes all colors
palette related files from
scss/core/colors/ folder.
|
components.scss |
components.scss file includes all theme
components files from
scss/components/ folder.
|
custom-rtl.scss |
custom-rtl.scss file includes RTL text
direction specific style override.
|
Before we customize the template style, first we need to
understand the assets/
folder structure. This
folder is for customer customization purposes. You can create
a new folder and files in this folder.
Use gulp scss-compile
or
gulp monitor
to compile these scss files and
generate css files under assets/css
folder.
Tip
It is recommended to use this folder to write your scss, css, js. You can also add new assets to this folder i.e images, libs, etc...
frest-clean-bootstrap-admin-dashboard-template/
├── assets/
| ├── css/
| | ├── style-rtl.css
| | └── style.css
| ├── js/
| | └── scripts.js
| └── scss/
| ├── variables/
| | ├── _variables-components.scss
| | └── _variables.scss
| ├── style-rtl.scss
| └── style.scss
Folder/Files | Details |
---|---|
css |
Folder contains style.css file for
default text direction (LTR). If you are using the RTL
text direction use style-rtl.css . If you
are not familiar with SCSS, you can write your css in
in this files, it will override theme default css.
|
js |
Folder contains scripts.js file to write
your custom js.
|
scss |
Folder contains style.scss file for
default text direction (LTR). If you are using the RTL
text direction use style-rtl.scss .
|
scss/variables |
Folder contains
|
style.scss | Use this file to write your SCSS, it will override the theme default style. |
style-rtl.scss | Use this file to write your SCSS, if you are using RTL text direction. It will also override the theme default style. |
Tip
If you are not familiar with SCSS, you can write your css in
assets/css/style.css
file, it will override
theme default css.
If you are familiar with SCSS (Recommended method), you can easily change theme colors by changing the
Bootstrap Theme color variables. Use
assets/scss/variables/_variables.scss
file to
override Bootstrap variables.
Ex: Change the Primary color of the template
// ================================================================================================
// ? TIP: It is recommended to use this file for overriding bootstrap variables.
// ================================================================================================
$primary: #ff5b5c; // Changing primary color
Use gulp scss-compile
or gulp monitor to compile
these scss. Bingo! You just changed primary color everywhere
in the theme.
Similarly you can change other bootstrap colors (i.e secondary, success, danger etc...) and other bootstrap variables (i.e $h1-font-size, $table-cell-padding etc..) too.
Tip
Use
assets/scss/variables/_variables-components.scss
file for overriding component variables i.e $base-font-size.
If you are not familiar with SCSS (Not recommended
method), you can change the style attribute by replacing the old
value with a new one in app-assets/css
folder.
Ex: To change the primary color of the template you need to
find color value #5a8dee
and replace it with new
color in app-assets/css
folder.
Heads Up!
It is not recommended to change any core files inside
app-assets/
folder to avoid future update
conflicts. If you still modify the file, it may require to
merge it manually with future updates.