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.


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" class="text-black antialiased flex h-screen items-center justify-center bg-gray-900">
  <!-- Dialog view -->
  <div class="w-full max-w-sm bg-white rounded shadow-lg">
    <!-- Header -->
    <div class="bg-red-600 text-white rounded-t px-2 py-2 flex items-center">
      <div class="text-lg font-semibold px-2">Delete item?</div>
      <div class="flex-1"></div>
      <button class="ion-ios-information-circle-outline px-1 text-2xl text-red-400 hover:text-white"></button>
    <!-- Content -->
    <div class="p-4">
      Are you sure you want to delete <span class="font-semibold">mockups.sketch</span>? This cannot be undone.
    <!-- Footer -->
    <div class="border-t border-gray-200 py-2 px-2 flex items-center">
      <div class="flex-1"></div>
      <button class="bg-gray-300 hover:bg-gray-400 mr-1 px-6 py-2 rounded">Cancel</button>
      <button class="bg-red-600 hover:bg-red-700 text-white px-6 py-2 rounded">Delete</button>


                input, textarea, button:focus, select {
  outline: none;
  resize: none;

input::placeholder, textarea::placeholder {
  color: #A0AEC0;
  opacity: 1;

select {
  -webkit-appearance: none;
  background: center right 12px / 12px url( no-repeat;


                var app = new Vue({
  el: '#app',
  data: {
    // variables go here
  methods: {
    // functions go here