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.




                h1 {
  color: transparent; // hide the text to reveal shadows
  font: 700 280px 'Comfortaa', cursive;
  text-align: center;
  text-shadow: // bevel effects with multiple text shadows
    24px 20px 8px rgba(#fff,0.25),
    18px 10px 6px rgba(#026374,0.39),
    8px 6px 6px rgba(#000,0.57),
    4px 4px 6px #fff,
    0 0 6px #055f73;
  margin: 0.125em 0;
  position: relative;
  &::after {
    content: '';
    font: inherit;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
  &::before { // candy cane stripes
    $size: 20px;
    // Change this to any pattern
    background: repeating-linear-gradient(-45deg,
      #d5013f, #d5013f $size, 
      #fff $size, #fff $size * 2
    mix-blend-mode: overlay;
  &::after { // cover excess shadows that spill outside text
    background: white;
    content: 'candy';
    color: black;
    text-shadow: none;
    mix-blend-mode: lighten;
    bottom: -20px;

/* Yup, text selection looks bad */
::selection { background: #000; }
::-moz-selection { background: #000; }