Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <section class="cu-content">
  <div class="cu-module">
    <div class="grid-container">
      <h2>Buttons</h2>
      <div class="grid-x grid-margin-x grid-margin-y align-spaced">
        <div class="cell large-4">
          <h3>Structure</h3>
          <p>Each button should have the below structure:<br/><code>&#60;a class="button cu-btn" href="#">&#60;/a></code></p><a class="button cu-btn cu-orange" href="#">button</a>
          <p>Or<br/><code>&#60;button class="button cu-btn">&#60;/button></code></p><button class="button cu-btn cu-orange">button</button>
          <p>There are different utility classes in which can be added to button structures to style them as desired. They include colors, sizes, and type.</p>
        </div>
        <div class="cell large-4">
          <h3>Size</h3>
          <p>Default size for a button is medium. Size Classes include <code>small</code> and <code>large</code>.</p>
          <a class="button cu-btn small cu-orange" href="#">small</a>
          <a class="button cu-btn cu-orange" href="#">default</a>
          <a class="button cu-btn large cu-orange" href="#">large</a>
        </div>
        <div class="cell large-4">
          <h3>Type</h3>
          <p>The default type for a button is solid. The class <code>hollow</code> can be added to create a hollow button.</p>
          <a class="button cu-btn small cu-orange" href="#">default</a>
          <a class="button cu-btn small hollow cu-orange" href="#">default</a>
        </div>
      </div>
      <div class="grid-x grid-margin-x grid-margin-y">
        <div class="cell">
          <h3>Colors</h3>
          <p>The default color is the foundation blue default color. The colors that can be added are:</p>
          <ul>
            <li><code>cu-orange</code></li>
            <li><code>brick</code></li>
            <li><code>regalia</code></li>
            <li><code>diploma</code></li>
            <li><code>state-flag</code></li>
            <li><code>bowman</code></li>
            <li><code>howards-rock</code></li>
            <li><code>innovation</code></li>
          </ul>
        </div>
        <div class="cell">
          <h3>Solid Colors</h3>
          <a class="button cu-btn small cu-orange" href="#">cu-orange</a>
          <a class="button cu-btn small brick" href="#">brick</a>
          <a class="button cu-btn small regalia" href="#">regalia</a>
          <a class="button cu-btn small diploma" href="#">diploma</a>
          <a class="button cu-btn small state-flag" href="#">state-flag</a>
          <a class="button cu-btn small bowman" href="#">bowman</a>
          <a class="button cu-btn small howards-rock" href="#">howards-rock</a>
          <a class="button cu-btn small innovation" href="#">innovation</a>
        </div>
        <div class="cell">
          <h3>Hollow Colors</h3>
          <a class="button cu-btn small hollow cu-orange" href="#">cu-orange</a>
          <a class="button cu-btn small hollow brick" href="#">brick</a>
          <a class="button cu-btn small hollow regalia" href="#">regalia</a>
          <a class="button cu-btn small hollow diploma" href="#">diploma</a>
          <a class="button cu-btn small hollow state-flag" href="#">state-flag</a>
          <a class="button cu-btn small hollow bowman" href="#">bowman</a>
          <a class="button cu-btn small hollow howards-rock" href="#">howards-rock</a>
          <a class="button cu-btn small hollow innovation" href="#">innovation</a>
        </div>
      </div>
      <div class="grid-x grid-margin-x grid-margin-y">
        <div class="cell large-6">
          <h2>Accent Links/Buttons</h2>
          <p>This is a style of link/button different from the typical button. It provides the option for an icon with an underline accent for text.</p>
            <code class="code-block">
&#60;a class="cu-accent-link" href="#">
  &#60;span class="cu-icon cu-bg-pur600">
    &#60;span class="las la-calculator">&#60;/span>
  &#60;/span>
  &#60;span class="cu-accent cu-bc-pur600">Cost Calculator&#60;/span>
&#60;/a></code>
            <a class="cu-accent-link" href="#">
              <span class="cu-icon cu-bg-pur600">
                <span class="las la-calculator"></span>
              </span>
              <span class="cu-accent cu-bc-pur600">Cost Calculator</span>
            </a>
        </div>
      </div>
    </div>
  </div>
</section>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console