0

I'm looking to use something like Twitter's bootstrap to help me ease some of the pains of creating and working with some of the common design issues. However, I still fully intend to do a whole bunch of styling and stuff outside of their prepared stuff.

Would this be a bad idea? Potential conflicts down the road? Should I try to build on top of and use bootstrap as much as possible?

Kaitlyn2004
  • 3,879
  • 4
  • 16
  • 16
  • I certainly hope it's not a bad idea, I'm doing the same thing :-) The only problem I anticipate is some potential class name clashes because the framework is so big...but if you're starting from scratch you can avoid them. – mpen Jan 05 '13 at 07:44
  • The framework was not meant to make all sites look the same, so yes override, you should also look into modifying the Less code directly (by adding extra files, so that you can upgrade easily). – Sherbrow Jan 05 '13 at 11:48

3 Answers3

1

twitter bootstrap is great to get started and its exactly what it intends on helping developers. Instead of creating a lot of stuff from scratch, you got pretty much everything you need for a basic-to-medium frontend so you don't have to worry about it.

As you build your application, there will be times where you would need, for example, to replace the color of the buttons. So instead of having a .btn-primary be blue you want it pink.

you can override the .btn-primary in your own css, or even better, see how it behaves, copy the styles, change what you need and use your .pink-btn-primary.

Little by little your css would stop being twitter bootstrap and become your own variation, with the ability to rely on features being added to bootstrap with time.

Relying on bootstrap has a bit of a shortcoming - if a bug is fix or a new version changes its behavior (rare on css, but very possible on js) you will have to adjust to make sure you get the behavior that you want.

Also, You should be careful, as suggested, not to use their class names, and make sure you load your css files after bootstrap files.

good luck.

Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244
1

Bootstrap is meant to be used to build on top of and overwrite so you get the design you want.

As always, using Bootstrap depends on the project.

It makes starting out very easy but like most frameworks you don't always want to go against them, so you have to take them into consideration in the early stages of your design. Bootstrap relies heavily on wrapper elements and classes so using it for an existing website where the markup can't be changed won't work out for you.

Example: Their grid system works really well for their fluid container layouts but the default is 12 columns and you will want to look at all their customisation options to change this.. or see examples of using the .less pre-processor with Bootstrap and these settings apply a set margin that may not always work out for you, and you have to start thinking differently.. such as how you can nest elements to achieve the design you want, or start testing with new overwritten margin sizes.

You also need to consider any other frameworks you may be building on, e.g. ASP.NET MVC has a lot of built in features such as the client validation, and HTML helpers for form elements.. but they don't always allow you to apply wrapper elements and class names to them unless you first right your own extension of them.

Bootstrap has an Apache v2.0 license which says

irrevocable copyright license to reproduce, prepare Derivative Works of

so as long as you keep the copyright license they allow you to change bootstrap as you see fit, obviously you shouldn't look to change what they have already extensively tested for you and you would rather just overwrite some things, but the option is always there.

Community
  • 1
  • 1
Pricey
  • 5,799
  • 12
  • 60
  • 84
0

I think most developers do not just use the prepared stuff, they always add some customization on top of it. As for CSS styling, You can keep the bootstrap.min.css file intact and write your custom css on another CSS file. If Bootstrap updates in future you can just replace that original bootstrap.min.css file and maybe have to make some minor adjustments.

Salman
  • 3,761
  • 2
  • 23
  • 34