Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <p>Example:<br><code>body { background: color(chiffon); }</code></p>

<!-- whites -->

<figure class="colors">
  <div class="white">
    white<span>#fffefc</span>
  </div>
  
  <div class="pearl">
    pearl<span>#fbfcf7</span>
  </div>

  <div class="alabaster">
    alabaster<span>#fefaf0</span>
  </div>
  
  <div class="snow">
    snow<span>#f4fefd</span>
  </div>
  
  <div class="ivory">
    ivory<span>#fef7e5</span>
  </div>

  <div class="cream">
    cream<span>#fffbda</span>
  </div>

  <div class="eggshell">
    eggshell<span>#fef9e3</span>
  </div>
  
  <div class="cotton">
    cotton<span>#fbfcf7</span>
  </div>
  
  <div class="chiffon">
    chiffon<span>#fafaf1</span>
  </div>
  
  <div class="salt">
    salt<span>#f8efec</span>
  </div>
  
  <div class="lace">
    lace<span>#faf3ea</span>
  </div>
 
  <div class="coconut">
    coconut<span>#fff1e6</span>
  </div>
  
  <div class="linen">
    linen<span>#f2ebd3</span>
  </div>

  <div class="bone">
    bone<span>#e7dfcc</span>
  </div>
  
  <div class="porcelain">
    porcelain<span>#fffffc</span>
  </div>
  
  <div class="parchment">
    parchment<span>#fcf6df</span>
  </div>
  
  <div class="rice">
    rice<span>#fbf6ef</span>
  </div>
</figure>  
<!-- blues -->
  
<figure class="colors whitetext">
  <div class="blue">
    blue<span>#0074d9</span>
   </div>
  
   <div class="navy">
    navy<span>#001f3f</span>
   </div>

  <div class="aqua blacktext">
    aqua<span>#7fdbff</span>
  </div>

  <div class="sky">
    sky<span>#00b2ff</span>
  </div>

  <div class="teal">
   teal<span>#39cccc</span>
  </div>
  
  <div class="slate">
   slate<span>#757b87</span>
  </div>

  <div class="indigo">
   indigo<span>#281e5d</span>
  </div>
  
  <div class="cobalt">
   cobalt<span>#1438bd</span>
  </div>
  
  <div class="ocean">
   ocean<span>#026063</span>
  </div>
  
  <div class="peacock">
   peacock<span>#002d37</span>
  </div>
  
  <div class="azure">
   azure<span>#1621a6</span>
  </div>

  <div class="cerulean">
    cerulean<span>#0592c2</span>
  </div>

  <div class="lapis">
   lapis<span>#2632c2</span>
  </div>

  <div class="spruce">
   spruce<span>#2c3e4b</span>
  </div>

  <div class="stone">
    stone<span>#59788d</span>
  </div>

  <div class="aegean">
    aegean<span>#1e456e</span>
  </div>

  <div class="berry">
    berry<span>#24146f</span>
  </div>

  <div class="denim">
    denim<span>#141e3c</span>
  </div>

  <div class="admiral">
    admiral<span>#060f94</span>
  </div>

  <div class="sapphire blacktext">
    sapphire<span>#52b2c0</span>
  </div>

  <div class="arctic blacktext">
    arctic<span>#82edfe</span>
  </div>
</figure>


<!-- tans --> 

<figure class="colors">
  <div class="tan">
    tan<span>#e5dbac</span>
  </div>
 
    <div class="beige">
    beige<span>#ecdc99</span>
  </div>
  
  <div class="macaroon">
    macaroon<span>#f7df75</span>
  </div>
  
  <div class="hazelwood">
    hazelwood<span>#c9bc8e</span>
  </div>
  
  <div class="granola">
    granola<span>#d6b75a</span>
  </div>
  
   <div class="oat">
    oat<span>#dec98a</span>
  </div>
  
   <div class="eggnog">
    eggnog<span>#fbe29d</span>
  </div>
  
    <div class="fawn">
    fawn<span>#c7a951</span>
  </div>
  
   <div class="sand">
    sand<span>#d7b963</span>
  </div>
  
  <div class="sepia">
    sepia<span>#e3b678</span>
  </div>
  
   <div class="latte">
    latte<span>#e9c17b</span>
  </div>
  
   <div class="oyster">
    oyster<span>#dcd69f</span>
  </div>
  
    <div class="biscotti">
    biscotti<span>#e3c565</span>
  </div>
  
   <div class="parmesean">
    parmesean<span>#fee993</span>
  </div>
  
  <div class="hazelnut">
    hazelnut<span>#bda55d</span>
  </div>
  
  <div class="sandcastle">
    sandcastle<span>#dbc27d</span>
  </div>
  
   <div class="buttermilk">
    buttermilk<span>#fdefb2</span>
  </div>
  
   <div class="sanddollar">
    sanddollar<span>#ebe7b9</span>
  </div>
  
   <div class="shortbread">
    shortbread<span>#fce791</span>
  </div>
  
