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


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.


    <meta charset="UTF-8">

    <link rel='stylesheet prefetch' href=''>
    <link rel="stylesheet" href="style.css">
    <h1>Color Picker</h1>
    <h3>Background Color Selector</h3>
    <p>To select a background color, please click on your prefered color below:</p>
    <div class = "bGButton">
      <button class="red"></button>
      <button class="orange"></button>
      <button class="yellow"></button>
      <button class="green"></button>
      <button class="blue"></button>
      <button class="purple"></button>
      <button class="grey"></button>
      <button class="white"></button>
      <button class="black"></button>
    <h3>Choose Another Color *note: this feature is stil under construction*</h3>
    <p>Don't see the color you want? Type your prefered color below to select the background color. Not sure what color you want? Go to <a href="">this</a> website for ideas.</p>
    <input type="text" required placeholder="type color here">
    <button type="submit" style="padding: 8px">submit</button>
    <h3>Text Color Selector</h3>
    <p>To select a text color, please click on your prefered color below:</p>
    <div class="textButton">
      <button class="redText">red</button>
      <button class="orangeText">orange</button>
      <button class="yellowText">yellow</button>
      <button class="greenText">green</button>
      <button class="blueText">blue</button>
      <button class="purpleText">purple</button>
      <button class="greyText">grey</button>
      <button class="whiteText">white</button>
      <button class="blackText">black</button>

<script src=''></script>
<script src="index.js"></script>




                button {
  border-radius: 20px;
  padding: 20px;
  margin: 5px;

  background-color: FireBrick;

  background-color: orange;

  background-color: yellow;

  background-color: green;

  background-color: DeepSkyBlue;

  background-color: RebeccaPurple;

  background-color: grey;



  color: FireBrick;

  color: Orange;

  color: yellow;

  color: green;

  color: DeepSkyBlue;

  color: RebeccaPurple;

  color: grey;




                $(document).ready(function() {

  $('.bGButton').find('button').click(function() {
    $('body').removeClass('red orange yellow green blue purple grey white black');
    var color = $(this).attr('class');
 	$('.textButton').find('button').click(function() {
    $('body').removeClass('redText orangeText yellowText greenText blueText purpleText greyText whiteText blackText');
    var tColor = $(this).attr('class');