Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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.


                <div class="chart"></div>

<ul class="key">
    <strong class="percent red">4%</strong>
    <span class="choice">Jump right in, startupfille here I come.</span>
    <strong class="percent gray">4%</strong>
    <span class="choice">Email back to discuss, flattered and positive.</span>
    <strong class="percent purple">6%</strong>
    <span class="choice">Respond and say "Thanks but no thanks."</span>
    <strong class="percent blue">9%</strong>
    <span class="choice">Email back to discuss, all business.</span>
    <strong class="percent yellow">31%</strong>
    <span class="choice">Email back to discuss, but skeptically.</span>
    <strong class="percent orange">46%</strong>
    <span class="choice">Delete the email.</span>


                $red = #F15854;
$gray = #4D4D4D;
$blue = #5DA5DA;
$yellow = #DECF3F;
$purple = #B276B2;
$orange = #FAA43A;
// colors from

.chart {
    conic-gradient($red 4%, 
      $gray 0 8%, 
      $blue 0 17%,
      $yellow 0 48%,
      $purple 0 54%,
      $orange 0
  border-radius: 50%;
  width: 50%;
  height: 0;
  padding-top: 50%;
  float: left;
  padding-right: 20px;

.key {
  width: 50%;
  float: right;
  list-style: none;
  display: table;
  border-collapse: separate;
  > li {
    display: table-row;
    > * {
      display: table-cell;
      border-bottom: 12px solid white;

.percent {
  color: white;
  padding: 10px 2px;
  text-shadow: 0 0 1px black;
  text-align: center;
.choice {
  padding-left: 10px;

.red {
  background: $red;
.gray {
  background: $gray;
.blue {
  background: $blue;
.yellow {
  background: $yellow;
.purple {
  background: $purple;
.orange {
  background: $orange;

* {
  box-sizing: border-box;

body {
  padding: 20px;
  font-family: sans-serif;


   -prefix-free (required)