</figure>

<!-- yellows -->

<figure class="colors">
  <div class="yellow">
    yellow<span>#FFDC00</span>
  </div>
  
  <div class="canary">
    canary<span>#fac801</span>
  </div>

  <div class="gold">
    gold<span>#f9a602</span>
  </div>

  <div class="daffodil">
    daffodil<span>#feee88</span>
  </div>

  <div class="flaxen">
    flaxen<span>#d5b65a</span>
  </div>
  
  <div class="butter">
    butter<span>#fee226</span>
  </div>

  <div class="lemon">
    lemon<span>#effd5f</span>
  </div>

  <div class="mustard">
    mustard<span>#e9b829</span>
  </div>

  <div class="corn">
    corn<span>#e4cd04</span>
  </div>

  <div class="medallion">
    medallion<span>#e4b103</span>
  </div>

  <div class="dandelion">
    dandelion<span>#fdce2a</span>
  </div>

  <div class="bumblebee">
    bumblebee<span>#fce206</span>
  </div>

  <div class="banana">
    banana<span>#fcf4a3</span>
  </div>

  <div class="butterscotch">
    butterscotch<span>#fabd04</span>
  </div>
  
  <div class="dijon">
    dijon<span>#c29200</span>
  </div>

  <div class="honey">
    honey<span>#ec9707</span>
  </div>

  <div class="blonde">
    blonde<span>#fdeb75</span>
  </div>

  <div class="pineapple">
    pineapple<span>#ffe327</span>
  </div>

  <div class="tuscansun">
    tuscansun<span>#fcd12a</span>
  </div>
</figure>

<!-- oranges -->

<figure class="colors">
  <div class="orange">
    orange<span>#ff851b</span>
  </div>

  <div class="tangerine">
    tangerine<span>#f98228</span>
  </div>

  <div class="merigold">
    merigold<span>#fdae1d</span>
  </div>

  <div class="cider">
    cider<span>#b66827</span>
  </div>

  <div class="rust">
    rust<span>#8c4005</span>
  </div>

  <div class="ginger">
    ginger<span>#bc5703</span>
  </div>

  <div class="tiger">
    tiger<span>#fb6b02</span>
  </div>

  <div class="bronze">
    bronze<span>#b2560c</span>
  </div>

  <div class="cantaloupe">
   cantaloupe<span>#fca172</span>
  </div>

  <div class="apricot">
    apricot<span>#ed810f</span>
  </div>

  <div class="carrot">
    carrot<span>#ed7116</span>
  </div>

  <div class="squash">
    squash<span>#c95c09</span>
  </div>

  <div class="spice whitetext">
    spice<span>#7a3a03</span>
  </div>

  <div class="marmalade">
    marmalade<span>#d16102</span>
  </div>

  <div class="amber whitetext">
    amber<span>#893201</span>
  </div>

  <div class="sandstone whitetext">
    sandstone<span>#d57128</span>
  </div>

  <div class="yam whitetext">
    yam<span>#cc5801</span>
  </div>
</figure>

<!-- reds -->

