Styleguide

Overview

Base rules are the defaults. They are almost exclusively single element selectors but it could include attribute selectors, pseudo-class selectors, child selectors or sibling selectors.

Typography

Headings

Heading 1

Heading 1

Heading 1

<h1>Heading 1</h1>
<h2>Heading 1</h2>
<h3>Heading 1</h3>

Links

<a href="http://example.com">Example</a>

Buttons

Button styles can be applied to any element. Typically you'll want to use either a <button> or an <a> element:

Me!
<button class="btn btn-default">Click</button>
<a class="btn btn-default" href="#">Me!</a>

Options

Use any of the available button classes:

<!-- Standard button -->
<button type="button" class="btn btn-default">Default</button>

<!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
<button type="button" class="btn btn-primary">Primary</button>

Sizes

Add .btn-lg or .btn-sm for different button sizes:

<p>
  <button type="button" class="btn btn-primary btn-lg">Large button</button>
</p>
<p>
  <button type="button" class="btn btn-primary">Default button</button>
</p>
<p>
  <button type="button" class="btn btn-primary btn-sm">Small button</button>
</p>

Forms

Labels

Put labels before form element, with a for="" property or around it:

<p>
  <label for="input_id">Label</label> <input type="text" id="input_id">
</p>
<p>
  <label>Wrapping Label <input type="text"></label>
</p>

Options

Inputs

Selects