SCSS
Structure
Velzon has managed the scss file in the
( Velzon_v*/wwwroot/assets/scss )
folder.
We have used gulp-sass for scss compilation. You can add your custom scss in
the custom.scss
file instead of doing changes in the
app.scss
or other scss files as it will create conflicts in
future updates.
Structure
Velzon has managed the scss file in the
( Velzon_v*/wwwroot/assets/scss )
folder.
We have used gulp-sass for scss compilation. You can add your custom scss in
the custom.scss
file instead of doing changes in the
app.scss
or other scss files as it will create conflicts in
future updates.
Note
To change the theme of the project, make the necessary modifications in the SCSS (Sass) files.
After making the changes, go to the terminal and run the commands "yarn" and "gulp" to apply the changes.
Layout Structure
We have added all layouts files in the wwwroot/scss/structure
folder.
_footer.scss:
- Footer-related scss define in this file.
_horizontal.scss:
- Horizontal layout scss managed in this file.
_layouts.scss:
- Manage Boxed layout scss in this file.
_page-head.scss:
- Manage page heading scss in this file.
_topbar.scss:
- Topbar scss in this file.
_two-column.scss:
- Two Column scss in this file.
_vertical.scss:
- Vertical layout scss in this file.
Variables Structure
We have define all the variables in the
wwwroot/assets/scss/config/default
folder.
_variables.scss:
- All bootstrap variables are defined in this file.
Other scss file Structure
We have created all the scss files in the wwwroot/assets/scss
folder.
- components:
- All components related scss files are created in this folder.
- fonts:
- All fonts are imported in this scss file.
- pages:
- All the pages related scss are written in this folder and page wise scss are created i.e. _authentication.scss, _chat.scss, _dashboard.scss etc
- plugins:
- All the plugins ( Apex chart, ckeditor, full calendar etc ) are created in plugins folder.
- icons.scss:
- All icons scss are imported in this file.
Quick customization of layout using scss.
You can make changes in the
wwwroot/assets/scss/config/default/_variables.scss
file.
Variables | Description |
---|---|
$primary: $indigo; $secondary: $blue; $success: $green; $info: $cyan; $warning: $yellow; $danger: $red; $light: $gray-100; $dark: $gray-900; |
You can manage those colors to update color theme. |
$font-family-primary: 'Poppins', sans-serif; $font-family-secondary: 'hkgrotesk', sans-serif; |
You can set the default font in these variables. |
$vertical-menu-width: 250px; $vertical-menu-width-md: 180px; $vertical-menu-width-sm: 70px; |
Set the sidebar menu with in these variables. |