Pen Settings



CSS Base

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

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.


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.


  <div id="app">
        What we're building
      <div v-for="todo in todos" :key="todo">
        <label :for="todo">{{ todo }}</label>

export default {
  data() {
    return {
      checked: [],
      todos: [
        "Set up nuxt.config.js",
        "Create Pages",
        "Create Menu and explain what Nuxt Layouts do",
        "Create Masthead, Index page",
        "Create a grid from store data",
        "Exercise: Create footer, create restaurants page",
        "Bring things in via API, via Vuex store and a Plugin",
        "Deploy! And set up environment variables",
        "Filter the grid with a reusable component and computed properties",
        "Create a dynamic page",
        "Exercise: put the content into the dynamic page",
        "Create a reusable toast component with a slot",
        "Create a cart page, use Vuex store mutations",
        "Make use of uuid",
        "Create an SVG icon with conditional layout",
        "Exercise: Finish the cart, add a counter to the cart link in menu",
        "Review validation"
  watch: {
    checked(newValue, oldValue) {
      localStorage.setItem("checked", JSON.stringify(newValue));
  mounted() {
    this.checked = JSON.parse(localStorage.getItem("checked")) || []

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  color: #2c3e50;
  line-height: 2;
  font-size: 17px;
fieldset {
  margin: 15px 25px;
  padding: 0 25px 30px;
legend {
  font-weight: bold;
  font-size: 20px;