Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's 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 it's URL and the proper URL extention.

+ 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.


                <div class="container">

  <h1>Default focus styles</h1>
    Lorem ipsum dolor sit, amet consectetur adipisicing elit. Eos deleniti tempora in dolor, soluta nisi <a href="#">link with focus</a> nostrum, temporibus laudantium libero modi. Iusto, ab eaque non cum praesentium dignissimos nam tempore!

    <li><a href="#">link 1</a></li>
    <li><a>link 2 (missin href)</a></li>
    <li><a href="#">link 3</a></li>
    <li><button disabled>Button (disabled)</button></li>


  <h2>Form elements with different focus styles</h2>

  <form class="flow">
      <label for="firstname">First name</label>
      <input type="text" id="firstname" placeholder="Roger">
      <label for="firstname">First name</label>
      <input type="text" id="firstname" placeholder="Roger">
    <input type="submit" value="Send">


                :root {
  --color-outline: #3c83f6;
  --bg-outline: #bbdefb;

/* Default focus */
[tabindex="0"]:focus {
  outline-offset: 1px;
  outline-style: dotted;
  outline-width: 4px;
  outline-color: var(--color-outline);

/* Custom focus */
input:not([disabled]):focus {
  outline: none;
  border: 2px solid var(--color-outline);
  background-color: var(--bg-outline);

/* Base styles  */
body {
  margin: 0;
  background-color: #fcf5e9;
  font-family: sans-serif;

li {
  padding: 0.25rem 0;

label {
  display: block;

input {
  display: block;
  padding: 0.25rem 0.5rem;
  border: 2px solid currentcolor;

.container {
  max-width: 40rem;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;

.flow > * + * {
  margin-top: var(--flow-space, 1em);



                // Demo for article about focus ring