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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <!-- -->

  <h1>Emoji Forms!</h1>
  <form action="#" autocomplete="off">
    <h2>Please fill out the things.</h2>
      <legend>Send Me Spam </legend>
        <input type="radio" name="spam" id="spamY" checked> <label for="spamY">Please send me all the spam.</label>
        <input type="radio" name="spam" id="spamN"> <label for="spamN">Please send it to my neighbor.</label>
      <input type="checkbox" name="terms" id="terms"> <label for="terms">I have read your terms and they make no sense.</label>
      <input type="reset" value="Break all my effort.">
      <input type="submit" value="Post this thing">
  For the post <a href=""><cite>Under-Engineered Custom Radio Buttons and Checkboxen</cite></a>.

              /* */

@import url(,700);

body {
  background-color: #6D695C;
  font-size: 100%;
  color: #333;
  font-family: Lato, Arial, sans-serif;
  padding: 0;
  margin: 0;

main {
  display: block;
  box-sizing: border-box;
  width: 90%;
  margin: 1em auto;
  padding: 1em 2em;
  color: #000;
  background-color: rgba(204,204,204,.7);
  border: .07em solid rgba(0,0,0,.5);
  border-radius: .5em;

/*-- forms --*/

form {
  background-color: #fff;
  padding: 1em 2em;

form div {
  box-sizing: border-box;
  position: relative;

form > div,
form fieldset > div {
  margin: 1.5em 0;

form fieldset > div:first-of-type {
  margin-top: 1em;

form fieldset > div:last-of-type {
  margin-bottom: 1em;

fieldset {
  border: .1em solid rgba(0, 0, 0, .15);

select {
  font-size: 100%;
  color: #333;
  font-family: Lato, Arial, sans-serif;

input[disabled] + label::after,
input[disabled] + datalist + label::after,
textarea[disabled] + label::after,
select[disabled] + label::after {
  content: " (disabled)";

/* Buttons */

input:not([type=radio]):not([type=checkbox])[type=reset] {
  display: none;

button {
  color: #fff;
  background-color: #00f;
  border: .1em solid #00f;
  border-radius: .2em;
  font-weight: bold;
  padding: .5em;
  text-align: center;
  width: 100%;
  box-shadow: .25em .25em .5em rgba(0, 0, 0, .5);

button:hover {
  color: #00f;
  background-color: #fff;
  outline: 0;

button:active {
  box-shadow: 0 0 .5em rgba(0, 0, 0, .5);

/* Radios and checkboxen */

input[type=checkbox] {
  position: absolute;
  top: auto;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px); /* IE 6/7 */
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  white-space: nowrap; /* */

input[type=radio] + label,
input[type=checkbox] + label {
  display: block;
  padding: .5em;
  padding-left: 2em;
  /* text-indent: 0em; */
  max-width: calc(100% - 2em);
  /*margin: -1em 0;*/

fieldset > div input[type=radio] + label {
  margin: -1em 0;

input[type=radio]:focus + label,
input[type=checkbox]:focus + label {
  color: #00f;
  outline: 1px dotted #00f;

input[type=radio] + label:before,
input[type=checkbox] + label:before {
  content: '';
  background: #fff;
  border: .1em solid rgba(0, 0, 0, .75);
  background-color: rgba(255, 255, 255, .8);
  display: block;
  float: left;
  width: .9em;
  height: .9em;
  margin-left: -1.5em;
  margin-top: .1em;
  vertical-align: top;
  cursor: pointer;
  text-align: center;
  -webkit-transition: all .1s ease-out;
  transition: all .1s ease-out;

input[type=radio] + label:before {
  border-radius: 100%;

input[type=radio]:disabled + label:before,
input[type=checkbox]:disabled + label:before {
  border: .1em solid rgba(0, 0, 0, .1);
  background-color: rgba(0, 0, 0, .1);

input[type=radio]:disabled + label,
input[type=checkbox]:disabled + label {
  color: #ccc;

input[type=checkbox] + label:before,
input[type=radio] + label:before {
  /*content: '\00d7';*/
  /*content: '\002718';*/
  /*content: '\002715';*/
  /*content: '\0025a0';*/
  content: '🍆';
  text-align: center;
  line-height: 1.15;
  color: rgba(0, 0, 255, 0);

input[type=radio] + label:before {
  content: '🍑';

input[type=checkbox]:checked + label:before,
input[type=radio]:checked + label:before {
  color: rgba(0, 0, 255, 1);
  line-height: .85;
  border-color: rgba(0, 0, 0, .15);

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.