CTZN

Icons

These icons are included in one big SVG on most pages hosted at getctzn.com and ctznapp.com

<svg class="icon"><use xlink:href="#icon-user"></use></svg>

<svg class="icon"><use xlink:href="#icon-user-circle"></use></svg>

<svg class="icon"><use xlink:href="#icon-info-circle"></use></svg>

<svg class="icon"><use xlink:href="#icon-envelope"></use></svg>

<svg class="icon"><use xlink:href="#icon-checkmark"></use></svg>

<svg class="icon"><use xlink:href="#icon-checkmark-circle"></use></svg>

<svg class="icon"><use xlink:href="#icon-padlock"></use></svg>

<svg class="icon"><use xlink:href="#icon-close-circle"></use></svg>

<svg class="icon"><use xlink:href="#icon-hashtag-circle"></use></svg>

<svg class="icon"><use xlink:href="#icon-picture"></use></svg>

<svg class="icon"><use xlink:href="#icon-picture-stack"></use></svg>

<svg class="icon"><use xlink:href="#icon-camera"></use></svg>

<svg class="icon"><use xlink:href="#icon-note"></use></svg>

<svg class="icon"><use xlink:href="#icon-action"></use></svg>

<svg class="icon"><use xlink:href="#icon-mix"></use></svg>

<svg class="icon"><use xlink:href="#icon-mixes"></use></svg>

<svg class="icon"><use xlink:href="#icon-switch"></use></svg>

<svg class="icon"><use xlink:href="#icon-sync"></use></svg>

<svg class="icon"><use xlink:href="#icon-exit"></use></svg>

<svg class="icon"><use xlink:href="#icon-refresh"></use></svg>

<svg class="icon"><use xlink:href="#icon-instagram"></use></svg>

<svg class="icon"><use xlink:href="#icon-twitter"></use></svg>

<svg class="icon"><use xlink:href="#icon-facebook"></use></svg>

<svg class="icon"><use xlink:href="#icon-good"></use></svg>

<svg class="icon"><use xlink:href="#icon-ctzn"></use></svg>

<svg class="icon"><use xlink:href="#icon-bell"></use></svg>

<svg class="icon"><use xlink:href="#icon-settings"></use></svg>

<svg class="icon"><use xlink:href="#icon-up"></use></svg>

<svg class="icon"><use xlink:href="#icon-down"></use></svg>

<svg class="icon"><use xlink:href="#icon-left"></use></svg>

<svg class="icon"><use xlink:href="#icon-right"></use></svg>

<svg class="icon"><use xlink:href="#icon-connect"></use></svg>

<svg class="icon"><use xlink:href="#icon-hashtag"></use></svg>

<svg class="icon"><use xlink:href="#icon-add-circle"></use></svg>

<svg class="icon"><use xlink:href="#icon-alert"></use></svg>

<svg class="icon"><use xlink:href="#icon-close"></use></svg>

<svg class="icon"><use xlink:href="#icon-heart"></use></svg>

<svg class="icon"><use xlink:href="#icon-star"></use></svg>

<svg class="icon"><use xlink:href="#icon-add"></use></svg>

<svg class="icon"><use xlink:href="#icon-subtract"></use></svg>

<svg class="icon"><use xlink:href="#icon-reply"></use></svg>

<svg class="icon"><use xlink:href="#icon-more"></use></svg>

<svg class="icon"><use xlink:href="#icon-edit"></use></svg>

<svg class="icon"><use xlink:href="#icon-link"></use></svg>

<svg class="icon"><use xlink:href="#icon-expand"></use></svg>

<svg class="icon"><use xlink:href="#icon-shrink"></use></svg>

<svg class="icon"><use xlink:href="#icon-download"></use></svg>

<svg class="icon"><use xlink:href="#icon-share-android"></use></svg>

<svg class="icon"><use xlink:href="#icon-launch"></use></svg>

<svg class="icon"><use xlink:href="#icon-back"></use></svg>

