BlueTripCSS Framework - Blueprint meets Tripoli

CSS Frameworks have been a hot topic the past few months. Although they've been getting a lot of heat from semantic freaks and minimalists (for adding unnecessary code), I think they're a step forward. As I've said before, web design is about doing things quickly and beautifully. No matter how you feel about frameworks, it's undeniable that they speed up the design process. I'm a fan.

With this in mind, I searched everywhere for every snippet of every framework I could find. I've tried 960.gs, Blueprint, LogiCSS, YAML, Elements, YUI, and Boilerplate, among a few others. I even discussed the pros and cons of each of them. Finally, I decided to combine the good points of each of them to get something that I was satisfied with. Since most of it came from BlueprintCSS or Tripoli, I'm calling it BlueTrip. Why not?

Let me preface this by saying that 90% of the code in BlueTrip is not mine. I've pretty much taken the entire grid from Blueprint (with a bunch of my own changes) and the entire typography from Tripoli (with a bunch more of my changes). I don't intend for this to be on the same level as those guys...it's just what I've made for myself and I thought someone else might like to take a look. Now let's have a look.

VIEW THE DEMOS
- Typography Demo
- Grid Demo

DOWNLOAD IT

Things taken from BlueprintCSS:
- The grid - 24 column grid with a few of the class names changed around
- A couple plugins (fancy type, external links, and buttons)

Things taken from Tripoli
-The form elements - I like not having to add class="text" to them.
-Most of the typography - I like the greater line spacing and everything just looks a little cleaner.
-The tables - Padding is good.
-The blockquotes - Very dramatic looking.

Thing (just one!) taken from 960.gs
-Naming conventions (especially prefix and suffix rather than prepend and append)

Grid Usage

First things first, go into "screen.css" and change the reference to "yourwebsite.com" to the actual URL of your website.

Then, make sure you link to the correct stylesheets:

HTML:
  1. <link rel="stylesheet" href="../css/screen.css" type="text/css" media="screen, projection">
  2. <link rel="stylesheet" href="../css/print.css" type="text/css" media="print">
  3. <!--[if IE]>
  4.     <link rel="stylesheet" href="../css/ie.css" type="text/css" media="screen, projection">
  5. <![endif]-->
  6. <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen, projection">

Then, surround all of your content with a div class="container". Or, if you'd like to view the grid in the background to assist in design, make it div class="container showgrid".

HTML:
  1. <div class="container showgrid">
  2.       <!-- CONTENT GOES HERE -->
  3. </div>

Now, you can do pretty much anything you want. Just like Blueprint, set the width of a div using class="span-XX" where XX is the number of columns you want that div to occupy. If you want to add empty columns to the beginning of a column, use class="prefix-XX" instead of prepend, or if you want them on the end, use class="suffix-XX" instead of append. I kept finding myself trying to remember if append came before or after, so I changed it.

Whenever a column is the last column in a row of columns, make sure to add class="last" so that everything lines up correctly. That's pretty much it. Here's a more complete example:

HTML:
  1. <div class="container">
  2.     <div class="span-24">Header</div>
  3.     <div class="span-3 suffix-1">Left sidebar</div>
  4.     <div class="span-16">
  5.         <div class="span-8">Box1</div>
  6.         <div class="span-4">Box2</div>
  7.         <div class="span-4 last">Box3</div>
  8.         <div class="span-16 last">Main content</div>
  9.     </div>
  10.     <div class="span-4 last">Right sidebar</div>
  11.     <div class="span-24">Footer</div>
  12. </div>

For some more usage instructions, view the source code of the grid demonstration (link above).

Typography Usage

Most of the typography will work itself out. I've added Blueprint's pretty links plugin, so external links, or special links (such as pdf's, doc's, rss feeds, etc.) will get a little icon next to them so users know what they're clicking on. Forms should also prettify themselves without any extra work from you. Tables, blockquotes, all that good stuff is also styled sensibly by default (thanks to Tripoli).