<figure class="colors whitetext">
  <div class="red">
    red<span>#ff4136</span>
  </div>

  <div class="cherry">
    cherry<span>#9a0f02</span>
  </div>

  <div class="rose">
    rose<span>#e2252a</span>
  </div>

  <div class="jam">
    jam<span>#600f0b</span>
  </div>

  <div class="merlot">
    merlot<span>#541f1b</span>
  </div>

  <div class="garnet">
    garnet<span>#5f0a04</span>
  </div>

  <div class="crimson">
    crimson<span>#b8100a</span>
  </div>

  <div class="ruby">
    ruby<span>#900503</span>
  </div>

  <div class="scarlet">
    scarlet<span>#910d08</span>
  </div>

  <div class="redwine">
    redwine<span>#4c0805</span>
  </div>

  <div class="redapple">
    redapple<span>#a91b0d</span>
  </div>

  <div class="mahogany">
    mahogany<span>#420d09</span>
  </div>

  <div class="blood">
    blood<span>#710c04</span>
  </div>

  <div class="sangria">
    sangria<span>#5f1914</span>
  </div>

  <div class="currant">
    currant<span>#670c07</span>
  </div>

  <div class="blush">
    blush<span>#bb544a</span>
  </div>
  
  <div class="candy">
    candy<span>#d31603</span>
  </div>

  <div class="lipstick">
    lipstick<span>#9b0f02</span>
  </div>
  
</figure>

<!-- pinks -->

<figure class="colors">
  
  <div class="pink">
    pink<span>#f69acd</span>
  </div>

  <div class="fuchsia">
    fuchsia<span>#f012be</span>
  </div>

  <div class="punch">
    punch<span>#f25278</span>
  </div>

  <div class="watermelon">
   watermelon<span>#fe809c</span>
  </div>

  <div class="flamingo">
    flamingo<span>#fda4b8</span>
  </div>

  <div class="rouge">
    rouge<span>#f26c8c</span>
  </div>

  <div class="salmon">
    salmon<span>#fdab9f</span>
  </div>

  <div class="coral">
    coral<span>#fe7d67</span>
  </div>

  <div class="peach">
    peach<span>#fb9483</span>
  </div>

  <div class="strawberry">
   strawberry<span>#fc4c4e</span>
  </div>

  <div class="rosewood whitetext">
    rosewood<span>#a04242</span>
  </div>

  <div class="lemonade">
    lemonade<span>#fabacb</span>
  </div>

  <div class="taffy">
    taffy<span>#fa85c4</span>
  </div>

  <div class="bubblegum">
    bubblegum<span>#fd5ca8</span>
  </div>

  <div class="balletslipper">
  balletslipper<span>#f69abf</span>
  </div>

  <div class="crepe">
    crepe<span>#f1b7c6</span>
  </div>
  
  <div class="maroon whitetext">
    maroon<span>#85144be</span>
  </div>
  
  <div class="hotpink">
    hotpink<span>#ff1696</span>
  </div>

</figure>

<!-- purples -->

<figure class="colors whitetext">
  
  <div class="purple">
    purple<span>#b10dc9</span>
  </div>

  <div class="mauve">
    mauve<span>#7a4a89</span>
  </div>

  <div class="violet">
    violet<span>#710193</span>
  </div>

  <div class="boysenberry">
    boysenberry
    <span>#630536</span>
  </div>

  <div class="lavender">
    lavender<span>#e3a0f6</span>
  </div>

  <div class="maroon">
    maroon<span>#85144B</span>
  </div>

  <div class="plum">
    plum<span>#601a36</span>
  </div>

  <div class="lilac">
    lilac<span>#b65fcd</span>
  </div>

  <div class="periwinkle">
    periwinkle<span>#be93d4</span>
  </div> 

  <div class="eggplant">
    eggplant<span>#311431</span>
  </div>

  <div class="iris">
    iris<span>#9866c5</span>
  </div>

  <div class="heather">
    heather<span>#9b7cb9</span>
  </div>

  <div class="amethyst">
    amethyst<span>#a45de4</span>
  </div>

  <div class="raisin">
    raisin<span>#290916</span>
  </div>

  <div class="orchid">
    orchid<span>#af69ee</span>
  </div>

  <div class="mulberry">
    mulberry<span>#4d0220</span>
  </div>
  
</figure>

<!-- greens -->

