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
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:
-
<link rel="stylesheet" href="../css/screen.css" type="text/css" media="screen, projection">
-
<link rel="stylesheet" href="../css/print.css" type="text/css" media="print">
-
<!--[if IE]>
-
<link rel="stylesheet" href="../css/ie.css" type="text/css" media="screen, projection">
-
<![endif]-->
-
<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".
-
<div class="container showgrid">
-
<!-- CONTENT GOES HERE -->
-
</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:
-
<div class="container">
-
<div class="span-24">Header</div>
-
<div class="span-3 suffix-1">Left sidebar</div>
-
<div class="span-16">
-
<div class="span-8">Box1</div>
-
<div class="span-4">Box2</div>
-
<div class="span-4 last">Box3</div>
-
<div class="span-16 last">Main content</div>
-
</div>
-
<div class="span-4 last">Right sidebar</div>
-
<div class="span-24">Footer</div>
-
</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!











May 20th, 2008 at 11:11 pm
Mike you are the man!! this is awesome, thanks!
May 23rd, 2008 at 6:50 am
I just used this. Good Work.
May 23rd, 2008 at 7:38 am
Thanks guys. Let me know if you find any bugs or have any recommendations.
June 2nd, 2008 at 10:41 am
Excellent framework Mike. It worked great for my site.
June 5th, 2008 at 12:39 am
[…] BlueTripCSS Jest to modyfikacja Blueprint CSS. […]
June 5th, 2008 at 4:52 pm
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.
June 5th, 2008 at 6:22 pm
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.
June 28th, 2008 at 3:09 pm
Wow! nice stuff. I found first,last better than alpha, omega. Nice convention finally.
July 5th, 2008 at 9:04 pm
Dam fine work! Thank you very much.
July 18th, 2008 at 10:45 am
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
July 21st, 2008 at 11:21 pm
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.
August 3rd, 2008 at 8:08 am
[…] BlueTrip Combines the grid system from Blueprint with the typography from Tripoli. […]
August 7th, 2008 at 1:49 am
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?
August 13th, 2008 at 3:00 pm
The best css framework so far , it’s time for some extreme design ,thanx bro nice work.
August 19th, 2008 at 12:49 pm
@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.
August 26th, 2008 at 11:45 pm
There are some “…:before {container:…}” in screen.css, shouldn’t that be ‘content’?
August 27th, 2008 at 12:24 am
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 {…}”.
August 27th, 2008 at 7:45 am
@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.
August 27th, 2008 at 9:19 am
Apropos checking Bluetrip - great work! Just implemented it into the CMS of my choice. Instant Awesomeness.