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.


                <main class="bg-primary-300 font-sans flex flex-col align-items-center w-100p border-box">

  <!-- shop now component -->
<div class=" bg-white m-32 flex justify-content-between align-items-center h-512 p-32 shadow-lg radius-2xl">
  <div class="mr-32">
    <h1 class="ultrabold text-7xl">Autumn sale</h1>
    <p class="color-gray-200 py-24 leading-160 text-lg">25% off now through Sunday<br> for all in-store purchases.</p>
    <button class="py-20 px-56 bg-primary-700 color-white radius-2xl">Shop Now</button> 
  <div class="ml-32 py-32 px-56 radius-2xl  bg-yellow-200">
      <img src="" alt="a blue chair">
<!--   mailing list component -->
  <div class="bg-white m-32 shadow-lg radius-2xl py-56 px-160 text-center">
    <h1 class="text-6xl ultrabold">Join our mailing list</h1>
    <p class="color-gray-200 py-24 text-lg">Receive 15% off your order at checkout and save today!</p>
    <div class="flex justify-content-between -w-100p">
      <input type="text" placeholder="Email Address" class="border-x-1 border-y-1 border-gray-200 w-9-12 py-12 px-32 radius-lg"/>
      <button class="bg-yellow-200 py-12 px-40 radius-lg">
        <svg width="20" height="16" viewBox="0 0 20 16" fill="none" xmlns="">
<path d="M11.9023 3.33337L17.4999 8.00004L11.9023 12.6667" stroke="#5956E9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<line x1="16.2773" y1="8.35449" x2="3.49979" y2="8.35449" stroke="#5956E9" stroke-width="2" stroke-linecap="round"/>

<!--   friend request component -->
  <div class="flex m-32 align-items-center ">
    <div class="h-80 w-80 radius-2xl relative left-32 z-3">
      <img src="" alt="A black man with dark shades on" class="radius-2xl w-100p h-100p object-cover object-center">
    <div class="flex w-320 p-32 bg-white align-items center justify-content-between radius-2xl relative">
      <svg class="absolute top-0 right-0 animate-ping" width="14" height="14" viewBox="0 0 20 20" fill="none" xmlns="">
<path d="M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20Z" fill="#E6C400"/>

      <div class="relative left-12">
        <h2 class="ultrabold leading-120">Nelson Michael</h2>
        <p class="text-sm color-gray-200">Friend request</p>
      <div class="flex justify-content-between w-96">
        <div class="hover.cursor-pointer">
          <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="">
<rect width="40" height="40" rx="12" fill="#CE0000" fill-opacity="0.1"/>
<path d="M25 15L15 25" stroke="#CE0000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M15 15L25 25" stroke="#CE0000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>

        <div  class="hover.cursor-pointer" >
          <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="">
<rect width="40" height="40" rx="12" fill="#00A006" fill-opacity="0.1"/>
<path d="M26 16L17.75 24L14 20.3636" stroke="#00A006" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>




  --font-sans : 'Poppins', sans-serif;
  --yellow-200: 255, 224, 249;
  --gray-200 : 174, 174, 173;
  --primary-300 : 234, 242, 255;
  --primary-400 : 206, 0, 0;
  --primary-500 : 0, 160, 6;