Skip to content

Commit

Permalink
Updated the theming guide following matomo-org/matomo#7951
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed May 26, 2015
1 parent b55ece7 commit 8c60a16
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/theming.md
Expand Up @@ -45,9 +45,12 @@ To change the font you override the font variable:
@theme-fontFamily-base: Verdana, sans-serif;
```

You get the point. It is a common convention among themes to put all color values in a `_colors.less` file. This is already done for you if you have created your theme using the above mentioned console command. Just uncomment the variables you want to change. For a list of available variables have a look at the [Example Theme plugin](https://github.com/piwik/piwik/tree/master/plugins/ExampleTheme/stylesheets).
You get the point. The list of all variables that you can override is defined in the Morpheus plugin:

Please note in case you are not using the theme generator: overriding variables will only work if they are defined in a less file that is imported by another less file.
- [base theme variables](https://github.com/piwik/piwik/blob/master/plugins/Morpheus/stylesheets/theme.less)
- [advanced theme variables](https://github.com/piwik/piwik/blob/master/plugins/Morpheus/stylesheets/theme-advanced.less)

Please note in case you are writing Less rules outside of `theme.less`: overriding variables will only work if they are defined in a less file that is imported by the main `theme.less`.

This comment has been minimized.

Copy link
@mattab

mattab May 29, 2015

Member

Please note in case you are writing Less rules outside of theme.less: overriding variables will only work if they are defined in a less file that is imported by the main theme.less.

@mnapoli now that leafo/lessphp#302 was fixed in lessphp maybe this could be removed/ outdated?

This comment has been minimized.

Copy link
@mnapoli

mnapoli May 29, 2015

Author Contributor

Ahhh right, I read this paragraph as "if you don't import the file in theme.less, it won't work" (which was wrong). I will remove it!


Although we do not recommend to do so, you can change the colors of a specific element directly, for example:

Expand Down

0 comments on commit 8c60a16

Please sign in to comment.