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.


<p>This is a super simple Shoelace.css demo. Cool, huh? You can customize things by overriding any of Shoelace's variables in your own stylesheet.</p>

:root {
  --body-color: white;
  --body-bg-color: black;
  --link-color: #09d;

<p>I hear you like buttons</p>
<div class="input-single">
  <button type="button">Default</button>
  <button type="button" class="button-success">Success</button>
  <button type="button" class="button-info">Info</button>
  <button type="button" class="button-warning">Warning</button>
  <button type="button" class="button-danger">Danger</button>
  <button type="button" class="button-light">Light</button>
  <button type="button" class="button-dark">Dark</button>
  <button type="button" class="button button-link">Link</button>

<p>And badges</p>
<div class="input-single">
  <span class="badge">Default</span>
  <span class="badge badge-success">Success</span>
  <span class="badge badge-info">Info</span>
  <span class="badge badge-warning">Warning</span>
  <span class="badge badge-danger">Danger</span>
  <span class="badge badge-light">Light</span>
  <span class="badge badge-dark">Dark</span>

<p>What about input groups?</p>
<div class="input-group">
  <input type="text" placeholder="First">
  <input type="text" placeholder="Middle">
  <input type="text" placeholder="Last">
  <button type="button" class="button">Submit</button>

<p>And dropdowns!</p>
<div class="input-single">
  <div class="dropdown">
    <button type="button" class="dropdown-trigger">Dropdown</button>
    <div class="dropdown-menu">
      <a href="#">Item 1</a>
      <a href="#">Item 2</a>
      <a href="#">Item 3</a>
      <a href="#" class="checked">Checked</a>
      <a href="#" class="disabled">Disabled</a>
      <a href="#">More...</a>

<p>And switches!</p>
<div class="input-single">
  <span class="switch switch-small">
    <input type="checkbox" class="switch" id="switch-3">
    <label for="switch-3">Small</label>

  <span class="switch">
    <input type="checkbox" class="switch" id="switch-4">
    <label for="switch-4">Normal</label>

  <span class="switch switch-big">
    <input type="checkbox" class="switch" id="switch-5">
    <label for="switch-5">Big</label>

<p>Loaders? We got those too</p>
<div class="input-single">
  <span class="loader loader-small"></span>
  <span class="loader"></span>
  <span class="loader loader-big"></span>


  Get all this and more at <a href=""></a>


                :root {
  /* Change the text color and background */
  --body-color: #111;
  --body-bg-color: #fff;
  /* Change colors for various states */
  --state-primary: #09d;
  --state-success: #2ecc40;
  --state-info: #7fdbff;
  --state-warning: #ff851b;
  --state-danger: #ff4136;
  --state-light: #e5e5e5;
  --state-dark: #333;
  And more! Details at:

body {
  max-width: 45rem;
  padding: 2rem;
  margin: 0 auto;