We use a custom Matomo font in our UI to show icons. You can find the font in the repository as part of the Morpheus theme.
You can find a list of all available icons by accessing your Matomo using below URL. Make sure to replace {REPLACE WITH YOUR MATOMO DOMAIN}
with the domain/path to your Matomo. For the URL to work you need to have the development mode enabled and have at least admin access.
https://{REPLACE WITH YOUR MATOMO DOMAIN}/index.php?module=Morpheus&action=demo#icons
The available icons will be shown in the bottom of the page. Each icon has a CSS class name which starts with icon-
. To enable the development mode you can run this command (don't do this in a production environment):
./console development:enable
To use an icon, simply add the name of class for the icon to an element like this:
<span class="icon-add"></span>
Follow below steps to add, change or remove an icon.
IcoMoon - Free
or Font Awesome
(depending on which one looks better in the app)font
directory and the selection.json
to plugins/Morpheus/font
.woff2
version of the font as it is not included automatically.
woff2_compress
e.g. via the woff2 debian package or similar packages for other distributions or compile it yourself as explained on https://github.com/google/woff2.woff2_compress matomo.ttf
matomo.woff2
\e609
. You find the correct value for this from the style.css
file of the extracted zip file. Simply search for the icon name there to find the correct value../console cache:clear
.https://{REPLACE WITH YOUR MATOMO DOMAIN}/index.php?module=Morpheus&action=demo#icons
and check if the icon shows up correctly.