# How-to use Material Design for Bootstrap (MDB) UI Kit with Pinegrow

**URL:** https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990
**Category:** Tutorials
**Created:** [April 21, 2020, 1:00pm UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990 "2020-04-21T13:00:18Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)
#### Post date: [April 21, 2020, 1:00pm UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990/1 "2020-04-21T13:00:18Z")

</div>

This tutorial is now available from: [https://pinegrow.com/tutorials/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/](https://pinegrow.com/tutorials/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/)

Have questions or comments about this tutorial? Let’s talk about it!

---

<div class="post-metadata">

### Author: ![alexey](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/alexey/32/1727_2.png) [@alexey](https://forum.pinegrow.com/u/alexey)
#### Post date: [April 22, 2020, 3:59am UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990/2 "2020-04-22T03:59:35Z")

</div>

Thank you very very much for MDB!!! It’s magic!!!

---

<div class="post-metadata">

### Author: ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)
#### Post date: [April 22, 2020, 8:44am UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990/3 "2020-04-22T08:44:42Z")

</div>

Glad you find this tutorial useful! 😉

---

<div class="post-metadata">

### Author: ![AllMediaLab](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/allmedialab/32/2079_2.png) [@AllMediaLab](https://forum.pinegrow.com/u/AllMediaLab)
#### Post date: [April 22, 2020, 10:12am UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990/4 "2020-04-22T10:12:00Z")

</div>

Thanks for the nice tutorial!

Only wish they made separate CSS for every module. If you only use one block it cost you 271kb!  
With the Pro version it’s even more with JavaScript etc.  
I suppose there is no way to get the individual CSS an JavaScript for individual blocks?

Then I prefer the way @BenHanna has made the blocks, with individual CSS blocks that you can copy to your main CSS!

Regards,  
David

---

<div class="post-metadata">

### Author: ![Pinegrow\_User](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/pinegrow_user/32/4919_2.png) [@Pinegrow\_User](https://forum.pinegrow.com/u/Pinegrow_User)
#### Post date: [April 22, 2020, 2:26pm UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990/6 "2020-04-22T14:26:04Z")

</div>

> [@AllMediaLab](#):
>
> Only wish they made separate CSS for every module. If you only use one block it cost you 271kb! With the Pro version it’s even more with JavaScript etc. I suppose there is no way to get the individual CSS an JavaScript for individual blocks?
> 
> Then I prefer the way @BenHanna has made the blocks, with individual CSS blocks that you can copy to your main CSS!

Hopefully that will be addressed soon through this upcoming discussed feature by @matjaz ?

> > [@What extensions the Pinegrow team is working on](https://forum.pinegrow.com/t/what-extensions-the-pinegrow-team-is-working-on/3845/1):
> >
> > Improved Blocks / Components where it will be possible to have per-component style / JS and only include that in the project if the component is actually used. This feature will also make it easier for other developers to create libraries with reusable blocks / components.

> [@What extensions the Pinegrow team is working on](https://forum.pinegrow.com/t/what-extensions-the-pinegrow-team-is-working-on/3845/16):
>
> @matjaz, Will this improvement finally be somewhat relative to what was discussed back in 2016? thinking crossed_fingers

---

<div class="post-metadata">

### Author: ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)
#### Post date: [April 22, 2020, 2:41pm UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990/7 "2020-04-22T14:41:02Z")

</div>

@AllMediaLab It is possible to customize the mdb-free.scss and remove the parts you don’t want / need.

 ![Screenshot 2020-04-22 16.36.06](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/d/d7946c7473c71756b7104625d418c7baa146031a.jpeg)

I haven’t looked at the details, but I guess it is also possible to tweak the JS file.

---

<div class="post-metadata">

### Author: ![AllMediaLab](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/allmedialab/32/2079_2.png) [@AllMediaLab](https://forum.pinegrow.com/u/AllMediaLab)
#### Post date: [April 22, 2020, 3:41pm UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990/8 "2020-04-22T15:41:37Z")

</div>

Hi Emmanuel,

Thanks for pointing that out!

Would the compiling be easy in Pinegrow? I see some core SCSS stuff that I’m not sure on how to use that! Is this all needed? That’s still a lot! 133kb before compiling.

// CORE  
@import “core/mixins”;  
// Your custom variables  
@import “custom-variables”;  
@import “core/colors”;  
@import “core/variables”;  
@import “core/global”;  
@import “core/helpers”;  
@import “core/typography”;  
@import “core/masks”;  
@import “core/waves”;

Regards,

David

---

<div class="post-metadata">

### Author: ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)
#### Post date: [April 22, 2020, 3:53pm UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990/9 "2020-04-22T15:53:09Z")

</div>

Pinegrow will compile the SASS file and will generate the CSS.

---

<div class="post-metadata">

### Author: ![AllMediaLab](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/allmedialab/32/2079_2.png) [@AllMediaLab](https://forum.pinegrow.com/u/AllMediaLab)
#### Post date: [April 22, 2020, 4:05pm UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990/10 "2020-04-22T16:05:55Z")

</div>

Yes I understand, but the core is so huge that you don’t gain any bandwidth by compiling only the blocks you want. Most blocks are between 2 kB and 4 kB with one exception the forms 16kB.

That’s what I don’t like about these kind of frameworks! The way @BenHanna made the extensions is that you have the individual CSS for each block, that’s much better.

If the MDB was not so bloated I would purchase the Pro version, but considering € 200,- for a framework that is based on a Bootstrap version that has come to it’s end!? 🙄

---

<div class="post-metadata">

### Author: ![Pinegrow\_User](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/pinegrow_user/32/4919_2.png) [@Pinegrow\_User](https://forum.pinegrow.com/u/Pinegrow_User)
#### Post date: [April 22, 2020, 10:13pm UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990/11 "2020-04-22T22:13:18Z")

</div>

@AllMediaLab, Thats why what I referenced above remains an important part of workflows, given the abilities present. Time will tell, it doesnt seem to be something they wish to discuss or comment on much.

---

<div class="post-metadata">

### Author: ![AllMediaLab](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/allmedialab/32/2079_2.png) [@AllMediaLab](https://forum.pinegrow.com/u/AllMediaLab)
#### Post date: [April 23, 2020, 8:17am UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990/12 "2020-04-23T08:17:38Z")

</div>

I think the developers of Pinegrow are open for any discussion! Have a lot of wishes too, but not everything can be done when we want it.

---

<div class="post-metadata">

### Author: ![Pinegrow\_User](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/pinegrow_user/32/4919_2.png) [@Pinegrow\_User](https://forum.pinegrow.com/u/Pinegrow_User)
#### Post date: [April 23, 2020, 12:37pm UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990/13 "2020-04-23T12:37:23Z")

</div>

> [@AllMediaLab](#):
>
> I think the developers of Pinegrow are open for any discussion! Have a lot of wishes too, but not everything can be done when we want it.

The point is @matjaz himself has now discribed they are working on something(?) as referenced above in his own words. But yes I understand [not all things are applicable](https://forum.pinegrow.com/t/import-pinegrow-huge-project-from-mac-to-windows-unworkable/3986/5) in app as you know (hopefully that service solution works for you however).

---

<div class="post-metadata">

### Author: ![TechAkayy](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@TechAkayy](https://forum.pinegrow.com/u/TechAkayy)
#### Post date: [June 15, 2020, 3:01am UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990/14 "2020-06-15T03:01:14Z")

</div>

Thanks a bunch @Emmanuel for this excellent tutorial.

I’m a little stuck mid-way. So, once I finish organising my mdb template (named it **mdb\_pg\_template** ), how do I use it in new/existing projects?

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/d/d33d23f853acecfbc942d9788b19dc5af0cc29f6.png)

1. To use the above template in a **new project** , is there a way to do this in PG (or) the only way is to duplicate the mdb template folder in my mac finder & open the replicated folder in PG as new project?

2. To add the above template to an **existing project** , is it done by clicking on the activate button in the below screenshot? When I did, no resources got added to my index.html page. Would be great if you can extend your tutorial to set the resources for the mdb template project choosing the necessary resources - **is it just one css & one js file (or) should it include the sass file as well?**

![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/6/61711d253a2e653057d3b4d1d79655ae38929572.png)

---

<div class="post-metadata">

### Author: ![DavidK](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@DavidK](https://forum.pinegrow.com/u/DavidK)
#### Post date: [July 17, 2020, 1:09am UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990/15 "2020-07-17T01:09:33Z")

</div>

I followed the tutorial, and it works great. Now, I want to upgrade to a newer version of MDB. How best to do the update? Can anyone help with this?

---

<div class="post-metadata">

### Author: ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)
#### Post date: [July 17, 2020, 1:25pm UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990/16 "2020-07-17T13:25:16Z")

</div>

Which version do you want to use? Updating to use MDB 5 means you might run into difficulties as it is a newer version of Bootstrap than PG currently supports.

---

<div class="post-metadata">

### Author: ![DavidK](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@DavidK](https://forum.pinegrow.com/u/DavidK)
#### Post date: [July 17, 2020, 2:41pm UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990/17 "2020-07-17T14:41:12Z")

</div>

I currently have 4.18. I want to upgrade to 4.19, and I wish to keep the same folder structure as done in the Pinegrow tutorial. Thank you for responding.

---

<div class="post-metadata">

### Author: ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)
#### Post date: [July 17, 2020, 5:10pm UTC](https://forum.pinegrow.com/t/how-to-use-material-design-for-bootstrap-mdb-ui-kit-with-pinegrow/3990/18 "2020-07-17T17:10:11Z")

</div>

The easiest, if you want everything the same (using SCSS) with the new version, would probably be to just follow the tutorial again, but with the newer version downloaded.
