Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <!--
Include Tailwind JIT CDN compiler
More info: https://beyondco.de/blog/tailwind-jit-compiler-via-cdn
-->
<script src="https://unpkg.com/tailwindcss-jit-cdn"></script>

<!-- Specify a custom Tailwind configuration -->
<script type="tailwind-config">
{
  theme: {
    extend: {
      colors: {
        gray: colors.blueGray,
      }
    }
  }
}
</script>

<!-- Snippet -->
<section class="flex flex-col justify-center antialiased bg-gray-50 text-gray-600 min-h-screen p-4">
    <div class="h-full">
        <!-- Card -->
        <div class="max-w-[360px] mx-auto">
            <div class="bg-white shadow-lg rounded-lg p-5">
                <ul class="space-y-4">
                    <li>
                       <div class="flex items-start">
                            <svg class="w-6 h-6 flex-shrink-0 fill-current mr-4" viewBox="0 0 24 24">
                                <path class="text-indigo-500" d="M20 16h-3.3c.166.658.255 1.333.266 2.011a1 1 0 0 1-1 .989H8a1 1 0 0 1 0-2h7a4 4 0 0 0-4-4H7c-1.2-1.711-3.695-2-4.9-2H0v8.5l8.192 3.763a4.388 4.388 0 0 0 3.248.268L24 19.667S23.208 16 20 16Z"  />
                                <path class="text-indigo-300" d="m21.515 3.143-5-3a1 1 0 0 0-1.03 0l-5 3A1 1 0 0 0 10 4v6a1 1 0 0 0 1 1h3V7h4v4h3a1 1 0 0 0 1-1V4a1 1 0 0 0-.485-.857Z" />
                            </svg>
                            <div>
                                <h4 class="text-lg font-bold text-gray-900 mb-1">Know your prospect</h4>
                                <p class="text-sm text-gray-500 leading-relaxed">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt</p>
                            </div>
                       </div> 
                    </li>
                    <li>
                        <div class="flex items-start">
                            <svg class="w-6 h-6 flex-shrink-0 fill-current mr-4" viewBox="0 0 24 24">
                                <path class="text-indigo-500" d="m13.371 14.749-3.742-1.5A1 1 0 0 1 9 12.323v-.451a7.18 7.18 0 0 0 3.248-1.115.988.988 0 0 0 .181-1.416A5.991 5.991 0 0 1 11 6.038a3.879 3.879 0 0 0-1.9-3.5A4.046 4.046 0 0 0 3 6a5.943 5.943 0 0 1-1.429 3.342.987.987 0 0 0 .181 1.415A7.18 7.18 0 0 0 5 11.872v.451a1 1 0 0 1-.629.928l-3.742 1.5a1 1 0 0 0-.629.926V18a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.323a1 1 0 0 0-.629-.928Z" />
                                <path class="text-indigo-300" d="m23.371 12.749-3.742-1.5a1 1 0 0 1-.629-.926v-.878A3.982 3.982 0 0 0 21 6V4.172A4.116 4.116 0 0 0 17.393.019 4 4 0 0 0 13 4v2a3.982 3.982 0 0 0 2 3.445v.878a4.737 4.737 0 0 1-1.6 2.065c-.068.044-.134.093-.2.138l.911.365A2.988 2.988 0 0 1 16 15.677V18c-.003.341-.066.68-.184 1H23a1 1 0 0 0 1-1v-4.323a1 1 0 0 0-.629-.928Z" />
                            </svg>
                            <div>
                                <h4 class="text-lg font-bold text-gray-900 mb-1">Be personal</h4>
                                <p class="text-sm text-gray-500 leading-relaxed">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt</p>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="flex items-start">
                            <svg class="w-6 h-6 flex-shrink-0 fill-current mr-4" viewBox="0 0 24 24">
                                <path class="text-indigo-500" d="M12 0C7.589 0 4 3.589 4 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8Zm0 10a2 2 0 1 1-.001-3.999A2 2 0 0 1 12 10Z" />
                                <path class="text-indigo-300" d="M3.95 13.908.125 21.5l5.434-1.358L8 24l2.94-6.058c-2.866-.303-5.365-1.827-6.99-4.034ZM20.05 13.908l3.825 7.592-5.434-1.358L16 24l-2.94-6.058c2.866-.303 5.365-1.827 6.99-4.034Z" />
                            </svg>
                            <div>
                                <h4 class="text-lg font-bold text-gray-900 mb-1">Pursue quality</h4>
                                <p class="text-sm text-gray-500 leading-relaxed">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt</p>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="flex items-start">
                            <svg class="w-6 h-6 flex-shrink-0 fill-current mr-4" viewBox="0 0 24 24">
                                <path class="text-indigo-500" d="M22.879 8.755a6.962 6.962 0 0 1-1.592 1.707 9.417 9.417 0 0 1-.65 5.922l-.7-.676a.99.99 0 0 0-.5-.262l-3-.6a.992.992 0 0 0-.55.045l-3.1 1.175a1 1 0 0 0-.585.592l-.9 2.465-1.811 1.963a.977.977 0 0 0-.227.457 9.477 9.477 0 0 1-3.448-1.899l.13-.55 1.618-1.358a1 1 0 0 0 .319-1.04l-.674-2.36a.984.984 0 0 0-.23-.407l-1.172-1.253-.157-.266.579-.494 2.369-1.2a1 1 0 0 0 .537-.745l.387-2.615a1 1 0 0 0-.26-.83L7.691 4.857a.877.877 0 0 0-.091-.093l-.513-.422a9.439 9.439 0 0 1 3.154-1.214A6.92 6.92 0 0 1 11.194 1 11.51 11.51 0 0 0 5.61 22.078a11.523 11.523 0 0 0 13.41-.477 11.51 11.51 0 0 0 3.859-12.846Z" />
                                <path class="text-indigo-300" d="M16 9.9V12a1 1 0 0 0 2 0V9.9A5.03 5.03 0 0 0 22 5a5 5 0 0 0-10 0 5.03 5.03 0 0 0 4 4.9Z" />
                            </svg>
                            <div>
                                <h4 class="text-lg font-bold text-gray-900 mb-1">Differentiate</h4>
                                <p class="text-sm text-gray-500 leading-relaxed">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt</p>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</section>

<!-- More components -->
<div x-show="open" class="fixed bottom-0 right-0 w-full md:bottom-8 md:right-12 md:w-auto z-60" x-data="{ open: true }">
    <div class="bg-gray-800 text-gray-50 text-sm p-3 md:rounded shadow-lg flex justify-between">
        <div>👉 <a class="hover:underline ml-1" href="https://cruip.com/?ref=codepen-cruip-snippet-21" target="_blank">More components on Cruip.com</a></div>
        <button class="text-gray-500 hover:text-gray-400 ml-5" @click="open = false">
            <span class="sr-only">Close</span>
            <svg class="w-4 h-4 flex-shrink-0 fill-current" viewBox="0 0 16 16">
                <path d="M12.72 3.293a1 1 0 00-1.415 0L8.012 6.586 4.72 3.293a1 1 0 00-1.414 1.414L6.598 8l-3.293 3.293a1 1 0 101.414 1.414l3.293-3.293 3.293 3.293a1 1 0 001.414-1.414L9.426 8l3.293-3.293a1 1 0 000-1.414z" />
            </svg>
        </button>
    </div>
</div>
              
            
!

CSS

              
                section {
  font-family: 'Inter', sans-serif;
}
              
            
!

JS

              
                
              
            
!
999px

Console