Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

Auto Save

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.

HTML

              
                <div object>
  <h1>Todos</h1>
  <ul array key="todos" sortable>
    {{#for todo in todos}}
      <li object key:text="@innerText" edit:text>
        {{default todo.text "New todo"}}
      </li>
    {{/for}}
  </ul>
  <button new:todo>Add todo</button>
</div>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  padding: 0 1.5rem;
  line-height: 1.4;
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif;
}

h1 {
  margin-top: 2rem;
  margin-bottom: .75rem;
  font-size: 24px;
}

ul[key="todos"] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-left: 30px;
  font-size: 18px;
}

ul[key="todos"] li {
  margin-bottom: 8px;
  padding: 2px 6px 3px;
  border-radius: 3px;
  cursor: pointer;
}

ul[key="todos"] li:hover {
  background-color: #e9ecef;
}

/* button styles */

[new\:todo] {
  -webkit-appearance: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: antialiased;
  align-content: center;
  align-items: center;
  background-color: #1a73e8;
  background-position: 0 0;
  border: 1px solid transparent;
  border-radius: 4px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex-wrap: nowrap;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  height: 36px;
  justify-content: space-around;
  letter-spacing: .5px;
  margin: 0;
  min-width: 72px;
  overflow: hidden;
  padding: 0px 14px 1px;
  text-align: center;
  text-decoration: none;
  text-rendering: optimizelegibility;
  text-shadow: 1px 1px 0 #1567d3;
  transition: background-color .2s, box-shadow .2s, color .2s;
  vertical-align: middle;
  word-wrap: break-word;
}

[new\:todo]::-moz-focus-inner {
    border: 0;
    padding: 0;
}

[new\:todo]:active {
  background-color: #174ea6;
  box-shadow: rgba(60,64,67,.3) 0 1px 2px 0,rgba(60,64,67,.15) 0 1px 3px 1px;
  outline: 5px auto -webkit-focus-ring-color;
  text-shadow: none;
}

[new\:todo]:hover {
  background-color: #185abc;
  box-shadow: rgba(60,64,67,.3) 0 1px 2px 0,rgba(60,64,67,.15) 0 1px 3px 1px;
  outline: 0;
  text-shadow: none;
}

[new\:todo]:focus {
  background-color: #185abc;
  box-shadow: #aecbfa 0 0 0 2px;
  outline: 0;
  text-shadow: none;
  transition: none 0s;
}
              
            
!

JS

              
                /***************************************
 *           REMAKE DEMO               *
 *           ===========               *
 *                                     *
 *    See how Remake works without     *
 *        installing anything!         *
 *                                     *
 *    For the full framework, with     *
 *    data saving and user accounts:   *
 *                                     *
 *    https://docs.remaketheweb.com/   *
 ***************************************/

Remake.demoInit({
  // Log data to console when page is 
  // saved, useful for debugging
  logDataOnSave: true,
  // Load Sortable library for drag and 
  // drop reordering (only use if your 
  // app  needs drag-and-drop reordering)
  sortable: {sortablejs: Sortable},
  // Load crostini for displaying 
  // temporary success/error notices
  crostini: crostini,
  // Load Handlebars for rendering the 
  // demo on the client-side
  Handlebars: Handlebars,
  // Where in localStorage to store data
  demoLocalStorageNamespace: "remake-demo-todo-app",
  // Initial data to load into the demo app
  demoStartingData: {
    "todos": [
      {"text": "Get a cat"},
      {"text": "Buy a rocket ship"},
      {"text": "Go to Mars"}
    ]
  }
});
              
            
!
999px

Console