Build tools
Learn how to use Material Dashboard Pro using NPM scripts to build your admin theme, compile SCSS, change brand-colors and more.
Change brand colors
- You will find all the branding colors inside assets/scss/variables/_brand.scss. You can change them with aHEXvalue or with other predefined variables fromassets/scss/variables/_colors.scss.
Compile SCSS
- Download the project’s zip.
- Make sure you have node.js installed.
- Type npm installin terminal/console in the source folder wherepackage.jsonis located.
- Run in terminal gulp open-appfor opening the Dashboard Page (default) of the product. You can set in gulpfile.js from your downloaded archive any page you want to open in browser, at line 30:gulp.src('examples/dashboard.html').
- Run in terminal gulp compile-scssfor a single compilation orgulp watchfor continous compilation of the changes that you make in*.scssfiles. This command should be run in the same folder wheregulpfile.jsandpackage.jsonare located.
Using input labels in a form
You have two use-cases for using the inputs label inside of a form:
- .bmd-label-staticis recommended for using with a placeholder for an input
<div class="form-group bmd-form-group">
  <label class="bmd-label-static">Fist Name</label>
  <input type="text" class="form-control" placeholder="Your name here">
</div>- .bmd-label-floatingis recommended for using without the placeholder
<div class="form-group bmd-form-group">
  <label class="bmd-label-floating">Fist Name</label>
  <input type="text" class="form-control">
</div>