Documentation v8.1.9

SASS

Metronic Laravel  uses SASS , the most powerful CSS preprocessor for handling the theme css efficiently. Sass is the most mature, stable, and powerful professional grade CSS extension language in the world.

Components

Components folder in /resources/assets/[demo]/sass/components/ contains SASS code that customizes the core Bootstrap components to match the Metronic's own design system and custom components. Both Metronic Laravel  and Bootstrap  components are customized in /resources/assets/[demo]/sass/_variables.scss.

Bootstrap Variables

In /resources/assets/[demo]/sass/_variables.scss file, Metronic Laravel  deeply customizes the standard Bootstrap  components by following the best practices explained in the official documentation.
Custom variables that used to customize Bootstrap components are marked with Custom variable comment in _variables.scss file.

Override Variables

If you like to change the Bootstrap theme colors, border radiuses, font family and other variables, we suggest using _variables.custom.scss file so you keep your own changes separated from future updates to avoid conflicts. All variables to override in this file should be set without the !default attribute to prioritize your code change.

Layout

Layout related SASS code is located in /resources/assets/[demo]/sass/layout/ folder. This folder contains the layout's markup and SASS variables files as explained in the below table:
File Description
_variables.scss Variables used by Layout Partials. You can easily change Aside width, header height and other common properties.
_layout.scss Defines main layout and its dependencies.
_main.scss Defines base markup and styles.
_header.scss Defines base layout markup and styles.
_footer.scss Defines footer markup and styles.

Compilation

  • Metronic Laravel  compiles layout, components(including the Bootstrap & custom components) into the main bundle: /public/[demo]/css/style.bundle.css.
  • The custom SASS files are compiled separately into CSS folder: /public/[demo]/css/custom
  • All 3rd-party plugins css files are bundled into the plugins bundle CSS file and globally included in all pages. /public/[demo]/plugins/global/plugins.bundle.css.