I've also kept Blueprint's status messages, so adding class="success" or class="notice" or class="error" will get you some really clean looking status messages to use. There are a few other text classes to take a look at, and you can use them all or ignore them completely if you don't think they're necessary. I liked them, so I kept them.

Adding Your Own Styles

Do not change any of the three stylesheets, because that will make upgrading to later versions a pain. I've included a "style.css" that's more or less empty so you can make your own changes to it, overriding anything that's in BlueTrip or adding things.

And that's that. I've included the license (GPL or MIT) so feel free to do whatever you want with it.

Once again, I won't flatter myself into thinking that this is a full fledged CSS framework. It's just a combination of the EXCELLENT work of others all rolled into one neat little package. If you think it's too much, then go check out Boilerplate or something a little more minimalistic. I knew what I wanted, and I thought there was a chance that perhaps somebody else was looking for the same thing. I hope you found something you liked.

Please let me know if you try it out and find bugs or have recommendations!

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Fark
  • Furl
  • YahooMyWeb

19 Responses to “BlueTripCSS Framework - Blueprint meets Tripoli”

  1. emery Says:

    Mike you are the man!! this is awesome, thanks!

  2. Mahmudul Hasan Says:

    I just used this. Good Work.

  3. Mike Says:

    Thanks guys. Let me know if you find any bugs or have any recommendations.

  4. Vogel Says:

    Excellent framework Mike. It worked great for my site.

  5. CSS Frameworki: czym są i gdzie je szukać Says:

    […] BlueTripCSS Jest to modyfikacja Blueprint CSS. […]

  6. Marcelo Says:

    Mike, your grid demo does not work as expected, should be a bug ?

    Take a look at the 123453 suffix example and 24 span-1 block lines.

    I will use it for sure ;-)

    Thanks.

  7. Mike Says:

    Nice catch Mercelo. I fixed it. Lines 301 and 302 of screen.css needed to be removed (they were the CSS declarations for .container .first and .container .last). They are deprecated. Thanks for that and for the comment.

  8. praveen Says:

    Wow! nice stuff. I found first,last better than alpha, omega. Nice convention finally.

  9. Shark Says:

    Dam fine work! Thank you very much.

  10. Wired Raven Says:

    This looks like exactly what I’ve been looking for - thank you for sharing your work. I had planned altering Blueprint to improve the typo but now I don’t even have to do that and can dive straight into design.

    Best wishes

  11. Jermaine Maree Says:

    The clearfix solution causes issues with background images in a div and padding of elements. it ends up adding space at the bottom of the div. After searching profusely and getting yelled at by SWMBO to come to bed I found the following:

    http://www.sitepoint.com/blogs/2005/02/26/simple-clearing-of-floats/

    Might help others that have ran into a similar issue.

  12. CSS Framework Roundup | Konigi Says:

    […] BlueTrip Combines the grid system from Blueprint with the typography from Tripoli. […]

  13. jitendra Says:

    this framework or all the stuff have u done is good , but i want to know

    1. can i use blueprint grid generator with this ?
    2. can i use the blueprint plugin like silkicon , silkflag with this framework?

  14. Fabricio Says:

    The best css framework so far , it’s time for some extreme design ,thanx bro nice work.

  15. Mike Says:

    @jitendra

    The blueprint grid generator will not really be useful with BlueTrip unless you just want to take out the built in grid and paste in the generated code. It would work but it might take some tweaking.

    All of the plugins should work correctly.

  16. snlr Says:

    There are some “…:before {container:…}” in screen.css, shouldn’t that be ‘content’?

  17. snlr Says:

    Line 304 “.container .error, .notice, .success {…}” might be a flaw, it looks a bit like it was meant to say “.container .error, .container .notice, .container .success {…}”.

  18. Mike Says:

    @snlr

    Right on both counts. The second one had been fixed months ago, not sure how it found it’s way back in there. Thanks for checking and improving BlueTrip.

  19. snlr Says:

    Apropos checking Bluetrip - great work! Just implemented it into the CMS of my choice. Instant Awesomeness.

Leave a Reply