HTML
To add a monochrome Pictogram, insert a <span> tag with the class visma-pictogram followed by an additional class representing the specific pictogram type. Similarly, for a pictogram plus, use the class visma-pictogram-plus along with a specific pictogram class.
Here are examples of how to use the base classes to create monochrome Pictograms and Pictogram plus:
Pictograms
<span aria-hidden="true" class="visma-pictogram visma-pictogram-user-search"></span>
Pictogram plus
<span aria-hidden="true" class="visma-pictogram-plus visma-pictogram-plus-user-search"></span>
Colour variants
The VUD library offers two helper classes for creating colour variants from the default setting. Though these classes initially match the default colour, you can customise them by modifying specific overwriting tokens:
- For .visma-pictogram-secondary, use the --ref-pictogram-secondary-stroke-default token
- For .visma-pictogram-tertiary, use the --ref-pictogram-tertiary-stroke-default token
<span aria-hidden="true" class="visma-pictogram visma-pictogram-tertiary visma-pictogram-user-search"></span>