Email icons

Here are a few more icons used in emails

Switch to Daily/Weekly

Play video

Dimensions

Consider adding width and height attributes to the icon, just like you would for an image. This will help the icons render at a reasonable size without a style sheet. A value of 24 pixels works well in most cases.

<svg class="icon" width="24" height="24" viewBox="0 0 24 24"><use xlink:href="#icon-picture" ></use></svg>

If you add a width and height, you’ll also want to include a viewBox with the same dimensions. (This helps with styling, particularly in Safari.)

Add
<svg class="icon" width="24" height="24" viewBox="0 0 24 24">
  <switch><use xlink:href="#icon-add" ></use><foreignObject>Add</foreignObject></switch>
</svg>

Alternate Text

Consider adding alternate text if the icon represents content (just like an alt attribute for an <img> element).

<button>
  <svg class="icon" width="24" height="24" viewBox="0 0 24 24">
    <switch><use xlink:href="#icon-add" ></use><foreignObject>Add</foreignObject></switch>
  </svg>
</button>

The <foreignObject/> is useful to software like screen readers, and browsers that don’t understand SVG.

<button>
  <svg class="icon" width="24" height="24" viewBox="0 0 24 24">
    <use xlink:href="#icon-add"></use>
  </svg>
  Add
</button>

If the icon has a label, you can skip the <foreignObject/>.

Form fields

<form>
  <p class="text">
    <label>
      <span>Password</span><br />
      <input type="password" placeholder="Password" />
    </label>
  </p>
</form>

<form class="has-icon">
  <p class="text">
    <label>
      <svg class="icon" width="24" height="24" viewBox="0 0 24 24"><use xlink:href="#padlock"></use></svg>
      <span>Password</span><br />
      <input type="password" placeholder="Password" />
    </label>
  </p>
</form>

<form class="has-icon">
  <p class="text error">
    <label>
      <svg class="icon" width="24" height="24" viewBox="0 0 24 24"><use xlink:href="#icon-padlock"></use></svg>
      <span>Password</span><br />
      <input type="password" placeholder="Password" />
    </label>
  </p>
</form>

<form class="has-icon">
  <p class="text success">
    <label>
      <svg class="icon" width="24" height="24" viewBox="0 0 24 24"><use xlink:href="#icon-padlock"></use></svg>
      <span>Password</span><br />
      <input type="password" placeholder="Password" />
    </label>
  </p>
</form>

Toolbars

Page Title

Go Back
<section class="page">
  <header>
    <h1>Page Title</h1>
    <a href="#back" class="back">
      <svg class="icon" width="24" height="24" viewBox="0 0 24 24">
        <switch><use xlink:href="#icon-back"></use><foreignObject>←</foreignObject></switch>
      </svg>
      <span>Go Back</span>
    </a>
    <a href="#options" class="next">
      <svg class="icon" width="24" height="24" viewBox="0 0 24 24">
        <switch><use xlink:href="#icon-more"></use><foreignObject>Options</foreignObject></switch>
      </svg>
    </a>
  </header>
  …
</section>
<ul class="create">
  <li>
    <a href="#switch">
      <svg class="icon" width="24" height="24" viewBox="0 0 24 24"><use xlink:href="#icon-switch"></use></svg>
      Switch Push
    </a>
  </li>
  <li>
    <a href="#edit-post">
      <svg class="icon" width="24" height="24" viewBox="0 0 24 24"><use xlink:href="#icon-note"></use></svg>
      New Post
    </a>
  </li>
  <li>
    <a href="#new-mix">
      <svg class="icon" width="24" height="24" viewBox="0 0 24 24"><use xlink:href="#icon-mix"></use></svg>
      New Mix
    </a>
  </li>
  <li>
    <a href="#mixes">
      <svg class="icon" width="24" height="24" viewBox="0 0 24 24"><use xlink:href="#icon-mixes"></use></svg>
      My Mixes
    </a>
  </li>
</ul>