Base

Here we provide very basic styling that most UI's will need. These styles are applied at the most global level being applied via element selectors, except for {Headings} which are scoped to classes (see that section for the info).

Everything in Base needs to be easily overridden which is really easy to do as everything in Base sits right at the bottom in terms of specificity.

Root element (<html>)

  • Apply global typography styles.
  • Apply OS X font smoothing: optional styles for fonts on OS X to make them look more consistent with other systems that do not render text using sub-pixel anti-aliasing.
  • Apply a background colour.
What's configurable
  • background
  • color
  • line-height
  • font-family
  • font-size
  • font-weight
  • OS X font smoothing—optional

Example

<a href="#">A link</a>
View source code

Horizontal rule

  • Apply styles for a better looking and cross-browser consistent horizontal rule.
  • The rule is rendered with a border.
What's configurable
  • border-top-color
  • border-top-style
  • border-top-width

Example

Turpis urna, est parturient, mattis auctor scelerisque lundium? Facilisis ultrices! Mauris, vel urna cum. Adipiscing.


Nunc dis dis phasellus, porttitor elementum, augue tristique purus diam et tincidunt odio enim nunc rhoncus.

<p>Turpis urna, est parturient, mattis auctor scelerisque lundium? Facilisis ultrices! Mauris, vel urna cum. Adipiscing.</p>
<hr>
<p>Nunc dis dis phasellus, porttitor elementum, augue tristique purus diam et tincidunt odio enim nunc rhoncus.</p>
View source code

Images

Make images responsive, i.e., keep images from scaling beyond the width of their parent container.

No configurable options

Example

<!-- Responsive image constrained in a container -->
<div class="l-container">
    <img src="img/test-img-shell.png" alt="">
</div>
View source code