<figure class="colors">
  
  <div class="green">
    green<span>#2ecc40</span>
  </div>

  <div class="chartreuse">
    chartreuse<span>#b0fc37</span>
  </div>

  <div class="juniper whitetext">
    juniper<span>#395311</span>
  </div>

  <div class="sage">
    sage<span>#728c69</span>
  </div>

  <div class="lime">
    lime<span>#01ff70</span>
  </div>

  <div class="fern">
    fern<span>#5dbc64</span>
  </div>

  <div class="olive">
    olive<span>#98bf64</span>
  </div>

  <div class="emerald">
    emerald<span>#038911</span>
  </div>

  <div class="pear">
    pear<span>#74b62d</span>
  </div>

  <div class="moss whitetext">
    moss<span>#476d1e</span>
  </div>

  <div class="shamrock">
    shamrock<span>#03ac13</span>
  </div>

  <div class="seafoam">
    seafoam<span>#3cec96</span>
  </div>

  <div class="pine whitetext">
    pine<span>#24501e</span>
  </div>

  <div class="parakeet">
    parakeet<span>#02c04a</span>
  </div>

  <div class="mint">
    mint<span>#98ecc3</span>
  </div>

  <div class="seaweed whitetext">
    seaweed<span>#354b21</span>
  </div>

  <div class="pickle">
    pickle<span>#5a7d36</span>
  </div>

  <div class="pistachio">
    pistachio<span>#b2d3c1</span>
  </div>

  <div class="basil whitetext">
    basil<span>#32622d</span>
  </div>

  <div class="crocodile">
    crocodile<span>#5f7c3a</span>
  </div>

</figure>

<!-- browns -->

<figure class="colors whitetext">
  
  <div class="brown">
    brown<span>#241709</span>
  </div>

  <div class="coffee">
    coffee<span>#4b371c</span>
  </div>

  <div class="mocha">
    mocha<span>#3c290d</span>
  </div>

  <div class="peanut">
    peanut<span>#795c34</span>
  </div>

  <div class="carob">
    carob<span>#35260f</span>
  </div>

  <div class="hickory">
    hickory<span>#371d10</span>
  </div>

  <div class="pecan">
    pecan<span>#4a2512</span>
  </div>

  <div class="walnut">
    walnut<span>#432711</span>
  </div>

  <div class="caramel">
    caramel<span>#66360f</span>
  </div>

  <div class="gingerbread">
    gingerbread<span>#5d2c04</span>
  </div>

  <div class="chocolate">
    chocolate<span>#2c1603</span>
  </div>

  <div class="tortilla">
    tortilla<span>#9a7b4f</span>
  </div>

  <div class="umber">
    umber<span>#352415</span>
  </div>

  <div class="tawny">
    tawny<span>#7e491d</span>
  </div>

  <div class="brunette">
    brunette<span>#391e07</span>
  </div>

  <div class="cinammon">
    cinammon<span>#642b0d</span>
  </div>

  <div class="penny">
    penny<span>#522915</span>
  </div>
  
</figure>

<!-- greys -->

<figure class="colors whitetext">
  <div class="grey">
    grey<span>#aaaaaa</span>
  </div>

  <div class="shadow">
    shadow<span>#373737</span>
  </div>

  <div class="graphite">
    graphite<span>#584d5b</span>
  </div>

  <div class="iron">
    iron<span>#332d31</span>
  </div>

  <div class="pewter">
    pewter<span>#6a6880</span>
  </div>

  <div class="cloud blacktext">
    cloud<span>#c5c5d0</span>
  </div>

  <div class="silver">
    silver<span>#dddddd</span>
  </div>

  <div class="smoke">
    smoke<span>#59515f</span>
  </div>

  <div class="anchor">
    anchor<span>#42424c</span>
  </div>

  <div class="ash">
    ash<span>#554c4d</span>
  </div>

  <div class="porpoise">
    porpoise<span>#4d4c5d</span>
  </div>

  <div class="dove">
    dove<span>#7c6e7f</span>
  </div>

  <div class="fog">
    fog<span>#655965</span>
  </div>

  <div class="flint">
    flint<span>#7d7c9c</span>
  </div>

  <div class="pebble">
    pebble<span>#333333</span>
  </div>

  <div class="lead">
    lead<span>#403f4e</span>
  </div>

  <div class="coin">
    coin<span>#9897a9</span>
  </div>

  <div class="fossil">
    fossil<span>#787276</span>
  </div>

