Typography

Icons

Icons

Font Awesome

Font Awesome is a pictographic language of web-related actions which delivers 220 icons. The Font Awesome webfont, CSS, and LESS files are licensed under CC BY 3.0 and you can find the full bs-examples of usage at Font Awesome - http://fortawesome.github.com/Font-Awesome

Add .icon-CLASS_NAME to any element, best used with a <span>.

Web Icons

icon-adjust

icon-asterisk

icon-ban-circle

icon-bar-chart

icon-barcode

icon-beaker

icon-bell

icon-bolt

icon-book

icon-bookmark

icon-bookmark-empty

icon-briefcase

icon-bullhorn

icon-calendar

icon-camera

icon-camera-retro

icon-certificate

icon-check

icon-check-empty

icon-cloud

icon-cog

icon-cogs

icon-comment

icon-comment-alt

icon-comments

icon-comments-alt

icon-credit-card

icon-dashboard

icon-download

icon-download-alt

icon-edit

icon-envelope

icon-envelope-alt

icon-exclamation-sign

icon-external-link

icon-eye-close

icon-eye-open

icon-facetime-video

icon-film

icon-filter

icon-fire

icon-flag

icon-folder-close

icon-folder-open

icon-gift

icon-glass

icon-globe

icon-group

icon-hdd

icon-headphones

icon-heart

icon-heart-empty

icon-home

icon-inbox

icon-info-sign

icon-key

icon-leaf

icon-legal

icon-lemon

icon-lock

icon-unlock

icon-magic

icon-magnet

icon-map-marker

icon-minus

icon-minus-sign

icon-money

icon-move

icon-music

icon-off

icon-ok

icon-ok-circle

icon-ok-sign

icon-pencil

icon-picture

icon-plane

icon-plus

icon-plus-sign

icon-print

icon-pushpin

icon-qrcode

icon-question-sign

icon-random

icon-refresh

icon-remove

icon-remove-circle

icon-remove-sign

icon-reorder

icon-resize-horizontal

icon-resize-vertical

icon-retweet

icon-road

icon-rss

icon-screenshot

icon-search

icon-share

icon-share-alt

icon-shopping-cart

icon-signal



icon-signout

icon-sitemap

icon-sort

icon-sort-down

icon-sort-up

icon-star

icon-star-empty

icon-star-half

icon-tag

icon-tags

icon-tasks

icon-thumbs-down

icon-thumbs-up

icon-time

icon-tint

icon-trash

icon-trophy

icon-truck

icon-umbrella

icon-upload

icon-upload-alt

icon-user

icon-user-md

icon-volume-off

icon-volume-down

icon-volume-up

icon-warning-sign

icon-wrench

icon-zoom-in

icon-zoom-out

Text Editor Icons

icon-file

icon-cut

icon-copy

icon-paste

icon-save

icon-undo

icon-repeat

icon-paper-clip

icon-text-height

icon-text-width

icon-align-left

icon-align-center

icon-align-right

icon-align-justify

icon-indent-left

icon-indent-right

icon-font

icon-bold

icon-italic

icon-strikethrough

icon-underline

icon-link

icon-columns

icon-table

icon-th-large

icon-th

icon-th-list

icon-list

icon-list-ol

icon-list-ul

icon-list-alt

Directional Icons

icon-arrow-down

icon-arrow-left

icon-arrow-right

icon-arrow-up

icon-chevron-down

icon-circle-arrow-down

icon-circle-arrow-left

icon-circle-arrow-right

icon-circle-arrow-up

icon-chevron-left

icon-caret-down

icon-caret-left

icon-caret-right

icon-caret-up

icon-chevron-right

icon-hand-down

icon-hand-left

icon-hand-right

icon-hand-up

icon-chevron-up

Video Player Icons

icon-play-circle

icon-play

icon-pause

icon-stop

icon-step-backward

icon-fast-backward

icon-backward

icon-forward

icon-fast-forward

icon-step-forward

icon-eject

icon-fullscreen

icon-resize-full

icon-resize-small

Social Icons

icon-phone

icon-phone-sign

icon-facebook

icon-facebook-sign

icon-twitter

icon-twitter-sign

icon-github

icon-github-sign

icon-linkedin

