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.


                <figure class="cool-card cool-flex-responsive cool-stack-24" style="--flex-gap: 0; --flex-align: stretch">
  <img class="cool-avatar cool-margin-auto-on-small cool-margin-block-start-on-small" style="--width: 12rem;" src="" alt="" width="384" height="512">
  <div class="cool-flow cool-text-center-on-small cool-inset-square-32" style="align-self: center">
    <blockquote class="cool-text-large">
        “Tailwind CSS is the only framework that I've seen scale
        on large teams. It’s easy to customize, adapts to any design,
        and the build size is tiny.”
      <div class="cool-text-interactive">
        Sarah Dayan
      <div class="cool-text-subdued">
        Staff Engineer, Algolia

<p class="cool-text-center">From <a href="">Why we're bad at CSS</a>


                /* Font */
@import url('');

/* Global Tokens */
$slate-100: rgb(241 245 249);
$slate-400: rgb(148 163 184);
$slate-500: rgb(100 116 139);
$slate-700: rgb(51 65 85);
$slate-800: rgb(30 41 59);
$sky-400: rgb(56 189 248);
$sky-500: rgb(14 165 233);
$spacing-16: 1rem;
$spacing-32: 2rem;
$radius-medium: 1rem;
$breakpoint-medium: 600px;
$radius-round: 50%;

/* Contextual Tokens */
$color-surface-brand-light: $slate-100;
$color-surface-brand: $slate-800;
$color-text: $slate-700;
$color-text-inverse: $slate-400;
$color-text-interactive: $sky-500;
$color-text-interactive-inverse: $sky-400;
$color-text-subdued: $slate-500;
$color-text-subdued-inverse: $slate-500;

/* Component Tokens */
$avatar-medium: 6rem;
$text-large-font-size: 1.125rem;
$text-large-line-height: 1.555555;

/* Reset */
:where(*) {
  box-sizing: border-box;
  font: inherit;
  margin: 0;
:where(.cool img) {
  display: block;
  max-width: 100%;

/* Global Styles */
:where(.cool body) {
  color: $color-text;
  font-family: 'Inter', sans-serif;
  font-size: 100%;
  line-height: 1.5;
  padding: $spacing-32;
  -webkit-font-smoothing: antialiased;

/* Components */
.cool-card {
  border-radius: $radius-medium;
  background-color: $color-surface-brand-light;
  overflow: hidden;
@media (prefers-color-scheme: dark) {
  .cool-card {
    background-color: $color-surface-brand;
    color: $color-text-inverse;
.cool-avatar {
  width: $avatar-medium;
  height: $avatar-medium;
  border-radius: $radius-round;
  object-fit: cover;
@media (width >= $breakpoint-medium) {
  .cool-avatar {
    --width: 100%;
    max-width: var(--width);
    width: auto;
    height: auto;
    border-radius: 0;
.cool-text-large {
  font-size: $text-large-font-size;
  line-height: $text-large-line-height;

/* Utilities */
@media (width >= $breakpoint-medium) {
  .cool-flex-responsive {
    --flex-align: center;
    --flex-gap: #{$spacing-16};
    display: flex;
    align-items: var(--flex-align);
    gap: var(--flex-gap);    
.cool-flow > :not(:last-child) {
  --flow-size: #{$spacing-16};
  margin-block-end: var(--flow-size);
@media (width < $breakpoint-medium) {
  .cool-text-center-on-small {
    text-align: center;
  .cool-margin-auto-on-small {
    margin-inline: auto;
  .cool-margin-block-start-on-small {
    --size: #{$spacing-32};
    margin-block-start: var(--size);
.cool-inset-square-32 {
  padding: $spacing-32;
.cool-stack-24 {
  margin-block-end: 1.5rem;
.cool-text-center {
  text-align: center;
.cool-text-interactive {
  color: $color-text-interactive;
.cool-text-subdued {
  color: $color-text-subdued;
@media (prefers-color-scheme: dark) {
  .cool-text-interactive {
    color: $color-text-interactive-inverse;
  .cool-text-subdued {
    color: $color-text-subdued-inverse;