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.



Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO


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.


Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.


Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

PRO members can see and edit the Pen thumbnail here after the Pen has been saved.


                <!-- buttons -->
<div class="p-4">
  <button class="btn btn-primary">primary</button> 
  <button class="btn btn-secondary">secondary</button> 
  <button class="btn btn-accent">accent</button>

<!-- same buttons with another theme! -->
<div class="p-4" data-theme="cupcake">
  <button class="btn btn-primary">primary</button> 
  <button class="btn btn-secondary">secondary</button> 
  <button class="btn btn-accent">accent</button>

<!-- tab -->
<div class="p-4 tabs tabs-lifted">
  <button class="tab">Tab 1</button>
  <button class="tab tab-active">Tab 2</button>
  <button class="tab">Tab 3</button>
	<button class="tab"></button>

<!-- toggle -->
<div class="p-4">
  <input type="checkbox" class="toggle toggle-primary"> 
  <input type="checkbox" class="toggle toggle-secondary"> 
  <input type="checkbox" class="toggle toggle-accent"> 

<!-- card -->
<div class="card shadow-2xl w-80 m-4">
    <img src=""/>
  <div class="card-body">
    <h2 class="card-title">DaisyUI Card</h2>
    <p>Rerum reiciendis beatae tenetur excepturi aut pariatur est eos. Sit sit necessitatibus.</p> 

<!-- dropdown -->
<details class="dropdown m-4">
  <summary class="m-1 btn">open / close</summary>
  <ul class="p-2 shadow menu dropdown-content bg-base-100 rounded-box w-52">
    <li><a>Item 1</a></li>
    <li><a>Item 2</a></li>

<!-- Open the modal using ID.showModal() method -->
<button class="btn" onclick="my_modal_1.showModal()">open modal</button>
<dialog id="my_modal_1" class="modal">
  <form method="dialog" class="modal-box">
    <p class="py-4">Press ESC key or click the button below to close</p>
    <div class="modal-action">
      <button class="btn">Close</button>

<!-- steps -->
<ul class="steps my-4 w-full">
  <li class="step step-primary">Register</li> 
  <li class="step step-primary">Choose plan</li> 
  <li class="step">Purchase</li> 
  <li class="step">Receive Product</li>

<!-- chat bubble -->
<div class="chat chat-start m-4">
  <div class="chat-image avatar">
    <div class="w-10 rounded-full">
      <img src="" />
  <div class="chat-bubble">
    see all components <a class="link" target="_blank" href="">Here</a> 






Be the developer your linter thinks you are.