A modern dark theme for Matomo, applied to every user.
A comprehensive dark theme for Matomo Analytics that transforms the entire interface into a modern, eye-friendly dark experience. Built with accessibility and readability in mind, this theme provides proper contrast ratios and consistent styling across all Matomo features.
Theme.configureThemeVariables event and dark mode for seamless integration with core and pluginsMatomo 6 lets each user pick a light or dark mode. Dark Theme is for teams who want dark for everyone, with Openmost's own dark palette:
The theme exposes its full color palette through Matomo's ThemeStyles API in DarkTheme.php. Fork the plugin to adjust the brand, surface, text, and border scales, or override the generated --theme-color-* CSS variables from your own stylesheet to match your brand.
Thank you for installing!
Dark Theme transforms your Matomo Analytics interface into a modern dark experience, for every user. This documentation covers the theme architecture and how to customize it.
Matomo 6 lets each user choose a light or dark mode in their personal settings. Dark Theme applies its dark palette to everyone instead:
Scheduled report emails keep Matomo's light colors, so they stay readable in every mail client.
To let each user choose again, activate the default Matomo theme (Morpheus) under Administration > Themes.
All colors are configured in PHP through Matomo's Theme.configureThemeVariables event. LESS files are kept only for the few areas that need targeted overrides on top of the variables provided by Matomo core.
DarkTheme/
├── DarkTheme.php # Palette and dark mode for every user
├── plugin.json # Theme metadata (requires Matomo 6)
├── vue/
│ ├── src/ThemeModeLock/ # Keeps the dark mode in the browser
│ └── dist/ # Built library (Matomo Vite build)
└── stylesheets/
├── theme.less # Main entry point
├── layout/
│ └── _main.less # Layout-level rules (e.g. scrollbar)
├── pages/
│ └── _login.less # Login & onboarding overrides
└── components/
├── _activity_log.less
├── _admin.less
├── _alert.less
├── _copy_clipboard.less
├── _custom_reports.less
├── _entity_list.less
├── _funnels.less
├── _input.less
├── _jqplot.less
├── _multi_sites.less
├── _notification.less
├── _period_selector.less
├── _personal_settings.less
├── _scheduled_reports.less
├── _segment.less
├── _sidebar.less
├── _tag_manager.less
├── _visitor_profile.less
├── _visits_log.less
└── _widget.less
DarkTheme.php registers a configureThemeVariables listener and assigns values to \Piwik\Plugin\ThemeStyles. The values are exposed by Matomo core as CSS custom properties (e.g. --theme-color-background-base) and are used throughout the UI.
The palette is split into four scales:
Brand
- primary: #4a6fc7
- primaryLight: #6b8fd9 (used for links, focus ring, selected menu)
Surfaces (lightest to darkest)
- surfaceOverlay: #3a424d (popovers, hover backgrounds, code blocks)
- surfaceRaised: #2b3138 (widgets, cards, header background)
- surfaceBase: #202329 (page background)
- surfaceGround: #181a1f (deepest layer)
Text (most prominent to faded)
- textPrimary: #ffffff
- textSecondary: rgba(255, 255, 255, 0.85)
- textTertiary: rgba(255, 255, 255, 0.65)
- textDisabled: rgba(255, 255, 255, 0.40)
Borders
- borderSubtle: #3a424d
- borderStrong: #4a525d
These local variables feed the official ThemeStyles properties: colorBrand, colorSuccess, colorText*, colorBackground*, colorBorder*, colorWidget*, colorMenuContrast*, colorHeader*, colorLink, colorFocusRing, colorCode*, colorBoxShadow, shadowOverlay and filterOnIllustration (which inverts white illustrations so they look right on a dark background). Any color the palette does not set uses the Matomo dark value.
The recommended way to customize the palette is to fork the plugin and adjust the variables in DarkTheme.php:
private function applyPalette(ThemeStyles $vars): void
{
$vars->colorBrand = '#your-brand-color';
$vars->colorBackgroundBase = '#your-background-color';
$vars->colorBackgroundContrast = '#your-widget-color';
// ...
}
You can also override the generated CSS variables from your own stylesheet:
:root {
--theme-color-brand: #your-brand-color;
--theme-color-background-base: #your-background-color;
}
After changing any value, clear Matomo's asset cache (Administration > System > General Settings > "Clear all caches").
Each file in stylesheets/components/ targets a specific area of Matomo where the default core CSS does not pick up the theme variables cleanly:
_jqplot.less): series picker popover_input.less, _multi_sites.less): input and select colors_visits_log.less, _visitor_profile.less, _activity_log.less): timeline and profile colors_funnels.less, _tag_manager.less, _custom_reports.less, _scheduled_reports.less_sidebar.less, _admin.less, _widget.less, _alert.less, _notification.less, _segment.less, _entity_list.less, _copy_clipboard.less, _period_selector.less, _personal_settings.lessTo contribute:
DarkTheme.php first; only fall back to LESS overrides when a setting is not exposed by ThemeStylesHow do I install this theme?
Alternatively, download from GitHub and extract to your plugins/ directory.
Is the theme active for all users?
Yes. When activated, the Dark Theme applies to all users on your Matomo instance, whatever theme mode they picked in their personal settings.
Which Matomo versions are supported?
Matomo 6 has a dark mode, why use Dark Theme?
In Matomo 6, each user chooses a light or dark mode, and the default is light. Dark Theme gives the whole team the same dark interface, with Openmost's dark palette, without asking every user to change their settings.
Why is the theme mode option missing from my personal settings?
Dark Theme applies the dark mode to every user, so the option has no effect and is hidden. It comes back when the default Matomo theme is activated.
Can a user still choose the light mode?
No, not while Dark Theme is active. To let each user choose, activate the default Matomo theme (Morpheus) under Administration > Themes.
Are the scheduled report emails dark too?
No. Report emails keep Matomo's light colors: many mail clients force a white background, where light text would not be readable.
Does it work with Matomo plugins?
Yes. The theme is designed to work with official Matomo plugins including: - Tag Manager - Funnels - Heatmaps & Session Recording - AI Chats (ChatGPT, MistralAI) - Custom Reports - Multi Sites Dashboard - Scheduled Reports - Transitions - And more
Will it conflict with other themes?
No. Only one theme can be active at a time. The Dark Theme replaces the default styling without modifying any HTML structure.
Does it affect tracking or data collection?
No. This is a purely visual theme. It does not modify tracking code, data collection, or any Matomo functionality.
Can I customize the colors?
Yes. All colors are configured in PHP via Matomo's Theme.configureThemeVariables event. The recommended approach is to fork the plugin and edit the palette in DarkTheme.php:
$vars->colorBrand = '#your-brand-color';
$vars->colorBackgroundBase = '#your-page-background';
$vars->colorBackgroundContrast = '#your-widget-background';
You can also override the generated CSS variables from a custom stylesheet:
:root {
--theme-color-brand: #your-brand-color;
--theme-color-background-base: #your-page-background;
}
Remember to clear Matomo's cache after any change.
Where are the style files located?
DarkTheme.phpstylesheets/ (entry point: theme.less)stylesheets/components/Charts or maps don't look right
Clear your Matomo cache: 1. Go to Administration > System > General Settings 2. Click "Clear all caches"
Or delete the files in the tmp/assets/ directory.
Some elements still appear light
This is usually a caching issue. Clear both Matomo's asset cache and your browser cache. If the problem persists, please report it on GitHub.
The theme stopped working after a Matomo update
We update the theme regularly to support new Matomo versions. Check for theme updates in the Marketplace. If no update is available yet, please open a GitHub issue.
My custom CSS overrides using --theme-color-widget-* or --theme-color-menu-contrast-* variables
These variables are deprecated since Matomo 6 and will be removed in Matomo 7. Prefer --theme-color-background-contrast, --theme-color-background-tinyContrast and --theme-color-text-highContrast.
How can I report a bug?
Open an issue on our GitHub repository with: - Matomo version - Dark Theme version - Browser and version - Screenshot of the issue
How can I contribute?
Fork the repository, make your changes (prefer adjusting DarkTheme.php over adding new LESS overrides when possible), test on the main Matomo screens, and submit a pull request.
How long will this theme be maintained?
We actively use this theme on multiple production Matomo instances and are committed to maintaining compatibility with new Matomo releases.
Can you create a custom theme for my company?
Yes! We offer custom theme development. Contact us at ronan@openmost.com or visit openmost.com.
View and download this plugin for a specific Matomo version: