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.


  <div class="card">
    <div class="title">Lorem ipsum dolor</div>
    <p>Quis nostrud nisi ut aliquip ea commodo consequat.</p>
    <a href="#">Read more</a>

  <div class="card">
    <div class="title">Consectetur adipiscing elit</div>
    <p>Duis aute irure dolor in cillum dolore eu.</p>
    <a href="#">Read more</a>

  <div class="card">
    <div class="title">Ut enim</div>
    <p>Excepteur sint occaecat cupidatat non proident.</p>
    <a href="#">Read more</a>


                @import "";
@import "";

@use postcss-preset-env;

:root {
  --shadow-color: 0deg 0% 54%;
    0px 0.8px 0.9px hsl(var(--shadow-color) / 0.36),
    0px 2.7px 3px -0.8px hsl(var(--shadow-color) / 0.36),
    0px 6.7px 7.5px -1.7px hsl(var(--shadow-color) / 0.36),
    0.1px 16.2px 18.2px -2.5px hsl(var(--shadow-color) / 0.36);

main {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  justify-content: space-around;
  max-inline-size: calc(var(--size-content-1) * 4);
  gap: var(--size-5);
  padding: var(--size-5);

a {
  color: var(--indigo-6)

.card {
  flex-basis: var(--size-content-1);
  display: flex;
  flex-direction: column;
  gap: var(--size-2);
  padding: var(--size-4);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-elevation-medium);
  background-color: white;

.card > .title {
  line-height: var(--font-lineheight-1);
  font-size: var(--font-size-3);
  font-weight: var(--font-weight-5)

body {
  display: grid;
  place-content: center;
  background: #e9ecef;
  color: var(--gray-9);