cssAudio - ActiveCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <div class="container">
        <header>
            <hgroup>
              <h1 class="page-title">Flattastic Pro Color Palette</h1>
              <h2 class="page-description">design by <a href="https://dribbble.com/erigon">Erigon</a></h2>
            </hgroup>
        </header>
        <ul class="list-palete">
            <li class="palete">
                <div class="palete-color palete-color--grapefruit">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Grapefruit</h1>
                    <span class="palete-color__code">#ed5565</span>,
                    <span class="palete-color__code">#da4453</span>
                </div>
            </li>
            <li class="palete">
                <div class="palete-color palete-color--bittersweet">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Bittersweet</h1>
                    <span class="palete-color__code">#fc6e51</span>,
                    <span class="palete-color__code">#e9573f</span>
                </div>
            </li>
            <li class="palete">
                <div class="palete-color palete-color--sunflower">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Sunflower</h1>
                    <span class="palete-color__code">#ffce54</span>,
                    <span class="palete-color__code">#fcbb42</span>
                </div>
            </li>
            <li class="palete">
                <div class="palete-color palete-color--grass">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Grass</h1>
                    <span class="palete-color__code">#a0d468</span>,
                    <span class="palete-color__code">#8cc152</span>
                </div>
            </li>
            <li class="palete">
                <div class="palete-color palete-color--mint">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Mint</h1>
                    <span class="palete-color__code">#48cfad</span>,
                    <span class="palete-color__code">#37bc9b</span>
                </div>
            </li>
            <li class="palete">
                <div class="palete-color palete-color--aqua">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Aqua</h1>
                    <span class="palete-color__code">#4fc1e9</span>,
                    <span class="palete-color__code">#3bafda</span>
                </div>
            </li>
            <li class="palete">
                <div class="palete-color palete-color--blue-jeans">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Blue Jeans</h1>
                    <span class="palete-color__code">#5d9cec</span>,
                    <span class="palete-color__code">#4a89dc</span>
                </div>
            </li>
            <li class="palete">
                <div class="palete-color palete-color--lavender">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Lavender</h1>
                    <span class="palete-color__code">#ac92ec</span>,
                    <span class="palete-color__code">#967adc</span>
                </div>
            </li>
            <li class="palete">
                <div class="palete-color palete-color--pink-rose">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Pink Rose</h1>
                    <span class="palete-color__code">#ec87c0</span>,
                    <span class="palete-color__code">#d770ad</span>
                </div>
            </li>
            <li class="palete">
                <div class="palete-color palete-color--light-gray">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Light Gray</h1>
                    <span class="palete-color__code">#f5f7fa</span>,
                    <span class="palete-color__code">#e6e9ed</span>
                </div>
            </li>
            <li class="palete">
                <div class="palete-color palete-color--medium-gray">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Medium Gray</h1>
                    <span class="palete-color__code">#ccd1d9</span>,
                    <span class="palete-color__code">#aab2bd</span>
                </div>
            </li>
            <li class="palete">
                <div class="palete-color palete-color--dark-gray">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Dark Gray</h1>
                    <span class="palete-color__code">#656d78</span>,
                    <span class="palete-color__code">#434a54</span>
                </div>
            </li>
           <!-- Round -->
            <li class="palete palete--round">
                <div class="palete-color palete-color--sunflower">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Sunflower</h1>
                    <span class="palete-color__code">#ffce54</span>,
                    <span class="palete-color__code">#fcbb42</span>
                </div>
            </li>
            <li class="palete palete--round">
                <div class="palete-color palete-color--grass">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Grass</h1>
                    <span class="palete-color__code">#a0d468</span>,
                    <span class="palete-color__code">#8cc152</span>
                </div>
            </li>
            <!-- Square -->
            <li class="palete palete--square">
                <div class="palete-color palete-color--mint">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Mint</h1>
                    <span class="palete-color__code">#48cfad</span>,
                    <span class="palete-color__code">#37bc9b</span>
                </div>
            </li>
            <li class="palete palete--square">
                <div class="palete-color palete-color--aqua">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Aqua</h1>
                    <span class="palete-color__code">#4fc1e9</span>,
                    <span class="palete-color__code">#3bafda</span>
                </div>
            </li>
        </ul>
        
        <ul class="list-palete">
          <!-- Round -->
            <li class="palete palete--round">
                <div class="palete-color palete-color--sunflower">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Sunflower</h1>
                    <span class="palete-color__code">#ffce54</span>,
                    <span class="palete-color__code">#fcbb42</span>
                </div>
            </li>
            <li class="palete palete--round">
                <div class="palete-color palete-color--grass">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Grass</h1>
                    <span class="palete-color__code">#a0d468</span>,
                    <span class="palete-color__code">#8cc152</span>
                </div>
            </li>
            <!-- Square -->
            <li class="palete palete--square">
                <div class="palete-color palete-color--mint">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Mint</h1>
                    <span class="palete-color__code">#48cfad</span>,
                    <span class="palete-color__code">#37bc9b</span>
                </div>
            </li>
            <li class="palete palete--square">
                <div class="palete-color palete-color--aqua">
                    <div class="palete-color__square palete-color__lighten"></div>
                    <div class="palete-color__square palete-color__darken"></div>
                </div>
                <div class="palete-color__content">
                    <h1 class="palete-color__name">Aqua</h1>
                    <span class="palete-color__code">#4fc1e9</span>,
                    <span class="palete-color__code">#3bafda</span>
                </div>
            </li>
        </ul>
  
  
      <div class="examples">
        <div class="palete example example--rectangle">
              <div class="palete-color palete-color--sunflower">
                  <div class="palete-color__square palete-color__lighten"></div>
                  <div class="palete-color__square palete-color__darken"></div>
              </div>
              <div class="palete-color__content">
                  <h1 class="palete-color__name">Sunflower</h1>
                  <span class="palete-color__code">#ffce54</span>,
                  <span class="palete-color__code">#fcbb42</span>
              </div>
          </div>
  <div class="palete palete--round example example--round">
              <div class="palete-color palete-color--sunflower">
                  <div class="palete-color__square palete-color__lighten"></div>
                  <div class="palete-color__square palete-color__darken"></div>
              </div>
              <div class="palete-color__content">
                  <h1 class="palete-color__name">Sunflower</h1>
                  <span class="palete-color__code">#ffce54</span>,
                  <span class="palete-color__code">#fcbb42</span>
              </div>
          </div>
  <div class="palete palete--square example example--square">
              <div class="palete-color palete-color--sunflower">
                  <div class="palete-color__square palete-color__lighten"></div>
                  <div class="palete-color__square palete-color__darken"></div>
              </div>
              <div class="palete-color__content">
                  <h1 class="palete-color__name">Sunflower</h1>
                  <span class="palete-color__code">#ffce54</span>,
                  <span class="palete-color__code">#fcbb42</span>
              </div>
          </div>
        
        </div> <!-- /.examples -->
  
    </div>
            
          
