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.


  h2 Featured
  h1 Back to Nature
  p Down on the West Coast where the sand meets the crashing waves and your dreams come true.
  a.btn Read More 



                @import url('|Playfair+Display');
$san-serif:'Open Sans',
$serif:'Playfair Display',

$color-shadow:transparentize(#303336, .9);

* {
  user-select: none;
  transition: .3s ease;
  -webkit-font-smoothing: antialiased;

body {
  background-image: linear-gradient(-45deg, #EEF0F3 0%, #F6F5F3 100%);

.paper {
  margin: 10vh auto;
  min-width: 20vw;
  max-width: 60vh;
  min-height: 20vh;
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(50, 50, 90, .1), 0 5px 15px rgba(0, 0, 0, .07);
  transition: .6s ease;
  background: white;
  text-align: center;

.paper:hover {
  box-shadow: 0 18px 35px rgba(50, 50, 90, .1), 0 8px 15px rgba(0, 0, 0, .07);
  transform: translateY(-1px);

img {
  max-width: 100%;
  max-height: 100%;

.poster {
  border-radius: 4px 4px 0 0;
  margin-bottom: 2vh;

h1 {
  font-size: 2.6rem;
  color: #303336;
  letter-spacing: 1px;
  margin: 2vh 4vw;
  font-family: $serif;

h2 {
  font-size: .4rem;
  color: #A0A6AB;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: $san-serif;
  font-weight: 700;
  margin-bottom: 10px;

hr {
  width: 20%;
  margin-top: 3vh;
  margin-bottom: 3vh;
  border: 0;
  border-bottom: 1px solid #E6E9EC;

p {
  margin: 2vh 8vw;
  text-align: center;
  padding-bottom: 1vh;
  color: #A0A6AB;
  font-family: $serif;
  font-weight: 400;
  font-size: .9rem;
  line-height: 1.25rem;

a.btn {
  display: inline-block;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  line-height: 20px;
  border-radius: 4px;
  padding: 1vh 2vh;
  letter-spacing: .02rem;
background: #664EF7;
  box-shadow:0 0px 0px $color-shadow,
0 0px 0px rgba(0, 0, 0, 0);

a.btn:hover {
  background: #7C66FF;
  box-shadow:0 7px 14px $color-shadow,
0 3px 6px rgba(0, 0, 0, .08);
  transform: translateY(-1px);

a.btn:active {
  box-shadow:0 4px 6px $color-shadow,
0 1px 3px rgba(0, 0, 0, .12);
  transform: translateY(1px);