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.


      "" method="post" name="revue-form" target="_blank")
  h1.m-0.mb-2.text-3xl Delivery! 📦
    Get snippets of awesome delivered straight to your Inbox! No spam! Unsubscribe anytime!
    .whimsy-form__group.flex-grow.mb-6(class="lg:mb-0") Email address
      input.p-4.rounded-md.w-full.border-white.border-2.text-black(type="email", required="true" data-lpignore="true" placeholder="Email address")
    .whimsy-form__actions"submit", value="Subscribe" class="hover:bg-gray-700 lg:ml-4")



  box-sizing border-box

  --red hsl(10, 80%, 80%)
  --orange hsl(35, 80%, 80%)
  --yellow hsl(45, 80%, 80%)
  --green hsl(85, 80%, 80%)
  --blue hsl(215, 80%, 80%)
  --indigo hsl(285, 80%, 80%)
  --violet hsl(320, 80%, 80%)
  min-height 100vh
  display grid
  place-items center
  background linear-gradient(65deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--indigo), var(--violet))


                import confetti from ''
const FORM = document.querySelector("form")
const SUBMIT = FORM.querySelector('[type="submit"]')

const onSubmit = e => {
  const BOUNDS = SUBMIT.getBoundingClientRect()
    disableForReducedMotion: true,
    origin: {
      x: (BOUNDS.x + BOUNDS.width / 2) / window.innerWidth,
      y: (BOUNDS.y + BOUNDS.height / 2) / window.innerHeight,
  setTimeout(() => FORM.submit(), 1000)

FORM.addEventListener('submit', onSubmit)