Bootstrap 4 UI Kit with Material Design - MDBootstrap
A free, responsive UI kit that adds Material Design components to Bootstrap 4 for developers and designers.
By mdbootstrap mdbootstrap/material-design-for-bootstrap 9,237 stars
Introduction
MDBootstrap (Material Design for Bootstrap) is a free UI kit that adds Material Design components to Bootstrap 4. It provides ready‑made HTML, CSS, SCSS and JavaScript files that can be used to build responsive, mobile‑first websites without any server‑side processing.
What this project offers
- Over 500 ready‑made UI elements
- More than 600 Material Design icons
- 77 CSS animations and 9 useful JavaScript plugins
- SCSS source files for easy customization
- Sample HTML pages and templates
All assets are delivered as static files that work in any modern web browser.
Main features
- Responsive layout – components adapt to all screen sizes.
- Material Design styling – combines Bootstrap’s grid system with Material Design visual language.
- Ready‑to‑use CSS and JS – minified files such as
css/mdb.min.cssandjs/mdb.min.js. - Add‑on libraries – DataTables, rating, flag icons, hierarchical display, etc., located in
css/addons/andjs/addons/. - SCSS source – organized in
scss/with variables, mixins and component files for custom builds.
Technology stack
- Bootstrap (core CSS and JS)
- jQuery (required for many components)
- MDB CSS/JS (Material Design implementation)
- SCSS for source styles
Requirements
- A web browser (Chrome, Firefox, Edge, Safari, etc.)
No server‑side runtime or build tools are required.
Installation
- Download the ZIP file
/download/mdbootstrap-ui-kit.zip
- Extract the archive to a folder of your choice.
unzip mdbootstrap-ui-kit.zip -d mdbootstrap
- Open the demo page to verify the installation.
# On Windows double‑click the file
# On macOS or Linux you can use:
open mdbootstrap/index.html
The page will load css/bootstrap.min.css, css/mdb.min.css, js/jquery.min.js, js/bootstrap.min.js and js/mdb.min.js from the local folders.
- Add the files to your own project
- Copy the
css/folder (or only the needed CSS files) into your project’s CSS directory. - Copy the
js/folder (or the required JS files) into your project’s JavaScript directory. - Include the files in your HTML head and before the closing
</body>tag, following the pattern shown inindex.html:
- Copy the
<!-- CSS -->
<!-- JS -->
- Deploy
- For local testing, open the HTML file directly in a browser.
- To publish, upload the HTML, CSS and JS folders to any static‑hosting service (GitHub Pages, Netlify, Vercel, shared hosting, etc.) and ensure the file paths remain the same.
Configuration
The kit does not require runtime configuration. All behavior is controlled through the included CSS classes and JavaScript plugins. If you need to change default colors or breakpoints, edit the SCSS files in the scss/ folder and recompile (requires a separate SCSS compiler, which is outside the scope of this static distribution).
Customizing the project
- SCSS customization – modify
_custom-variables.scssor create your own SCSS files and import them beforemdb-free.scss. - Add or remove components – delete unwanted files from
css/addons/andjs/addons/to reduce page weight. - Override styles – place custom rules in
css/style.css(already linked after the MDB stylesheet) to ensure they take precedence.
Project structure
css/
addons/ # extra component styles
bootstrap.min.css
mdb.min.css
style.css # optional custom overrides
js/
addons/ # extra component scripts
jquery.min.js
popper.min.js
bootstrap.min.js
mdb.min.js
scss/
_custom-variables.scss
_custom-styles.scss
addons/
core/
free/
mdb-free.scss
index.html # demo entry page
exclusive-templates/
unlock-exclusive-freebies.html
img/ # images and icons
license.txt
package.json
README.md
Tips
- Keep the folder structure (
css/,js/,img/) unchanged when moving files to a new project; relative paths inindex.htmlrely on it. - Use the minified files (
*.min.css,*.min.js) for production to reduce load time. - When you need only a subset of components, include only the corresponding files from
css/addons/andjs/addons/. - The demo page (
index.html) shows how to load the core files and a custom stylesheet; copy that pattern for new pages.
License and attribution
MDBootstrap is released under the MIT License. See the original repository for the full license text: https://github.com/mdbootstrap/material-design-for-bootstrap
Please keep the license.txt file in your distribution and give credit to the author as required by the MIT license.
Use this prompt with an AI coding assistant (Claude Code, Cursor, ChatGPT and similar) to add MDBootstrap to a website or app you already have.
- Download the ZIP and put the project next to your own code.
- Fill in the bracketed parts, such as
[describe your stack]. - Paste the prompt into your assistant and review each change it proposes.
# Integrate MDBootstrap **Role** You are a senior frontend developer assisting me in adding MDBootstrap (Material Design for Bootstrap) to my existing web application. **Project description** MDBootstrap is a free UI kit that extends Bootstrap 4 with Material Design components. It provides ready‑made HTML, CSS, SCSS, and JavaScript files, including a full set of UI elements, icons, animations, and plugins. The repository contains static assets (HTML pages, CSS, JS, images) and does not require a build step. **Source project** - Repository: https://github.com/mdbootstrap/material-design-for-bootstrap - License: MIT - Base framework: Bootstrap (version not specified) - Package version: 4.20.0 (from `package.json`) - Main assets: - CSS: `css/bootstrap.min.css`, `css/mdb.min.css`, `css/style.css`, plus many addon CSS files under `css/addons/` and `css/modules/` - JS: `js/jquery.min.js`, `js/popper.min.js`, `js/bootstrap.min.js`, `js/mdb.min.js`, plus addon JS files under `js/addons/` and `js/modules/` - SCSS source files under `scss/` (optional if I want to customize) - Images under `img/` and `img/lightbox/` **Target project context** - My stack: `[describe your stack, e.g. Laravel 11 + Blade]` - UI placement: `[where the UI should go, e.g. inside the main layout file or a specific view]` - Existing CSS framework: `[existing CSS framework, e.g. Tailwind, Bootstrap 5, none]` **Integration objectives** - Add MDBootstrap’s CSS and JS so I can use its Material Design components. - Preserve existing layout and routing. - Make the MDBootstrap demo page (`index.html`) or selected components available within my app. - Keep the site responsive and accessible. **Required components** - Core CSS: `css/bootstrap.min.css`, `css/mdb.min.css`, `css/style.css` - Core JS: `js/jquery.min.js`, `js/popper.min.js`, `js/bootstrap.min.js`, `js/mdb.min.js` - Optional addons I may need (e.g., datatables, rating, flag icons) located in `css/addons/` and `js/addons/`. - Example HTML structure from `index.html` (or `exclusive-templates/unlock-exclusive-freebies.html`) to copy component markup into my templates. **Layout and styling requirements** - Load MDBootstrap CSS after any existing framework CSS to let its styles override where needed. - If my app already uses Bootstrap, ensure only one version is loaded; otherwise remove duplicate `bootstrap.min.css`/`bootstrap.min.js`. - Use a custom class prefix (e.g., `mdb-`) on wrapper elements if I need to scope MDBootstrap styles and avoid clashes. - Keep my design tokens (colors, fonts) by overriding MDBootstrap variables in a custom SCSS file (`scss/_custom-variables.scss`) and recompiling if I choose to use SCSS. **Asset management** - Copy the required CSS files into my project’s public CSS directory (e.g., `public/css/`). - Copy the required JS files into my public JS directory (e.g., `public/js/`). - Copy images from `img/` (including `mdb-favicon.ico` and any icons used by components) into my public image folder. - Alternatively, reference the CDN versions of Bootstrap and MDBootstrap if I prefer not to host the files locally, but ensure the same version (4.20.0) is used. - Do not duplicate libraries that already exist in my project; remove any redundant copies after confirming they are not needed. **Routing and navigation** - Keep my existing routes unchanged. - Insert MDBootstrap component markup into existing view files or create new Blade/HTML partials that are included where needed. - If I expose a new page (e.g., a demo page), map its URL to an existing route or add a new route that points to the view containing the copied `index.html` content. **Responsive requirements** - MDBootstrap is built to be responsive; ensure the viewport meta tag (``) is present in my base layout. - Test components on common breakpoints (mobile, tablet, desktop) after integration. **Accessibility requirements** - MDBootstrap components include ARIA attributes; verify they remain intact after copying markup. - Ensure contrast ratios meet WCAG AA by checking custom colors against my design tokens. - Test keyboard navigation for interactive components (modals, dropdowns, carousels). **Compatibility requirements** - Uses Bootstrap 4 (no specific version listed). - No build step is required; assets can be used directly. - If I decide to customize SCSS, I must compile the SCSS files myself using a Sass compiler compatible with my project’s tooling. **Preserve the existing application** - First, inspect the existing codebase before changing any file. - Do not replace authentication, routing, state management, or data‑layer code. - Make only small, reviewable changes (e.g., adding `` and `` tags, copying component markup). - Ask before deleting any existing files or libraries. **Testing and verification checklist** - [ ] Verify that the page loads without console errors after adding MDBootstrap CSS/JS. - [ ] Confirm that Bootstrap and MDBootstrap styles are not duplicated (only one version of each library). - [ ] Check that the copied component markup renders correctly and matches the original demo. - [ ] Test responsiveness at mobile, tablet, and desktop widths. - [ ] Run accessibility checks (e.g., axe, Lighthouse) for ARIA compliance and color contrast. - [ ] Ensure existing routes and navigation still work unchanged. - [ ] Validate that any optional addons (datatables, rating, etc.) function if they are included. - [ ] Confirm that images and icons from `img/` display correctly. - [ ] Review the final HTML/CSS for any unintended style overrides.



