Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <div class="ui container">

  <h2 class="ui dividing header">
    Button colors
    <div class="sub header">A pen for experimenting with Semantic UI color palettes</div>
  </h2>

  <h3>Default colors</h3>

  <button class="ui red button">Red</button>
  <button class="ui orange button">Orange</button>
  <button class="ui yellow button">Yellow</button>
  <button class="ui olive button">Olive</button>
  <button class="ui green button">Green</button>
  <button class="ui teal button">Teal</button>
  <button class="ui blue button">Blue</button>
  <button class="ui violet button">Violet</button>
  <button class="ui purple button">Purple</button>
  <button class="ui pink button">Pink</button>
  <button class="ui brown button">Brown</button>
  <button class="ui grey button">Grey</button>
  <button class="ui black button">Black</button>

  <h3>Custom colors</h3>

  <button class="ui color1 button">Color 1</button>
  <button class="ui color2 button">Color 2</button>
  <button class="ui color3 button">Color 3</button>
  <button class="ui color4 button">Color 4</button>
  <button class="ui color5 button">Color 5</button>
  
  <h3>List of links</h3>
  <div class="ui list">
    <a class="item">Item One</a>
    <a class="item">Item Two</a>
  </div>
</div>

<div class="ui inverted segment">
  <div class="ui container">
    <h3>Custom colors</h3>

    <button class="ui color1 button">Color 1</button>
    <button class="ui color2 button">Color 2</button>
    <button class="ui color3 button">Color 3</button>
    <button class="ui color4 button">Color 4</button>
    <button class="ui color5 button">Color 5</button>
    
    <h3>List of links</h3>
    <div class="ui list">
      <a class="item">Item One</a>
      <a class="item">Item Two</a>
    </div>
</div>
              
            
!

CSS

              
                body {
  padding: 1em;
}

.ui.color1.button {
  background-color: #734322;
  color: #fff;
}

.ui.color2.button {
  background-color: #F9A0A0;
  color: #fff;
}

.ui.color3.button {
  background-color: #EA7171;
  color: #fff;
}

.ui.color4.button {
  background-color: #DE627F;
  color: #fff;
}

.ui.color5.button {
  background-color: #F9A0A0;
  color: #fff;
}

.ui.list>a.item {
  cursor: pointer;
  color: #1CB084;
/*  color: #41C49C;*/
/*    color: #7CEAD9;*/
}

.ui.list>a.item:hover{
  color: #2F8C70;
}
              
            
!

JS

              
                
              
            
!
999px

Console