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.


                <header class="header">
  <div class="header__title">
  <div class="header__reference">
    <ul class="reference-list">
      <li><a class="reference-list__link" href="">MDN reference</a></li>
      <li><a class="reference-list__link" href="">caniuse Support</a></li>

  <div class="example">
      This example contains a variety of gradients, each using the <code>linear-gradient()</code> function's syntax to create a variety of visual effects:

    <div class="example__demo example__demo--linear-gradient">
      <h2>Simple 2 color linear gradient</h2>
      <div class="gradient gradient--a"></div>
      <h2>2 column with blurry split</h2>
      <div class="gradient gradient--b"></div>
      <h2>4 rows</h2>
      <div class="gradient gradient--c"></div>
      <h2>Hazy fade</h2>
      <div class="gradient gradient--d"></div>


                // Demo
.gradient--a {
  background: linear-gradient(to right, #000000 0%, #ffffff 100%);

.gradient--b {
  background: linear-gradient(to right, #fcecfc 0%, #fba6e1 50%, #fd89d7 51%, #ff7cd8 100%);

.gradient--c {
  background: linear-gradient(to bottom, #03a9f4 0%, #03a9f4 25%, #f29235 25%, #f29235 50%, #c83361 50%, #c83361 75%, #53b256 75%, #53b256 100%);

.gradient--d {
  background-image: linear-gradient(315deg, #fde7f9 0%, #aacaef 74%);

// Pen Setup
.example__demo--linear-gradient {
  background-color: var(--color-cinder);

.gradient {
  height: 5rem;
  width: 100%;

h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;

h2:not(:first-of-type) {
  margin-top: var(--size-epsilon);