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.


  <svg class="icon" aria-hidden="true">
    <use xlink:href="#icon-coffee" href="#icon-coffee" />

  <svg class="icon icon--fill" aria-hidden="true">
    <use xlink:href="#icon-coffee" href="#icon-coffee" />

  <svg class="icon icon--color" aria-hidden="true">
    <use xlink:href="#icon-coffee" href="#icon-coffee" />

  <svg class="icon icon--color-alt" aria-hidden="true">
    <use xlink:href="#icon-coffee" href="#icon-coffee" />

  <p><a href="" target="_blank" title="Download these icons free from Kyle Adams Icon Design"><span>From the Creative Things Icon Set by Kyle Adams</span></a></p>

  <svg xmlns="" class="hidden">
  <symbol id="icon-coffee" viewBox="0 0 20 20">
    <path fill="var(--handle-color)" d="M15,17H14V9h3a3,3,0,0,1,3,3h0A5,5,0,0,1,15,17Zm1-6v3.83A3,3,0,0,0,18,12a1,1,0,0,0-1-1Z"/>
    <rect fill="var(--cup-color)" x="1" y="7" width="15" height="12" rx="3" ry="3"/>
    <path fill="var(--smoke-color)" d="M7.07,5.42a5.45,5.45,0,0,1,0-4.85,1,1,0,0,1,1.79.89,3.44,3.44,0,0,0,0,3.06,1,1,0,0,1-1.79.89Z"/>
    <path fill="var(--smoke-color)" d="M3.07,5.42a5.45,5.45,0,0,1,0-4.85,1,1,0,0,1,1.79.89,3.44,3.44,0,0,0,0,3.06,1,1,0,1,1-1.79.89Z"/>
    <path fill="var(--smoke-color)" d="M11.07,5.42a5.45,5.45,0,0,1,0-4.85,1,1,0,0,1,1.79.89,3.44,3.44,0,0,0,0,3.06,1,1,0,1,1-1.79.89Z"/>


                @mixin icon-colors($fallback: black) {
  fill: $fallback;

.icon {
  width: 100px;
  height: 100px;
  margin-right: 10px;
  &--fill {
    @include icon-colors(grey);
  &--color {
    @include icon-colors(#ef5b49) {
      --handle-color: #c13127;
      --cup-color: #ef5b49;
      --smoke-color: #cacaea;
  &--color-alt {
    @include icon-colors(#2f3fff) {
      --handle-color: #1f2bac;
      --cup-color: #2f3fff;
      --smoke-color: #a5acbd;

/* Demo styles */

body {
  display: flex;
  height: 100vh;
  margin: 0;
  font-family: Helvetica Neue, Helvetica, Arial;
  justify-content: center;
  align-items: center;
  text-align: center;

.hidden {
  display: none;