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.


                  <h1>[Sass] <code>()</code> and <code>null</code> are different</h1>
<p class="sum"><code>null</code> is quite equivalent to <code>(null)</code> or <code>unquote('')</code> resulting in an empty string as the first item of the list. In most cases, you should probably go with a clean declaration: <code>()</code>.<br/> See below for demonstration.</p>
  <p>Initializing 2 variables:</p>
  <pre class="language-css"><code>$a: ();
$b: null;</code></pre>
<p>Let's start by checking the type of variables.</p>
  <pre class="language-css"><code>type-of($a) -> list
type-of($b) -> null</code></pre>
  <p><code>length()</code> outputs different values.</p>
  <pre class="language-css"><code>length($a) -> 0
length($b) -> 1</code></pre>
  <p>Check value of first item in lists.</p>
  <pre class="language-css"><code>nth($a, 1) -> throws error
nth($b, 1) -> </code></pre>
  <p>Let's <code>append()</code> an item to each list.</p>
  <pre class="language-css"><code>$a: append($a, "test");
$b: append($b, "test");</code></pre>
  <p>Let's try <code>length()</code> again.</p>
  <pre class="language-css"><code>length($a) -> 1
length($b) -> 2</code></pre>
  <p>Check <code>index()</code> of "test" item in lists.</p>
  <pre class="language-css"><code>index($a, "test") -> 1
index($b, "test") -> 2</code></pre>
  <p>Check value of first item in lists again.</p>
  <pre class="language-css"><code>nth($a, 1) -> "test"
nth($b, 1) -> </code></pre>


                @import "compass/css3";

html {
  font: 1em/1.55 "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  padding: 1.5em;

pre, .sum {
  border: 1px solid #ddd;
  border-radius: .2em;
  line-height: 1.4;

.sum {
  padding: 1em;
  background: #EFEFEF;