Whoa Cowboy, you've mozyed on over to an error! X
This here be a warning to you, just a warning! X
What kind of bug is a debug? X
Hi, I am info message X
Success, you sly dog you! X

Rebar

Rebar is a lightweight HTML5 / CSS3 framework for making responsive websites built using the LESS preprocessor

This Style Guide

This is a collection of CSS styles and corresponding HTML elements that are currently being styled. Use this code to develop the front-end of your website.

The CSS styles are all broken apart into smaller easy to manage LESS files that draw from configurable variables in the less/rebar/config.less file which is then compiled to CSS.

You can install Rebar using the Bower package manager by typing:

$ bower install rebar

If you're unfamiliar with LESS I suggest CodeKit for Mac OS, or Grunt which uses Node.js and runs on the command line.

About Rebar

Rebar is a collection of modular CSS files that helps rapidly develop sites that look beautiful at any size, be it a 17" laptop screen or an iPhone. It's based on a responsive grid, but also provides very basic CSS for typography, buttons, forms and media queries. Go ahead, resize this super basic page to see the grid in action.

Compact

Written with small file sizes in mind, the core rebar.css library is under 30K in size.


A Beautiful CSS Framework for Responsive Web-App Development




What Is It?

Rebar is a small collection of CSS files that can help you rapidly develop sites that look beautiful at any size, be it a 17" laptop screen or an iPhone. Rebar is built on three core principles:

Responsive Grid Down To Mobile

Rebar has a familiar, lightweight 960 grid as its base, but elegantly scales down to downsized browser windows, tablets, mobile phones (in landscape and portrait). Go ahead, resize this page!

Fast to Start

Rebar is a tool for rapid development. Get started fast with CSS best practices, a well-structured grid that makes mobile consideration easy, an organized file structure and super basic UI elements like lightly styled forms, buttons, tabs and more.

Style Agnostic

Rebar is not a UI framework. It's a development kit that provides the most basic styles as a foundation, but is ready to adopt whatever your design or style is.


Two Item Grid

Rebar's base grid is a variation of the 960 grid system. The syntax is simple and it's effective cross browser, but the awesome part is that it also has the flexibility to go mobile like a champ. Go ahead, resize the browser and watch as the layout reacts!

One
Fifteen
Two
Fourteen
Three
Thirteen
Four
Twelve
Five
Eleven
Six
Ten
Seven
Nine
Eight
Eight
Nine
Seven
Ten
Six
Eleven
Five
Twelve
Four
Thirteen
Three
Fourteen
Two
Fifteen
One

Large Item Grid

These are examples of large items grids

Quarter
Quarter
Quarter
Quarter
Quarter
Half
Quarter
Quarter
Three Quarters
Two Thirds
Half
Half

Responsive Boxes

Box #1

Ugh fixie butcher, cornhole Pinterest scenester banh mi Tonx retro salvia tousled cool link

Box #2

Narwhal DIY salvia Blue Bottle, Schlitz locavore cray Pinterest Bushwick chia.

Bottom

Box #3

Carles artisan try-hard, Helvetica letterpress swag umami flexitarian lo-fi seitan

Link Right

Box #4

Asymmetrical pork belly VHS. Pickled XOXO Pitchfork paleo pork belly.

Box #5

Asymmetrical hoodie plaid, YOLO occupy slow-carb. Wolf McSweeney's pickled fashion axe

Responsive Rectangles

Rectangle #1

Squid asymmetrical chambray fap flexitarian tousled vegan.

Rectangle #2

Trust fund chillwave ugh American Apparel Bushwick food truck kitsch.

Rectangle #3

Pinterest plaid quinoa. Vice literally pour-over chambray VHS freegan. Quinoa Cosby

Rectangle #4

Blog before they sold out 8-bit, food truck roof party slow-carb Vice Neutra bicycle rights. Fap hashtag lo-fi, banh mi

Rectangle #5

Bicycle rights Austin sustainable Marfa, cardigan pickled raw denim Intelligentsia street art Neutra distillery Banksy Truffaut.

*Note: Boxes & Rectangles only work up to 200 items nicely- after that each row shows -1 item per row than it should. This could probably be fixed by someone who is better at maths.

Typography

The typography of Rebar is designed to create a strong hierarchy with basic styles. The primary font is Open Sans, but the font stack can be easily changed with just a couple adjustments. Regular paragraphs are set at a 14px base with 21px line height.

Heading <h1>

Heading <h2>

Heading <h3>

Heading <h4>

Heading <h5>
Heading <h6>

This is a blockquote style example. It stands out, and it is awesome!

Brennan Noval, Rebar Creator
Here is some text inside a <pre> element.

*Note, it needs to be flush against edge of document, as the <pre> element

Here is some JS code inline function() { alert('Halló World') } which is located inside of a code element with.

{
  "hello": "halló",
  "i am for code": "here is my structure"
  "actually data" : {
    "inside of elements" : ["pre", "code"]
  }
}

Lists

The list elements in Rebar are designed to create a strong hierarchy with basic styles.

Base ul element

  • Unordered Item
  • Unordered Item
  • Unordered Item
  • Unordered Item

Base ol element

  1. Ordered Item
  2. Ordered Item
  3. Ordered Item
  4. Ordered Item

Add the ul.none class

  • Unordered Item
  • Unordered Item
  • Unordered Item
  • Unordered Item

Add the ul.square class

  • Bottle Rocket
  • Rushmore
  • The Royal Tenebaums
  • Life Aquatic w/ Steve Zissou

Add the ul.circle class

  • Darjeeling Limited
  • Fantastic Mr. Fox
  • Moonrise Kingdom
  • The Grand Budapest Hotel

Add the ul.large class to list element

  • Large Item
  • Large Item
  • Large Item

Add the ul.small class to list element

  • Small Item
  • Small Item
  • Small Item

Add the ul.horizontal class to list element

  • Item #1
  • Item #2
  • Item #3
  • Item #4
  • Item #5

Buttons

In order to make one of the following HTML element types more appealing & clickable:

a, input[type=submit] input[type=reset] input[type=button] button

All you need to do is add one of the following classes to any of the elements:

.button-primary .button-secondary .button-info .button-alert .button-warning
Button Primary
Small Buttons

To make a button small, simply add the .button-small as well as the above class to a given element

Small Primary

Forms

In order to nicely style form elements, add the .standard class to a form element. You can also add the .tiny .small .medium .large .full class to any of the following elements input textarea select to alter the size.

Checkboxes
Radio Buttons

Validation

You can add form validation UI feedback by adding the following classes .validation-success .validation-warning .validation-error to label element and it will style children elements input select textarea elements.


Tables

Apply the .rounded class to the table element

Moral Description Count
Time An easy way to contact groups of people & organize their responses 123
Cash An easy way to contact groups of people & organize their responses 456
Patience An easy way to contact groups of people & organize their responses 789
Thank you for reading :)

This table has the .zebra and .full class on the table element [UNFINISHED]

Time An easy way to contact groups of people & organize their responses 123
Cash An easy way to contact groups of people & organize their responses 456
Patience An easy way to contact groups of people & organize their responses 789

Media Queries

Rebar uses a lot of media queries to serve the scalable grid, but also for the convenience of styling your site on different size screens. Rebar's media queries are almost exclusively targeted at max and min widths rather than device sizes or orientations. The advantage of this is browsers and future mobile devices that don't map to exact set dimensions will still benefit from the styles. That being said, all of the queries were written to be optimal on Apple iOS devices. The built in media queries include:


Color Palate

Click square to see HEX value for easier copying

@white
@black