</figure>

<!-- blacks -->

<figure class="colors whitetext">
  <div class="black">
    black<span>#111111</span>
  </div>

  <div class="ebony">
    ebony<span>#080401</span>
  </div>

  <div class="crow">
    crow<span>#3d3934</span>
  </div>

  <div class="charcoal">
    charcoal<span>#222023</span>
  </div>

</figure>
              
            
!

CSS

              
                $colors: (
  
  // whites
  
white: #fffefc,
pearl: #fbfcf7,
alabaster: #fefaf0,
snow: #f4fefd,
ivory: #fef7e5,
cream: #fffbda,
eggshell: #fef9e3,
cotton: #fbfcf7,
chiffon: #fafaf1,
salt: #f8efec,
lace: #faf3ea,
coconut: #fff1e6,
linen: #f2ebd3,
bone: #e7dfcc,
porcelain: #fffffc,
parchment: #fcf6df,
rice: #fbf6ef,
  // blues
  
blue: #0074d9,
navy: #001f3f,
aqua: #7fdbff,
sky: #00b2ff,
teal: #39cccc,
slate: #757b87,
indigo: #281e5d,
cobalt: #1438bd,
ocean: #026063,
peacock: #002d37,
azure: #1621a6,
cerulean: #0592c2,
lapis: #2632c2,
spruce: #2c3e4b,
stone: #59788d,
aegean: #1e456e,
berry: #24146f,
denim: #141e3c,
admiral: #061094,
sapphire: #52b2c0,
arctic: #82edfd,

  // browns
  
tan: #e5dbac,
beige: #ecdc99,
macaroon: #f7df75,
hazelwood: #c9bc8e,
granola: #d6b75a,
oat: #dec98a,
eggnog: #fbe29d,
fawn: #c7a951,
sugarcookie: #f3ebad,
sand: #d7b963,
sepia: #e3b678,
latte: #e9c17b,
oyster: #dcd69f,
biscotti: #e3c565,
parmesean: #fee993,
hazelnut: #bda55d,
sandcastle: #dbc27d,
buttermilk: #fdefb2,
sanddollar: #ebe7b9,
shortbread: #fce791,
  
  // yellows
  
yellow: #ffdc00,
canary: #fac801,
gold: #f9a602,
daffodil: #feee88,
flaxen: #d5b65a,
butter: #fee226,
lemon: #effd5f,
mustard: #e9b829,
corn: #e4cd04,
medallion: #e4b103,
dandelion: #fdce2a,
bumblebee: #fce206,
banana: #fcf4a3,
butterscotch: #fabd04,
dijon: #c29200,
honey: #ec9707,
blonde: #fdeb75,
pineapple: #ffe327,
tuscansun: #fcd12a,
  
  // oranges

orange: #ff851b,
tangerine: #f98228,
merigold: #fdae1d,
cider: #b66827,
rust: #8c4005,
ginger: #bc5703,
tiger: #fb6b02,
bronze: #b2560c,
cantaloupe: #fca172,
apricot: #ed810f,
carrot: #ed7116,
squash: #c95c09,
spice: #7a3a03,
marmalade: #d16102,
amber: #893201,
sandstone: #d57128,
yam: #cc5801,
  
  // reds
  
red: #ff4136,
cherry: #9a0f02,
rose: #e2252a,
jam: #600f0b,
merlot: #541f1b,
garnet: #5f0a04,
crimson: #b8100a,
ruby: #900503,
scarlet: #910d08,
redwine: #4c0805,
redapple: #a91b0d,
mahogany: #420d09,
blood: #710c04,
sangria: #5f1914,
currant: #670c07,
blush: #bb544a,
candy: #d31603,
lipstick: #9b0f02,
  
  // pinks
 
pink: #f69acd,
fuchsia: #f012be,
punch: #f25278,
watermelon: #fe809c,
flamingo: #fda4b8,
rouge: #f26c8c,
salmon: #fdab9f,
coral: #fe7d67,
peach: #fb9483,
strawberry: #fc4c4e,
rosewood: #a04242,
lemonade: #fabacb,
taffy: #fa85c4,
bubblegum: #fd5ca8,
balletslipper: #f69abf,
crepe: #f1b7c6,
maroon: #85144b,
hotpink: #ff1696,
  
  // purples

purple: #b10dc9,
mauve: #7a4a89,
violet: #710193,
boysenberry: #630536,
lavender: #e3a0f6,
plum: #601a36,
lilac: #b65fcd,
periwinkle: #be93d4, 
eggplant: #311431,
iris: #9866c5,
heather: #9b7cb9,
amethyst: #a45de4,
raisin: #290916,
orchid: #af69ee,
mulberry: #4d0220,
  
  // greens
 
green: #2ecc40,
chartreuse: #b0fd38,
juniper: #395311,
sage: #728c69,
lime: #01ff70,
fern: #5dbc64,
olive: #98bf64,
emerald: #038911,
pear: #74b62d,
moss: #476d1e,
shamrock: #03ac13,
seafoam: #3cec96,
pine: #24501e,
parakeet: #02c04a,
mint: #98ecc3,
seaweed: #354b21,
pickle: #5a7d36,
pistachio: #b2d3c1,
basil: #32622d,
crocodile: #5f7c3a,
  
// browns
  
brown: #241709,
coffee: #4b371c,
mocha: #3c290d,
peanut: #795c34,
carob: #35260f,
hickory: #371d10,
pecan: #4a2512,
walnut: #432711,
caramel: #66360f,
gingerbread: #5d2c04,
chocolate: #2c1603,
tortilla: #9a7b4f,
umber: #352415,
tawny: #7e491d,
brunette: #391e07,
cinammon: #642b0d,
penny: #522915,
  
  // greys
  
grey: #aaaaaa,
shadow: #373737,
graphite: #584d5b,
iron: #332d31,
pewter: #6a6880,
cloud: #c5c5d0,
silver: #dddddd,
smoke: #59515f,
anchor: #42424c,
ash: #554c4d,
porpoise: #4d4c5c,
dove: #7c6e7f,
fog: #655965,
flint: #7d7c9c,
pebble: #333333,
lead: #403f4e,
coin: #9897a9,
fossil: #787276,
  
// blacks
  
black: #111111,
ebony: #080401,
crow: #25221F,
charcoal: #222023
);

