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="effect-grain">
  <div class="background effect-blurry"></div>
<div class="colors-container">
  <div class="color color-1"></div>
  <div class="color color-2"></div>
  <div class="color color-3"></div>
  <div class="color color-4"></div>
  <div class="color color-5"></div>

<svg xmlns="" version="1.1">
    <filter style="color-interpolation-filters:sRGB;" id="grain">
      <feTurbulence type="fractalNoise" numOctaves="10" baseFrequency="0.25" seed="10" result="result0" />
      <feColorMatrix result="result4" values="0" type="saturate" />
      <feComposite in="SourceGraphic" in2="result4" operator="arithmetic" k1="0" k2="0.5" k3="0.1" result="result2" />
      <feBlend result="result5" mode="normal" in="result2" in2="SourceGraphic" />

    <filter style="color-interpolation-filters:sRGB;" id="paper">
      <feTurbulence type="fractalNoise" baseFrequency="0.04" numOctaves="5" seed="0" result="result4" id="feTurbulence4160" scale="4" />
      <feDisplacementMap in="SourceGraphic" in2="result4" yChannelSelector="G" xChannelSelector="R" scale="1" result="result3" id="feDisplacementMap4162" />
      <feDiffuseLighting lighting-color="rgb(233,230,215)" diffuseConstant="1" surfaceScale="0.2" result="result1" in="result4" id="feDiffuseLighting4164">
        <feDistantLight azimuth="235" elevation="40" id="feDistantLight4166" />
      <feComposite operator="in" in="result3" in2="result1" result="result2" id="feComposite4168" />
      <feComposite in2="result1" result="result5" operator="arithmetic" k1="1.7" id="feComposite4170" />
      <feBlend in="result5" in2="result3" mode="normal" id="feBlend4172" />


                @dark-blue : #4F7F8F;
@light-blue : #96D5EB;
@blue : #57A3BD;
@dark-sand : #DBCEC1;
@sand : #F7F6F5;

@color1 : @sand;
@color2 : @dark-sand;
@color3 : @light-blue;
@color4 : @dark-blue;
@color5 : @blue;

// height of the pallette
@h : 70vh;

// bqckgroudn blur qmount
@blur: 50px;

body {
  background-color: black;
  overflow: hidden;

.background {
  position: absolute;
  top: -@blur;
  bottom: -@blur;
  left: -@blur;
  right: -@blur;
  z-index: 0;
  background: linear-gradient(to bottom, @color1 20%, @color2 30%, @color3 40%, @color4 50%, @color5 60%);  

.effect-blurry {
  -webkit-filter: blur(@blur);
  filter: blur(@blur);

  -webkit-filter: url(#grain);
  filter: url(#grain);

  -webkit-filter: url(#paper);
  filter: url(#paper);

.colors-container {
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: @h;
  width: calc(0.8 * @h);

  background-color: black;
  box-shadow: 10px 30px 100px 0px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;

.color {
  width: 100%;
  flex-grow: 1;
.color-1 {
  background-color: @color1;
  flex-grow: 3;
.color-2 {
  background-color: @color2;
.color-3 {
  background-color: @color3;
.color-4 {
  background-color: @color4;
.color-5 {
  background-color: @color5;
  flex-grow: 8;