Overview

A selection of SVG icons are available here in the design system and you can use them by adding the helper class of the icon you need. Check below how you can install the icons in your project and also some examples/code snippets.

Install

NPM

Install the Design System icons via NPM.

npm install @visma-spcs-registry/designsystem-icons

**$vud-icons-path - You need to change this value to match the folder structure you have (eg. '~node_modules/@visma-spcs-registry/designsystem-icons/dist/img/spirisicons' !default;)

CDN

Icons are currently NOT available through CDN.

How to

Styles

You can include in your interface any icon from our icon library. All you need to do is to add <span> with a .spirisicon class and another class that represents the icon that you need, example .spirisicon-edit. You can find more examples below.

Regular use - .spirisicon

  • Regular icon

    spirisicon spirisicon-handshake
  • Informative icon

    spirisicon spirisicon-filled spirisicon-error
  • Functions

    spirisicon spirisicon-filled spirisicon-payroll-functional
  • Flags

    spirisicon spirisicon-flags spirisicon-sweden

Color variant

By adding icon color helper clases, to .spirisicon wrapper, You can change the default spiris-icon color.

  • .icon-neutral

    spirisicon spirisicon-handshake icon-neutral
  • .icon-info

    spirisicon spirisicon-handshake icon-info
  • .icon-success

    spirisicon spirisicon-handshake icon-success
  • .icon-warning

    spirisicon spirisicon-handshake icon-warning
  • .icon-error

    spirisicon spirisicon-handshake icon-error

Sizes

The small size of the icons is 16px X 16px. For this you need to add an additional class: .spirisicon-sm

There are also larger sizes, 32px, 48px, 64px for all icons.

Small - .spirisicon-sm

  • Regular icon

    spirisicon spirisicon-sm spirisicon-handshake
  • Informative icon

    spirisicon spirisicon-filled spirisicon-sm spirisicon-error
  • Functions

    spirisicon spirisicon-filled spirisicon-sm spirisicon-payroll-functional
  • Flags

    spirisicon spirisicon-flags spirisicon-sm spirisicon-sweden

Default size

Large - .spirisicon-lg

X-Large - .spirisicon-xl

XX-Large - .spirisicon-xxl

Informative icons in all sizes

  • Informative icon sm

    spirisicon
    spirisicon-sm
    spirisicon-filled
    spirisicon-error
  • Informative icon

    spirisicon
    spirisicon-filled
    spirisicon-error
  • Informative icon lg

    spirisicon
    spirisicon-lg
    spirisicon-filled
    spirisicon-error
  • Informative icon xl

    spirisicon
    spirisicon-xl
    spirisicon-filled
    spirisicon-error
  • Informative icon xxl

    spirisicon
    spirisicon-xxl
    spirisicon-filled
    spirisicon-error

States

Disabled state

For the disabled version of the icons, simply use .disabled class, like in the examples below.

Note that only regular icons can have a disabled state. All other icons will look the same regardless of the disabled class.

  • Regular icon

    spirisicon spirisicon-handshake disabled
  • Informative icon

    spirisicon spirisicon-filled spirisicon-error disabled
  • Functions

    spirisicon spirisicon-filled spirisicon-payroll-functional disabled
  • Flags

    spirisicon spirisicon-flags spirisicon-sweden disabled