Icons

All icons need to be used in partnership with a product designer so we can ensure consistency of use throughout the NM experience.

The icons in the UI-Toolkit are automatically generated from SVG files. These files are packaged up into a font that is then served directly to the browser via the UI-Toolkit CSS.

To render an icon, simply use the .icon class, along with the the class for the particular slug that you wish to render. For example, below, we render the Success icon using the .icon-success class ( .icon-util-success for NM-CX ).

LV Example

EXAMPLE

Show Code

<!-- Example icon -->
<span class="icon icon-success"></span>

NM PX Example

EXAMPLE

Show Code

<!-- Example icon -->
<span class="icon icon-success"></span>

NM CX Example

The Icon is purely functional. It provides a visual cue when it is part of an interactive element such as a form field.

EXAMPLE

Show Code

<!-- Example icon -->
<span class="icon icon-util-success"></span>

NM CX Illustrative Icons

Illustrative icons are rendered as background-images since they contain colors and are not packaged as a font.

To render an illustrative icon, use the .icon-illustrative class with the icon class name you want to render.

Use Illustrative Icon when:
Conveying a celebratory moment or message description
Or to add brand personality.

Do not resize these icons; they should remain this size.

.icon-ill-acheivement
.icon-ill-airplane
.icon-ill-alarmclock
.icon-ill-bagofmoney
.icon-ill-bank
.icon-ill-barchart
.icon-ill-billdue
.icon-ill-boatgoal
.icon-ill-bookmark
.icon-ill-briefcase
.icon-ill-calculator
.icon-ill-calendar
.icon-ill-carddebt
.icon-ill-cargoal
.icon-ill-champagne
.icon-ill-check
.icon-ill-children
.icon-ill-cocktail
.icon-ill-coin
.icon-ill-college
.icon-ill-composedraft
.icon-ill-creditcard
.icon-ill-designerclothing
.icon-ill-desktop
.icon-ill-devices
.icon-ill-diamondring
.icon-ill-diningout
.icon-ill-document
.icon-ill-dollar
.icon-ill-downloadalt
.icon-ill-edit
.icon-ill-email
.icon-ill-emergencyfund
.icon-ill-excel
.icon-ill-feedback
.icon-ill-femaleavatar
.icon-ill-fileandfolder
.icon-ill-flagalt
.icon-ill-flashlight
.icon-ill-folder
.icon-ill-happyface
.icon-ill-heart
.icon-ill-home
.icon-ill-insurance
.icon-ill-investments
.icon-ill-journey
.icon-ill-key
.icon-ill-laptop
.icon-ill-legaldocument
.icon-ill-lightbulb
.icon-ill-link
.icon-ill-lock
.icon-ill-magicwand
.icon-ill-mail
.icon-ill-maintenance
.icon-ill-maleavatar
.icon-ill-map
.icon-ill-mappin
.icon-ill-menstie
.icon-ill-mobilephone
.icon-ill-multiplecards
.icon-ill-multipledocument
.icon-ill-multiplefolders
.icon-ill-navigation
.icon-ill-newwindow
.icon-ill-notifications
.icon-ill-paperless
.icon-ill-pdf
.icon-ill-pets
.icon-ill-phone
.icon-ill-piggybank
.icon-ill-pizza
.icon-ill-retirementalt
.icon-ill-sadface
.icon-ill-safety
.icon-ill-salestag
.icon-ill-save
.icon-ill-search
.icon-ill-security
.icon-ill-settings
.icon-ill-signdocument
.icon-ill-star
.icon-ill-sunglasses
.icon-ill-systemdown
.icon-ill-target
.icon-ill-trash
.icon-ill-trophy
.icon-ill-unlock
.icon-ill-upcomingpayment
.icon-ill-uploadalt
.icon-ill-vacation
.icon-ill-vault
.icon-ill-wallet
.icon-ill-wayfinding
.icon-ill-yougotmail

NM PX Illustrative Icons

Illustrative icons are rendered as background-images since they contain colors and are not packaged as a font.

To render an illustrative icon, use the .icon-illustrative class with the icon class name you want to render.

Use Illustrative Icon when:
Conveying a celebratory moment or message description
Or to add brand personality.

Do not resize these icons; they should remain this size.

.icon-ill-document
.icon-ill-folder
.icon-ill-document-multiple
.icon-ill-upload-document

Styling Icons

Note that because these icons are rendered as characters in a font, you may style them however you wish using CSS.

EXAMPLE

