Hello fellows,
I want to make my own theme in the colors of my company. I know how to do that and did find the instruction already:
https://developer.matomo.org/guides/theming
But there’s one thing I don’t understand:
To create an empty theme, run the following command from Matomo’s root directory:
./console generate:theme
What does that mean? How to do this?
Lukas
(Lukas Winkler)
February 6, 2019, 10:50am
2
Hi,
If you don’t want to create the needed files for the theme manually, you can use this small tool which creates the template automatically.
For this you need to run ./console generate:theme
on the command line while in the Matomo directory.
If you don’t know how to do this or don’t like to use the command line, you can simply create the files yourself.
You can take a look at this theme for inspiration:
1 Like
Ah! It’s so easy! Thank you!!
I’ve just uploaded my theme folder in the plugin folder and have to activate in the theme section.
The only problem was: It’s very hard to find the theme administration, because it’s just a link in the text above the plugin list.
(I still have no idea how to find the “console”. But for now I don’t need it.)
Lukas
(Lukas Winkler)
February 6, 2019, 11:21am
4
See
opened 08:07PM - 25 Jul 18 UTC
c: Usability
c: Design / UI
I have a feeling that many Matomo users aren't aware of the fact that if they di… slike a part of the design of Matomo, they can write a very basic theme that overwrites the css/less and with little effort can publish it on the Marketplace for everyone to use.
At the moment, themes are quite hidden. Especially the management of themes is hidden behind a small link in the header of the plugin management.

I am not sure where to link instead, but maybe even a separate menu item for themes could be added.
and
matomo-org:3.x-dev
← matomo-org:add-themes-to-system-menu
opened 12:35PM - 13 Dec 18 UTC
fixes #13211
I created a PR to get the discussion about #13211 rolling.
Per… sonally I think most Matomo users are not aware of the fact that you can really easily change the style of Matomo just by switching out a handful of color.
My Matomo plugins that are only useful to a really small amount of people have more downloads than [a theme](https://themes.matomo.org/ClassicTheme) that could be interesting to many Matomo users.
This would also allow creating more Matomo Themes as they would then be seen by more people.
(I think a high contrast accessibility and a dark/night theme would be quite useful)
Regarding the Change: Updates would still be shown in the Plugins menu, but I am not sure if showing them twice is easy to do.
I definitely argue for making the themes more prominent, but it is hard to do without cluttering the UI too much.
@Lukas
One more question:
I want to change colors that I found only in:
/core/Plugin/ThemeStyles.php
Do you have any ideas how to integrate this in an own theme?
Lukas
(Lukas Winkler)
February 8, 2019, 12:14pm
7
Hi,
Themes: Develop - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3 has recently been updated to explain how to change the colors that have been defined in PHP.
You basicly have to add a function like this to your main pluginname.php file.
public function configureThemeVariables(Plugin\ThemeStyles $vars)
{
$vars->colorBackgroundBase = '#000';
}
1 Like
Now I get it! That’s awesome – thank you!