@function color($key) {
   @if map-has-key($colors, $key) {
     @return map-get($colors, $key)
   }
   @warn "Unknown #{key} in $colors.";
   @return null;
}

@font-face {
  font-family: 'Source Serif Pro';
  src: local('SourceSerifPro-Regular');
  src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/SourceSerifPro-Regular.eot');
  src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/SourceSerifPro-Regular.otf') format('opentype'), 
  url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/SourceSerifPro-Regular.woff') format('woff');     
  font-style:   normal;
  font-weight:  400;
}

@font-face {
  font-family: 'Source Code Pro ExtraLight';
  src: local('Source Code Pro ExtraLight');
  src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/SourceCodePro-ExtraLight.eot');
  src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/SourceCodePro-ExtraLight.otf') format('opentype'), 
       url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/SourceCodePro-ExtraLight.woff') format('woff');
  font-style: normal;
  font-weight: 200;
}

body { 
  font-family: Source Serif Pro;
  font-weight: 100;
  font-size: 0;
  margin: 0; 
}

p { font-size: 1.3rem; text-align: center; }
code { font-family: Source Code Pro ExtraLight; }
.colors { 
  display: flex; 
  flex-flow: row wrap;
  color: black;
  margin: 4rem 0;
}
.colors > div { 
  font-size: 1.8rem;
  padding: .8em;
  text-align: center;
  font-weight: 100;
  flex: 1;
  min-width: 12rem;
}

.colors span { 
  display: block;
  font-family: Source Code Pro ExtraLight;
  font-size: 1.2rem;
  margin-top: .4rem; 
}
.whitetext { color: white; }
.blacktext { color: #000; }

@each $color, $value in $colors {
  .#{$color} {
    background: $value;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console