!
            
                  @import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700);

    *, 
    *::before,
    *::after {
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
    }

    * {
        padding: 0;
        margin: 0;
        list-style: none;
        line-height: 1em;
    }

    header {
        text-align: center;
        margin-bottom: 2em;
    }

    body {
        font-family: "Source Sans Pro";
        background-color: #f0f2f5;
    }

    .page-title {
        margin: 2em 0 .2em;
        font-size: 20px;
        text-transform: uppercase;
        line-height: 1.4;
        color: #434a54;
    }

    .page-description {
        font-size: 13px;
        font-weight: normal;
        color: #aab2bd;
    }
    .page-description a {
        color: #ec87c0;
        text-decoration: none;
    }
    .page-description a:hover {
        color: #d770ad;
    }


    .container {
        width: 780px;
        margin: 0 auto;
    }

    .palete {
        border-radius: 5px;
        background-color: #fff;
        -webkit-box-shadow: 0px 3px 0px 0px rgba(226, 228, 231, 0.75);
        -moz-box-shadow:    0px 3px 0px 0px rgba(226, 228, 231, 0.75);
        box-shadow:         0px 3px 0px 0px rgba(226, 228, 231, 0.75);
    }

    .palete-color {
      position: relative;
    }
    .palete-color,
    .palete-color__square {
        height: 50px;
    }

    .palete-color__square {
        width: 50%;
        float: left;
    }
    .palete-color__square:hover {
      width: 100%;
      position: absolute;
    }

    .palete-color__lighten {
        -webkit-border-top-left-radius: 5px;
        -moz-border-radius-topleft: 5px;
        border-top-left-radius: 5px;
    }
    .palete-color__square.palete-color__lighten:hover  {
       -webkit-border-top-right-radius: 5px;
        -moz-border-radius-topright: 5px;
        border-top-right-radius: 5px;
    }
    .palete-color__darken {
        float: right;
        -webkit-border-top-right-radius: 5px;
        -moz-border-radius-topright: 5px;
        border-top-right-radius: 5px;
    }
    .palete-color__square.palete-color__darken:hover {
        -webkit-border-top-left-radius: 5px;
        -moz-border-radius-topleft: 5px;
        border-top-left-radius: 5px;
    }
    .palete-color__content {
        padding: 10px;
        color: #a9abab;
    }
    .palete-color__name {
        font-size: 12px;
        font-weight: medium;
        text-transform: uppercase;
        color: #444545;
    }
    .palete-color__code {
        font-size: 11px;
        line-height: .8em;
        text-transform: uppercase;
    }

    /* ############
       STYLES
       ############ */
    
    /* Round */
    .palete--round {
      border-radius: 50%;
      text-align: center;
    }
    .palete--round .palete-color {
      height: 50%;
    }
    .palete--round .palete-color__square {
      height: 100%;
    }
    .palete--round .palete-color__lighten {
      border-top-left-radius: 100%;
    }
    .palete--round .palete-color__square.palete-color__lighten:hover {
      -webkit-border-radius: 1000px 1000px 0 0;
      -moz-border-radius: 1000px 1000px 0 0;
      border-radius: 1000px 1000px 0 0;
      /* Border-radius Greater or equal to width*/
    }
    .palete--round .palete-color__darken {
      border-top-right-radius: 100%;
    }
    .palete--round .palete-color__square.palete-color__darken:hover {
      -webkit-border-radius: 1000px 1000px 0 0;
      -moz-border-radius: 1000px 1000px 0 0;
      border-radius: 1000px 1000px 0 0;
      /* Border-radius Greater or equal to width*/
    }

    /* Square */
    .palete--square {} /* must set a height */
    .palete--square .palete-color {
      height: 50%;
    }
    .palete--square .palete-color__square {
      height: 100%;
    }
    .palete--square .palete-color__content {
      padding-top: 18px;
    }
    .palete--square .palete-color__code {
      line-height: 1.4;
    }
    .palete--square .palete-color__code:last-child {
      display: block;
    }