icon-linkedin-sign

icon-pinterest

icon-pinterest-sign

icon-google-plus

icon-google-plus-sign

icon-sign-blank

<span class="icon-CLASS_NAME">
  ...
</span>
<span class="icon-download">
  ...
</span>

More Examples

Many examples re-used from the Twitter Bootstrap documentation.

Use Font Awesome icons in:

  • Bulleted lists (like this one)
  • Buttons
  • Button groups
  • Navigation
  • Prepended form inputs
  • And many more with Custom CSS

Code

Inline Icon

Place Font Awesome icons just about anywhere with the <i> tag.

icon-camera-retro
  <div style="font-size: 24px;">
    <i class="icon-camera-retro"></i> icon-camera-retro
  </div>
  
Icon classes are echoed via CSS :before.

Increase the icon size by using the icon-large class. This increases the size by 33% relative to the font-size of the container.

icon-camera-retro
  <div style="font-size: 24px;">
    <i class="icon-camera-retro icon-large"></i> icon-camera-retro
  </div>
  

Notice & Alerts

Notice & Error

Error or danger

Oh snap! Change a few things up and try submitting again.
<div class="alert alert-error">
  ...
</div>

Success

Well done! You successfully read this important alert message.
<div class="alert alert-success">
  ...
</div>

Information

Heads up! This alert needs your attention, but it's not super important.
<div class="alert alert-info">
  ...
</div>

Buttons

Buttons

Default buttons

Button styles can be applied to anything with the .btn class applied. However, typically you'll want to apply these to only <a> and <button> elements for the best rendering.

Button class="" Description
btn Standard gray button with gradient
btn btn-primary Provides extra visual weight and identifies the primary action in a set of buttons
btn btn-info Used as an alternative to the default styles
btn btn-success Indicates a successful or positive action
btn btn-warning Indicates caution should be taken with this action
btn btn-danger Indicates a dangerous or potentially negative action
btn btn-inverse Alternate dark gray button, not tied to a semantic action or use
btn btn-link Deemphasize a button by making it look like a link while maintaining button behavior

Cross browser compatibility

IE9 doesn't crop background gradients on rounded corners, so we remove it. Related, IE9 jankifies disabled button elements, rendering text gray with a nasty text-shadow that we cannot fix.

Button sizes

Fancy larger or smaller buttons? Add .btn-large, .btn-small, or .btn-mini for additional sizes.

<p>
<button class="btn btn-large btn-primary" type="button">Large button</button>
<button class="btn btn-large" type="button">Large button</button>
</p>
<p>
<button class="btn btn-primary" type="button">Default button</button>
<button class="btn" type="button">Default button</button>
</p>
<p>
<button class="btn btn-small btn-primary" type="button">Small button</button>
<button class="btn btn-small" type="button">Small button</button>
</p>
<p>
<button class="btn btn-mini btn-primary" type="button">Mini button</button>
<button class="btn btn-mini" type="button">Mini button</button>
</p>

Create block level buttons—those that span the full width of a parent— by adding .btn-block.

<button class="btn btn-large btn-block btn-primary" type="button">Block level button</button>
<button class="btn btn-large btn-block" type="button">Block level button</button>

Disabled state

Make buttons look unclickable by fading them back 50%.

Anchor element

Add the .disabled class to <a> buttons.

Primary link Link

<a href="#" class="btn btn-large btn-primary disabled">Primary link</a>
<a href="#" class="btn btn-large disabled">Link</a>

Heads up! We use .disabled as a utility class here, similar to the common .active class, so no prefix is required. Also, this class is only for aesthetic; you must use custom JavaScript to disable links here.

Button element

Add the disabled attribute to <button> buttons.

<button type="button" class="btn btn-large btn-primary disabled" disabled="disabled">Primary button</button>
<button type="button" class="btn btn-large" disabled>Button</button>

One class, multiple tags

Use the .btn class on an <a>, <button>, or <input> element.

Link
<a class="btn" href="/">Link</a>
<button class="btn" type="submit">Button</button>
<input class="btn" type="button" value="Input">
<input class="btn" type="submit" value="Submit">

As a best practice, try to match the element for your context to ensure matching cross-browser rendering. If you have an input, use an <input type="submit"> for your button.