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.


    img(src="", alt="profile image", width="100").card__image
    h2 Morgan Sweeney
    .title Ant Collector
  .desc Morgan has collected ants since they were six years old and now has many dozen ants but none in their pants.


                @import url(",400i,700");

$notification-text-like: #94dacd;
$notification-bg-like: #69dbce;
$notification-text-dislike: #da94a1;
$notification-bg-dislike: #db6976;
$notification-text-share: #dacd94;
$notification-bg-share: #dbce69;

body {
  font-family: Roboto, sans-serif;
  margin: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  background: rgb(140,246,194);
  background: linear-gradient(180deg, rgba(140,246,194,1) 0%, rgba(73,128,86,0.9962184702982756) 97%);

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.6);
  width: 350px;
  height: 555px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  .header {
    padding: 10px 0;
    display: flex;
    border-radius: 10px 10px 0 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    width: 100%;
    height: 250px;
    background: url(;
    background-repeat: no-repeat;
    background-size: 400px auto;
    img {
      border-radius: 50%;
      border: 6px solid white;
    .title {
      border-bottom: 1px solid white;
  h2 {
    margin: 0;
    padding: 10px 0;
  .title {
    padding: 0.25rem 1rem;
  .desc {
    padding: 0px 25px;
    text-align: center;
    color: #404040;
    line-height: 25px;
  .actions {
    order: 100;
    padding: 0.5rem 1rem;
    margin-bottom: 40px;
    button {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: none;
      border: 1px solid white;
      box-shadow: 0px 0px 10px lightgray;
      margin: 0 5px;
      cursor: pointer;
      &:hover {
        transform: scale(1.15);