Icons provide visual context and enhance usability, they can be added via an
<i> element like so:
For accessibility purposes, you can add text inside the icon element which will not be displayed to the user. E.g.
<i class="p-icon--contextual-menu">This text will not be displayed</i>
Our icons have two predefined color styles: light and dark. The light variant is the default style.
.p-icon--question class has been deprecated and will be removed in version 3.0. Use class
Our dark-themed icons are available when placed within
.p-strip--dark, icon colors are inverted to ensure legibility as shown in our example.
Alternatively to use light version of icons outside of the dark strip, add
is-light class to the icon element (e.g.
Our alert icons are used to indicate the status of a message in a notification.
Our social icons are used to drive users to social content.
Deprecated We will be removing
p-icon--ubuntu from our social icon set, they will no longer be available from our future release v3.0.
If you wish to add share icons for Twitter, Facebook or LinkedIn, we recommend using the networks' official buttons:
To import just this component into your project, copy the snippet below and include it in your main Sass file.
@import 'patterns_icons'; @include vf-p-icons; // for spin animation on the spinner icon you need to include animations utility @import 'utilities_animations'; @include vf-u-animations;
If you use a limited set of icons you may want to include them individually to reduce the size of your CSS file.
@import 'patterns_icons'; // include common styles shared by all icons @include vf-p-icons-common; // include only the icons that you use in your project @include vf-p-icon-anchor; @include vf-p-icon-plus; @include vf-p-icon-minus; @include vf-p-icon-expand; @include vf-p-icon-collapse; @include vf-p-icon-contextual-menu; @include vf-p-icon-close; @include vf-p-icon-help; @include vf-p-icon-info; @include vf-p-icon-delete; @include vf-p-icon-error; @include vf-p-icon-warning; @include vf-p-icon-external-link; @include vf-p-icon-drag; @include vf-p-icon-code; @include vf-p-icon-menu; @include vf-p-icon-copy; @include vf-p-icon-search; @include vf-p-icon-success; @include vf-p-icon-share; @include vf-p-icon-user; @include vf-p-icon-question; @include vf-p-icon-spinner; @include vf-p-icon-facebook; @include vf-p-icon-twitter; @include vf-p-icon-instagram; @include vf-p-icon-linkedin; @include vf-p-icon-youtube; @include vf-p-icon-canonical; @include vf-p-icon-ubuntu; @include vf-p-icon-rss; @include vf-p-icon-email; @include vf-p-icon-sizes; @include vf-p-icon-in-button;
For more information see Customising Vanilla in your projects, which includes overrides and importing instructions.
For more information view the icons design spec which includes the specification in markdown format and a PNG image.