Show Code

<span class="icon icon-arrow-up" style="color: green;"></span>

LV Icons in Buttons

Primarily, buttons will contain only text. In the event that you would like to inject an icon into a button, the icon will be aligned to the text automatically. Note that the icon can appear on either side.

EXAMPLE

Show Code

<button class="button btn-cta">Look Up <span class="icon icon-arrow-up margin-left-tiny"></span></button>
<button class="button btn-cta"><span class="icon icon-arrow-up margin-right-tiny"></span> Look Up!</button>

NM CX Icons with Type

Icons should be separated from their associated text by 14px. To include the appropriate right padding, add the class .icon-left-text to the icon element.

Icons should not:

  • Be used with text under 14px size.
  • Be used with text over 20px size.
EXAMPLE

Show Code

<span style="font-weight:200">14px font size:</span>
<p style="font-size: 14px"><span class="icon icon-sysicon-maleavatar icon-left-text"></span>John Smith</p>

<span style="font-weight:200">16px font size:</span>
<p style="font-size: 16px"><span class="icon icon-sysicon-maleavatar icon-left-text"></span>John Smith</p>

<span style="font-weight:200">20px font size:</span>
<p style="font-size: 20px"><span class="icon icon-sysicon-maleavatar icon-left-text"></span>John Smith</p>
14px font size:

John Smith

16px font size:

John Smith

20px font size:

John Smith

Additional Examples

14px

Download

Download

Navigate

Edit

John Smith

jsmith@smithfarms.com

(555) 555-5555

123 Main St, Townton, NJ

16px

Download

Download

Navigate

Edit

John Smith

jsmith@smithfarms.com

(555) 555-5555

123 Main St, Townton, NJ

20px

Download

Download

Navigate

Edit

John Smith

jsmith@smithfarms.com

(555) 555-5555

123 Main St, Townton, NJ

NM CX Icons with Form Fields

Icons on the left of form fields should:

  • Be aligned with the main text line of the form fields
  • Sit 14px to the left of the edge of the field

Icons on the right of form fields should:

  • Be aligned with the main text line of the form fields
  • Sit 2px in from the right to keep it from appearing visually as if it were slightly outside the line end

Form fields stacked vertically should have their left icons aligned vertically centered to other icons.

To add an icon to a form, add class .icon-left or .icon-right to .md-text-field for the aligned icon you need and place the icon element as the last child within the .md-text-field container.

Additionally, icons will automatically change color along with the form field active/error/disabled colors.

EXAMPLE

Show Code

<div class="row">
    <div class="small-12 medium-4 columns">
        <div class="md-text-field with-floating-label icon-left">
            <input type="text" id="input_1" value="John Smith" required>
            <label for="input_1">Name</label>
            <span class="icon icon-sysicon-maleavatar"></span>
        </div>
    </div>
</div>

<div class="row">
    <div class="small-12 medium-4 columns">
        <div class="md-text-field with-floating-label icon-right">
            <input type="password" id="input_2" required>
            <label for="input_2">Password</label>
            <span class="icon icon-sysicon-eye"></span>
        </div>
    </div>
</div>

<div class="row">
    <div class="small-12 medium-4 columns">
        <div class="md-text-field with-floating-label icon-left">
            <input type="text" id="input_3" value="4567 2nd St, New York, NY" required class="has-focus">
            <label for="input_3">Address</label>
            <span class="icon icon-sysicon-mappin"></span>
        </div>
    </div>
</div>

<div class="row">
    <div class="small-12 medium-4 columns">
        <div class="md-text-field with-floating-label icon-left">
            <input type="text" id="input_4" value="4567 2nd St, New York, NY" required class="has-error has-focus">
            <label for="input_4">Address</label>
            <span class="icon icon-sysicon-mappin"></span>
        </div>
    </div>
</div>

<div class="row">
    <div class="small-12 medium-4 columns">
        <div class="md-text-field with-floating-label icon-left">
            <input type="text" id="input_5" value="4567 2nd St, New York, NY" required class="has-error">
            <label for="input_5">Address</label>
            <span class="icon icon-sysicon-mappin"></span>
        </div>
    </div>
</div>

<div class="row">
    <div class="small-12 medium-4 columns">
        <div class="md-text-field with-floating-label icon-left">
            <input type="text" id="input_6" required disabled>
            <label for="input_6">Address</label>
            <span class="icon icon-sysicon-mappin"></span>
        </div>
    </div>
</div>