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="card">
  <div class="bucket bucket--center">
    <img src="" class="card-avatar" />
      <h3 class="heading3">Nice Title</h3>
      <h4 class="heading4">A Very Nice Subtitle</h4>
  <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Impedit accusamus numquam blanditiis obcaecati ullam, fugiat repudiandae autem at nostrum labore doloribus non porro similique eveniet.</p>
    <a href="#" class="link">Hover/focus me.</a>


                /* Variables */
:root {
  --blue600: #007ace;
  --gray500: #a0aec0;
  --gray700: #4a5568;
  --gray900: #1a202c;

/* Global/reset */
body {
  font: 16px/1.5 system-ui, sans-serif;
  margin: 1rem;

h3, h4 {
  font-weight: normal;
  line-height: 1.25;
  margin: 0;

p {
  margin: 1rem 0;

/* Bucket component */
.bucket {
  display: flex;
.bucket--center {
  align-items: center;

/* Card component */
.card {
  border: 1px solid var(--gray500);
  border-radius: 0.25rem;
  color: var(--gray700);
  padding: 1rem 1rem 0;

.card-avatar {
  border-radius: 50%;
  height: 3rem;
  margin-right: 1rem;
  width: 3rem;

/* Heading components */
.heading3 {
  color: var(--gray900);
  font-size: 1.125rem;
  font-weight: bold;

.heading4 {
  font-size: 0.875rem;

/* Link component */
.link {
  color: var(--blue600);
  transition: 300ms opacity ease-in-out; 

.link:focus {
  opacity: 0.5;