Installation guide
Manual installation (zip package)
Step 1: Download MDB Free or MDB Pro package.
Step 2: Unzip downloaded package and open it in the code editor.
Step 3: Explore our documentation (menu on the left). Choose components you like, copy it to your project and compose your website. And yes, it's that simple!
NPM installation
Step 1: Create new folder for your project and install MDB Free:
mkdir myapp
cd myapp
npm i mdbootstrap
Step 2: Open the project in the code editor.
Step 3: Create index.html
file.
Step 4: import styles inside <head></head>
section:
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<link rel="stylesheet" href="node_modules/mdbootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="node_modules/mdbootstrap/css/mdb.min.css">
<link rel="stylesheet" href="node_modules/mdbootstrap/css/style.css">
Step 5: Inside <body></body>
section import JavaScript:
<script type="text/javascript" src="node_modules/mdbootstrap/js/jquery.min.js"></script>
<script type="text/javascript" src="node_modules/mdbootstrap/js/popper.min.js"></script>
<script type="text/javascript" src="node_modules/mdbootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="node_modules/mdbootstrap/js/mdb.min.js"></script>
Step 6: Open index.html
on your web browser.
Step 1: Create new folder for your project and install MDB Free:
mkdir myapp
cd myapp
npm i mdbootstrap
Step 2: Open the project in the code editor.
Step 3: Generate new GitLab token (see token generation section).
Step 4: Use generated token to install MDB Pro package:
npm install git+https://oauth2:YOUR_TOKEN_GOES_HERE@git.mdbootstrap.com/mdb/jquery/jq-pro.git
--save
Step 5: Create index.html
file.
Step 6: Import styles inside <head></head>
section:
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<link rel="stylesheet" href="node_modules/mdbootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="node_modules/mdbootstrap/css/mdb.min.css">
<link rel="stylesheet" href="node_modules/mdbootstrap/css/style.css">
Step 7: Inside <body></body>
section import JavaScript:
<script type="text/javascript" src="node_modules/mdbootstrap/js/jquery.min.js"></script>
<script type="text/javascript" src="node_modules/mdbootstrap/js/popper.min.js"></script>
<script type="text/javascript" src="node_modules/mdbootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="node_modules/mdbootstrap/js/mdb.min.js"></script>
Step 8: Open index.html
on your web browser.
CDN installation
If you are looking for MDB Free and prefer use CDN than install or download package feel free to visit: https://mdbootstrap.com/md-bootstrap-cdn
If you are looking for MDB Free and prefer use CDN than install or download package feel free to visit: https://mdbootstrap.com/md-bootstrap-cdn
Token generation
Step 1: Visit https://git.mdbootstrap.com and log in. If you are a PRO user, you should receive an email (from GitLab) with an activation link, after purchase (please check your spam folder as well). This email is send to the email address used for billing.
Step 2: From top right corner click at your avatar and choose "Setting → Access Tokens."
Step 3: Provide a Name for your token and choose "api" from scopes. Then click "Create
personal access token"
Step 4: Once your token will be generated make sure to copy it and store in safe place.
You won't be able to access it again. In case of lose, you will have to generate new token
again.
Plugin installation
Step 1: Import plugin styles inside <head></head>
section
(after the mdb.css styles):
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/mdb.min.css">
<!-- Plugin file -->
<link rel="stylesheet" href="./css/addons/datatables.min.css">
<link rel="stylesheet" href="css/style.css">
Step 2: Before closing <body></body>
tag import JavaScript
file:
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/popper.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/mdb.min.js"></script>
<!-- Plugin file -->
<script src="./js/addons/datatables.min.js"></script>
Step 3: Initialize (if required) component inside custom
<script></script>
tags.
<script>
$(document).ready(function () {
$('#dtBasicExample').DataTable();
$('.dataTables_length').addClass('bs-select');
});
</script>
Step 1: Import plugin styles inside <head></head>
section
(after the mdb.css styles):
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/mdb.min.css">
<!-- Plugin file -->
<link rel="stylesheet" href="./css/addons-pro/multi-range.min.css">
<link rel="stylesheet" href="css/style.css">
Step 2: Before closing <body></body>
tag import JavaScript
file:
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/popper.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/mdb.min.js"></script>
<!-- Plugin file -->
<script src="./js/addons-pro/multi-range.min.js"></script>
Step 3: Initialize (if required) component inside custom
<script></script>
tags.
<script>
$(document).ready(function () {
$('#multi').mdbRange({
single: {
active: true,
multi: {
active: true,
rangeLength: 1
},
}
});
});
</script>
Installation guide for the specific plugin is available in the plugin documentation.
List of all plugins can be found in the plugins and addons section.