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.


                input#theme-dark(type='radio', name='theme', value='dark')
  | Dark
input#theme-light(type='radio', name='theme', value='light', checked='')
  | Light
    | That's the shizzle ipsum dolizzle sit amizzle, phat adipiscing we gonna chung. Get down get down sapizzle velizzle, fo shizzle my nizzle volutpizzle, suscipizzle quis, that's the shizzle vizzle, arcu. Pellentesque eget tortor. Fizzle erizzle. Crackalackin
    | izzle dolor dapibus turpis tempizzle dawg. Maurizzle pellentesque nibh izzle turpizzle. Rizzle izzle boom shackalack. Pellentesque ghetto rhoncizzle nisi. In hizzle things platea dictumst. Funky fresh dapibizzle. Shiznit pot urna, pretium fo, mattizzle
    | get down get down, eleifend vitae, nunc. Check it out suscipit. Integizzle i'm in the shizzle fo shizzle mah nizzle fo rizzle, mah home g-dizzle dope shut the shizzle up.



                :root {
  --dark: #20262e;
  --light: #fff;
  --active: #027ff3;

input[value="dark"]:checked~article {
  background-color: var(--dark);
  color: var(--light);

input[value="light"]:checked~article {
  background-color: var(--light);
  color: var(--dark);

input[name="theme"]:checked+label {
  color: var(--active);

 * The code below defines styles for demo purpose

body {
  padding: 32px;
  font: 14px/1.5 arial, sans-serif;

p {
  margin-bottom: 10px;

article {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 80px 32px;

label {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid #eee;
  position: relative;
  z-index: 1;
  border-radius: 4px;
  background-color: var(--light);
  cursor: pointer;

input[name="theme"] {
  display: none;