Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <link href=',300' rel='stylesheet' type='text/css'>
    /* putting styling here to keep it separate from the boilerplate css */
    /* so I can use it in other Pens */
    html {
      background: #000;
    body {
      font-family: Raleway, sans-serif;
      color: #666;
<article class='single'>

<section class='intro'>
My personal baseline css boilerplate - a work in progress.

I **love** HTML5boilerplate. But I'm not too crazy about the typography defaults from Normalize so I'm making this. The plan is to merge it with Normalize so I can stuff it back into boilerplate which I use for all my projects. 

First we use 62.5% trick to make 1em = 10px. From there we start all our type at 1.8em (18px). H1 is set at 4.2em and it goes all the way back down to 1.8em. Our article width is set at a maximum of around 60ish em which seems to make our line lengths at an optimal 12 words long.

Here's how paragraphs look in sequence. Notice that we indent following paragraphs? Indenting the first paragraph is unessesary because it's obvious that it's the start of a new paragraph. Traditionally they're isn't whitespace between paragraphs - it's all about economy of space. Since whitespace isn't much of an issue on webpages we could afford to put whitespace in. Whether it's wrong or right, I can't say. 

### Should webpages have a vertical grid? Probably.

But I'll be damned if I can figure it out. Here's where I justify my lazyness: I don't really see how a vertical grid can be maintained especially when content managment systems are such a huge part of making websites. Image heights will throw off our grids. Are we going to force our clients to crop images based a line-height? One of the biggest differences in digital design is giving up a certain amount of control. 

- here is an unordered list
- this is here to see how well it blends in with paragraphs
- traditionally bullets and quotation marks were hung outside the margin but with the advent of desktop publishing they moved inside of the margin - maybe because of the limits of the technology at the time?
- this looks kind of weird nowadays

#### Great! But what about small screen devices?

Do we decrease our base size to fit more content on smartphones? I figure, if you're reading on a small screen why would I make the type smaller? (To make line lengths readable?) Headlines, yes. We'll adjust those but how much? Here are some screen resolutions we should, not necessarily design for, but be aware of:

1. iPhone*: 320x480 (virtual resolution)
2. iPhone*: 480x320 (horizontal)
3. iPad*: 768x1024
4. minimum desktop: 960x640
5. realistic desktop: 1140x768

*"Oh gee! Look at this guy! He loves Apple!" Ok, that's true but have you seen all the resolutions used across Android devices?

#### Forms


<label>Name<label for='name'> <input name='name' type='text'><br>

<p>Do you like making forms?</p>

<label><input type='radio' name='likechecks' value='yes'> Yes<label><br>

<label><input type='radio' name='likechecks' value='no'> No</label><br>

<input type='submit'>



##### The future, Conan?

Hopefully when this is finalized I can spend more time designing and less time finessing a general style sheet. One day I'll make a generator where you'll be able to choose fonts, font sizes, colours and other settings.

###### Defaults compared to Paranormalize

        <th>No CSS</th>
        <td>Base Font</td>
        <td>Times Roman</td>
        <td>Helvetica Neue Light/Arial</td>
        <td>Font Size</td>
        <td>Depends on browser</td>
        <td>18px in ems</td>
        <td>Headline Size</td>
        <td>Tiny h6 font-size</td>
        <td>Always larger than body font</td>
        <td>Table Style</td>
        <td>Sensible widths</td>
        <td>Classes for single column articles (700px) and modern widescreens (1140px)</td>

###### Some great articles and tools for online typography (in no particular order):

- [Elements of Typographic Style][0]
- [Upping Your Type Game][1] by [Jessica Hirsch][2] (her site is also great for inspiration)
- [Better Google Fonts][3] by Matt Wiebe
- [][4] by Dan Simplebits/Dribbble Cedarholm
- Khoi Vihn's [Grids are Good][5]
- Mark Boulton's [Five steps to better typography][6]
- Inspiration: [Medium][7]
- Inspiration: [A List Apart][8]
- [Beautiful web type][9]
- [Typewolf][10]
- [Butterick's Practical Typography][11]


*The headlines in this article start from h1 down to h6. Notice the font-size gradually decreases but never gets smaller than our paragraph text.



                @import "compass/css3";

// renaming these flat colours to something i can remember...
$turquoise: #1abc9c;
$green: #2ecc71;
$blue: #3498db;
$purple: #9b59b6;
$gray: #34495e;
$greensea: #16a085;
$dkgreen: #27ae60;
$dkblue: #2980b9;
$dkpurple: #8e44ad;
$dkgray: #2c3e50;
$yellow: #f1c40f;
$ornage: #e67e22;
$red: #e74c3c;
$clouds: #ecf0f1;
$concrete: #95a5a6;
$dkyellow: #f39c12;
$dkorange: #d35400;
$dkred: #c0392b;
$silver: #bdc3c7;
$asbestos: #7f8c8d;

* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
// need box-sizing polyfill for ie7

html {
  font: 300 62.5%/1.75 'helvetica neue', sans-serif;

body {
  font-size: 1.8em;
  margin: 0 auto;
  padding: 0;

// sizes will have to be adjusted depending on font

h1,h2,h3,h4,h5,h6 { 
  line-height: 1.1;
  margin: 2.4rem 0 0.5rem; //that's right. I'm using rems.
  font-weight: bold; // why does ie need this?
h2,h3 { letter-spacing: -1px; }
h1 { font-size: 2.8em; letter-spacing: -2px; }
h2 { font-size: 2.4em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }
h5 { font-size: 1.2em; }
h6 { font-size: 1.1em; }

p { margin: 0; }

ul, ol, table, img {
  margin: .5em 0;

p+p {
  text-indent: 1.5em;
form {
  p+p {
  text-indent: 0;

ul, ol {
  padding: 0;
  ul, ol {
    padding-left: 1em;

table {
  border-bottom: 1px solid #000;
  line-height: 1.2; // playing with this...
tr {
  border-top: 1px solid #000;
th {
  text-align: left;
  border-bottom: 2px solid #000;
th, td {
  padding: .25em 1em;
  &:first-child {
    padding-left: 0;
  &:last-child {
    padding-right: 0;

a {
  &:link {
    color: #35a;
  &:visited {
    color: #86a;
  &:hover {
    color: #f00;
  &:active {
    color: #35d;

hr {
  border-width: 1px 0 0 0;

.wrapper {
  max-width: 1140px;
  margin: 0 auto;

.single { // for single column articles on blogs, magazines, etc
  width: 80%;
  max-width: 700px;
  margin: 0 auto;
  padding: 1em 2em 2em;



                // for some reason this turned into an article about typography :/

// still working on form elements - I hate forms!