Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to properly integrate HTML5 Boilerplate with Twitter Bootstrap?

In my Play 2.0 project I already have Bootstrap integrated (as the less files, Play can compile them in the fly) but now I found Boilerplate and I think it would be a nice idea to make use of it also.

After a bit of googling I found this: http://www.quora.com/Is-Bootstrap-a-complement-OR-an-alternative-to-HTML5-Boilerplate-or-viceversa

So, looks like integration should be possible, and there are even 2 projects which try to do that. The only problem is that they do completely different things and I'm not sure which one is correct.

https://gist.github.com/1422879 in its current state seems to just ignore styles.css file coming from Boilerplate. It's renamed to h5bp.css, but I don't see h5bp.css included anywhere.

https://github.com/elgreg/html5-boilerstrap on the other hand uses both of them, just splitting styles.css file into two parts (h5bp_normalize.css and styles.css, bootstrap.css is included between them). But aren't there any conflicts between Boilerplate and Bootstrap this way?

So I'm a bit lost. What is the proper way of doing things in this case?

like image 383
Piotr Kukielka Avatar asked Jan 08 '12 18:01

Piotr Kukielka


People also ask

Is Bootstrap a boilerplate?

Boilerplate is more server-side oriented – a good starting template if you work with server-side technologies such as PHP. Bootstrap is a client-side solution – a complete toolkit for building client-side web sites. Boilerplate is only a starting code base and you can add whatever components you need later on.

Is twitter bootstrap responsive?

With Bootstrap 2, we've gone fully responsive. Our components are scaled according to a range of resolutions and devices to provide a consistent experience, no matter what.

Is twitter built with Bootstrap?

Bootstrap, originally named Twitter Blueprint, was developed by Mark Otto and Jacob Thornton at Twitter as a framework to encourage consistency across internal tools.


2 Answers

Just use Initializr, it's the semi-official solution and it has a huge set of options too. Bootstrap + H5BP is supported out of box!

http://www.initializr.com/

like image 119
hyperknot Avatar answered Sep 21 '22 05:09

hyperknot


I've removed reset styles from twitter bootstrap(by removing less @import statement) and pasted it into html5-boilerplate(in user styles section). Worked fine.

like image 29
welldan97 Avatar answered Sep 22 '22 05:09

welldan97