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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <figure id="venn"></figure>

<aside class="legend">
    <li><span class="icon icon-it"></span> Servers</li>
    <li><span class="icon icon-it"></span> Databases</li>
    <li><span class="icon icon-it"></span> LAMP</li>
    <li><span class="icon icon-development"></span> API</li>
    <li><span class="icon icon-development"></span> MySQL Queries</li>
    <li><span class="icon icon-development"></span> Command Line</li>
    <li><span class="icon icon-design"></span> Photoshop</li>
    <li><span class="icon icon-design"></span> Wireframe</li>
    <li><span class="icon icon-design"></span> Style Guide</li>
    <li><span class="icon icon-design"></span> Typography</li>

    <li><span class="icon icon-devigner"></span> HTML</li>
    <li><span class="icon icon-devigner"></span> CSS/Sass</li>
    <li><span class="icon icon-devigner"></span> jQuery</li>
    <li><span class="icon icon-devigner"></span> Grunt / Gulp</li>
    <li><span class="icon icon-devigner"></span> Responsive Design</li>
    <li><span class="icon icon-devigner"></span> SVG</li>
    <li><span class="icon icon-devigner"></span> WordPress Theming</li>
    <li><span class="icon icon-devigner"></span> CSS Frameworks</li>
    <li><span class="icon icon-devigner"></span> Atomic Design</li>
    <li><span class="icon icon-devigner"></span> Browser Consistency</li>
    <li><span class="icon icon-devigner"></span> SEO</li>
    <li><span class="icon icon-backend"></span> Javascript</li>
    <li><span class="icon icon-backend"></span> React</li>
    <li><span class="icon icon-backend"></span> Angular</li>
    <li><span class="icon icon-backend"></span> PHP</li>
    <li><span class="icon icon-backend"></span> Rails</li>
    <li><span class="icon icon-backend"></span> Python</li>
    <li><span class="icon icon-backend"></span> WordPress Plugins</li>
    <li><span class="icon icon-unicorn"></span> Performance</li>
    <li><span class="icon icon-unicorn"></span> Accessibility</li>
              body {
  background: #eaeaea;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  text-align: center;

figure {
  max-width: 100%;

.tooltip {
  position: absolute;
  text-align: center;
  width: 128px;
  height: 16px;
  background: #333;
  color: #ddd;
  font-size: 14px;
  padding: 5px;
  border: 0px;
  border-radius: 10px;
  opacity: 0;

.legend {
  columns: 3 200px;

ul {
  list-style: none;
  text-align: left;

li {
  line-height: 2em;
  span {
    margin-right: 5px;

.icon {
  display: inline-block;
  position: relative;
  width: 15px;
  height: 15px;
  top: 3px;
  &-design {
    background: #b7cddd;
  &-development {
    background: #efcfb3;
  &-it {
    background: #bbd8bb;
  &-devigner {
    background: #c9baaa;
  &-freelancer {
    background: #95c3b2;
  &-backend {
    background: #bfc492;
  &-unicorn {
    background: #a3b48b;
              // D3 Venn Diagram work courtesy of Ben Frederickson:

var sets = [
  {sets: ['Design'], size: 15, job: 'Designer'},
  {sets: ['Development'], size: 15, job: 'Developer'},
  {sets: ['IT'], size: 15, job: 'Webmaster'},
  {sets: ['Design','Development'], size: 2, job: 'Front End'},
  {sets: ['Design', 'IT'], size: 2, job: 'Unicorn'},
  {sets: ['Development', 'IT'], size: 2, job: 'Back End'},
  {sets: ['Design','Development', 'IT'], size: 2, job: 'Full Stack!'}

var chart = venn.VennDiagram()
  var div ="#venn")
  var tooltip ="body").append("div")
  .attr("class", "tooltip");
    .style("stroke-opacity", 0)
    .style("stroke", "#fff")
    .style("stroke-width", 0)
    .on("mouseover", function(d, i) {
    // sort all the areas relative to the current item
    venn.sortAreas(div, d);
    // Display a tooltip with the current size
    tooltip.transition().duration(400).style("opacity", .9);
    // highlight the current path
    var selection ="tooltip").duration(400);"path")
      .style("stroke-width", 3)
      .style("fill-opacity", d.sets.length == 1 ? .4 : .1)
      .style("stroke-opacity", 1);
    .on("mousemove", function() {"left", (d3.event.pageX) + "px")
      .style("top", (d3.event.pageY - 28) + "px");
    .on("mouseout", function(d, i) {
    tooltip.transition().duration(400).style("opacity", 0);
    var selection ="tooltip").duration(400);"path")
      .style("stroke-width", 0)
      .style("fill-opacity", d.sets.length == 1 ? .25 : .0)
      .style("stroke-opacity", 0);
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.