.list-palete {
  width: 340px;
  margin: 0 20px;
  float: left;
}
.list-palete > .palete {
    width: 45%;
    margin: 2.5%;
    float: left;
}

.list-palete > .palete--round,
.list-palete > .palete--square{
  height: 153px;
}


/*
 Examples
 */
.examples { 
  float: left;
  width: 340px;
  margin: 0 20px;
}

.example {
  margin: 40px auto;
}

.example--rectangle {
  width: 200px;
}

.example--round {
  width: 200px;
  height: 200px;
}

.example--square {
  width: 200px;
  height: 200px;
}




    /* ###########
       THEME
       ########### */
    
    /* 
     * Grapefruit  
     */
    .palete-color--grapefruit > .palete-color__lighten {
        background-color: #ed5565;
    }
    .palete-color--grapefruit > .palete-color__darken {
        background-color: #da4453;
    }

    /* 
     * Bittersweet  
     */
    .palete-color--bittersweet > .palete-color__lighten {
        background-color: #fc6e51;
    }
    .palete-color--bittersweet > .palete-color__darken {
        background-color: #e9573f;
    }


    /* 
     * Sunflower  
     */
    .palete-color--sunflower > .palete-color__lighten {
        background-color: #ffce54;
    }
    .palete-color--sunflower > .palete-color__darken {
        background-color: #fcbb42;
    }

    /* 
     * Grass  
     */
    .palete-color--grass > .palete-color__lighten {
        background-color: #a0d468;
    }
    .palete-color--grass > .palete-color__darken {
        background-color: #8cc152;
    }

    /* 
     * Mint  
     */
    .palete-color--mint > .palete-color__lighten {
        background-color: #48cfad;
    }
    .palete-color--mint > .palete-color__darken {
        background-color: #37bc9b;
    }

    /* 
     * Aqua  
     */
    .palete-color--aqua > .palete-color__lighten {
        background-color: #4fc1e9;
    }
    .palete-color--aqua > .palete-color__darken {
        background-color: #3bafda;
    }

    /* 
     * Blue Jeans 
     */
    .palete-color--blue-jeans > .palete-color__lighten {
        background-color: #5d9cec;
    }
    .palete-color--blue-jeans > .palete-color__darken {
        background-color: #4a89dc;
    }

    /* 
     * Lavender  
     */
    .palete-color--lavender > .palete-color__lighten {
        background-color: #ac92ec;
    }
    .palete-color--lavender > .palete-color__darken {
        background-color: #967adc;
    }

    /* 
     * Pink Rose  
     */
    .palete-color--pink-rose > .palete-color__lighten {
        background-color: #ec87c0;
    }
    .palete-color--pink-rose > .palete-color__darken {
        background-color: #d770ad;
    }

    /* 
     * Light Gray  
     */
    .palete-color--light-gray > .palete-color__lighten {
        background-color: #f5f7fa;
    }
    .palete-color--light-gray > .palete-color__darken {
        background-color: #e6e9ed;
    }

    /* 
     * Medium Gray  
     */
    .palete-color--medium-gray > .palete-color__lighten {
        background-color: #ccd1d9;
    }
    .palete-color--medium-gray > .palete-color__darken {
        background-color: #aab2bd;
    }

    /* 
     * Dark Gray  
     */
    .palete-color--dark-gray > .palete-color__lighten {
        background-color: #656d78;
    }
    .palete-color--dark-gray > .palete-color__darken {
        background-color: #434a54;
    }
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console