├── javascripts └── theme.js ├── config ├── config.php └── tracker.php ├── .gitignore ├── stylesheets ├── components │ ├── _overlay.less │ ├── _chip.less │ ├── _headings.less │ ├── _tabs.less │ ├── _plugin_promo.less │ ├── _message.less │ ├── _debug_preview.less │ ├── _comparison.less │ ├── _tagmanager_debugbar.less │ ├── _admin.less │ ├── _funnels.less │ ├── _plugin.less │ ├── _demo.less │ ├── _menu.less │ ├── _data_list.less │ ├── _ui_menu.less │ ├── _search.less │ ├── _annotation.less │ ├── _scrollbar.less │ ├── _collection.less │ ├── _visits_live.less │ ├── _sidenav.less │ ├── _transitions.less │ ├── _sparkline.less │ ├── _ai_chat.less │ ├── _entity_list.less │ ├── _icon.less │ ├── _expandable_selector.less │ ├── _widget.less │ ├── _tagmanager.less │ ├── _visitor_profile.less │ ├── _alert.less │ ├── _datepicker.less │ ├── _notification.less │ ├── _dialog.less │ ├── _button.less │ ├── _card.less │ ├── _table.less │ ├── _visits_log.less │ ├── _control.less │ ├── _modal.less │ ├── _dropdown.less │ ├── _form.less │ ├── _segment_generator.less │ ├── _canvas.less │ └── _map.less ├── pages │ └── _login.less ├── layout │ ├── _main.less │ └── _navbar.less ├── theme.less └── _variables.less ├── screenshots ├── A-Logo.png ├── _cover.png ├── Dashboard.png ├── Softwares.png ├── Tag_Manager.png ├── Visitor_Map.png ├── Visits_Log.png ├── Performances.png └── Tag_Manager_tags.png ├── plugin.json ├── README.md ├── DarkTheme.php ├── docs ├── faq.md └── index.md ├── CHANGELOG.md └── LICENSE /javascripts/theme.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/config.php: -------------------------------------------------------------------------------- 1 | a { 7 | color: var(--text-primary); 8 | 9 | i { 10 | filter: invert(1); 11 | } 12 | 13 | &:hover { 14 | background-color: var(--hover-overlay); 15 | } 16 | } 17 | } 18 | } 19 | 20 | .sidenav .collapsible-body, .sidenav.fixed .collapsible-body { 21 | background-color: var(--surface-raised); 22 | } -------------------------------------------------------------------------------- /stylesheets/components/_transitions.less: -------------------------------------------------------------------------------- 1 | #Transitions_Container { 2 | 3 | #Transitions_CenterBox { 4 | background-color: var(--darker) !important; 5 | border-color: var(--darker) !important; 6 | 7 | h2 { 8 | background-color: var(--dark) !important; 9 | border-bottom-color: var(--darker) !important; 10 | } 11 | 12 | .Transitions_CenterBoxMetrics { 13 | 14 | .Transitions_Pageviews { 15 | border-bottom-color: var(--dark) !important; 16 | } 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /stylesheets/components/_sparkline.less: -------------------------------------------------------------------------------- 1 | // sparkline colors 2 | .sparkline-colors[data-name=backgroundColor] { 3 | color: var(--dark) ; 4 | } 5 | 6 | .sparkline-colors[data-name=lineColor] { 7 | color: #b1b1b1; 8 | } 9 | 10 | .sparkline-colors[data-name=fillColor] { 11 | color: var(--dark); 12 | } 13 | 14 | /* 15 | .sparkline-colors[data-name=minPointColor] { 16 | color: var(--light) //darken(#058DC7, 10); 17 | } 18 | 19 | .sparkline-colors[data-name=maxPointColor] { 20 | color: var(--light) //darken(#058DC7, 10); 21 | } 22 | 23 | .sparkline-colors[data-name=lastPointColor] { 24 | color: var(--light); //hidden 25 | } 26 | */ -------------------------------------------------------------------------------- /stylesheets/components/_ai_chat.less: -------------------------------------------------------------------------------- 1 | .ai-chat-form { 2 | background-color: var(--dark) !important; 3 | } 4 | 5 | .ai-chat-loader { 6 | color: var(--light) !important; 7 | } 8 | 9 | .ai-chat-insight-offcanvas { 10 | background-color: var(--dark) !important; 11 | 12 | .ai-chat-insight-offcanvas-header { 13 | background-color: var(--darker) !important; 14 | border-color: var(--darker) !important; 15 | } 16 | 17 | .ai-chat-form-wrapper { 18 | background-color: var(--darker) !important; 19 | border-top-color: var(--darker) !important; 20 | 21 | .ai-chat-form { 22 | background-color: var(--darker) !important; 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /stylesheets/components/_entity_list.less: -------------------------------------------------------------------------------- 1 | .entityList { 2 | 3 | .dimensionCategory { 4 | color: #ffffff !important; 5 | } 6 | 7 | ul { 8 | 9 | li { 10 | border-color: var(--light-transparent) !important; 11 | 12 | a { 13 | color: var(--light-transparent) !important; 14 | } 15 | 16 | &.active { 17 | border-color: var(--light) !important; 18 | 19 | a { 20 | color: var(--light) !important; 21 | } 22 | } 23 | 24 | .dimension { 25 | color: rgba(255, 255, 255, 0.7); 26 | } 27 | 28 | &.activeDimension .dimension { 29 | color: var(--light) !important; 30 | } 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /stylesheets/components/_icon.less: -------------------------------------------------------------------------------- 1 | .like-icon, 2 | .dislike-icon, 3 | //.icon-visitor-profile, 4 | .jqplot-seriespicker > a { 5 | filter: invert(1); 6 | } 7 | 8 | .jqplot-seriespicker { 9 | filter: invert(); 10 | 11 | .jqplot-seriespicker-popover { 12 | filter: invert(); 13 | } 14 | } 15 | 16 | img[src*="plugins/Morpheus/images/logo-dark"], 17 | img[src*="plugins/Morpheus/icons/dist/devices"], 18 | img[src*="plugins/Morpheus/icons/dist/os/IOS.png"], 19 | img[src*="plugins/Morpheus/icons/dist/os/IPA.png"], 20 | img[src*="plugins/Morpheus/icons/dist/brand/Infinix.png"], 21 | img[src*="plugins/Morpheus/icons/dist/brand/Apple.png"] { 22 | filter: invert(1) !important; 23 | } 24 | 25 | .segmentationContainer ul.submenu > li span.compareSegment { 26 | filter: invert(1) !important; 27 | } 28 | 29 | .visits-live-launch-visitor-profile .icon-visitor-profile:before { 30 | filter: invert(1); 31 | } 32 | -------------------------------------------------------------------------------- /plugin.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "DarkTheme", 3 | "description": "A modern dark theme for Matomo", 4 | "theme": true, 5 | "version": "5.2.1", 6 | "require": { 7 | "matomo": ">=5.0.0-b1,<6.0.0-b1" 8 | }, 9 | "stylesheet": "stylesheets\/theme.less", 10 | "javascript": "javascripts\/theme.js", 11 | "homepage": "https://openmost.io/products/matomo-dark-theme/", 12 | "license": "GPL v3+", 13 | "keywords": [ 14 | "Dark Theme", "Dark", "Modern", "Black" 15 | ], 16 | "support": { 17 | "email": "ronan@openmost.io", 18 | "issues": "https://github.com/openmost/DarkTheme/issues", 19 | "source": "https://github.com/openmost/DarkTheme" 20 | }, 21 | "authors": [ 22 | { 23 | "name": "Openmost", 24 | "email": "ronan@openmost.io", 25 | "homepage": "https://openmost.io" 26 | } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /stylesheets/components/_expandable_selector.less: -------------------------------------------------------------------------------- 1 | .expandableSelector { 2 | 3 | .expandableList { 4 | background-color: var(--dark); 5 | 6 | .searchContainer { 7 | border-color: var(--darker); 8 | background: var(--dark); 9 | 10 | .expandableSearch { 11 | background-color: var(--darker) !important; 12 | color: var(--light-transparent) !important; 13 | border: 1px solid var(--darker) !important; 14 | } 15 | } 16 | 17 | .collection { 18 | background-color: var(--dark); 19 | border-color: var(--darker); 20 | 21 | .collection-item { 22 | background-color: var(--dark); 23 | border-bottom-color: var(--darker); 24 | 25 | &:hover { 26 | background-color: var(--darker) !important; 27 | } 28 | 29 | h4 { 30 | color: var(--light-transparent); 31 | } 32 | } 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /stylesheets/components/_widget.less: -------------------------------------------------------------------------------- 1 | .widget { 2 | background-color: var(--surface-raised); 3 | 4 | .widgetTop, .widget-title, .widgetName { 5 | background-color: var(--surface-raised) !important; 6 | color: var(--text-primary) !important; 7 | } 8 | 9 | .widgetContent { 10 | background-color: var(--surface-raised); 11 | } 12 | 13 | .promoWidget { 14 | background-color: transparent; 15 | } 16 | 17 | #piwik-promo-share { 18 | background-color: var(--surface-raised); 19 | } 20 | 21 | .rss-description, 22 | #piwik-widget-footer { 23 | color: var(--text-secondary) !important; 24 | } 25 | 26 | 27 | .simple-realtime-visitor-counter { 28 | background-color: var(--surface-raised); 29 | 30 | & > div { 31 | color: var(--text-primary); 32 | } 33 | } 34 | 35 | .simple-realtime-elaboration { 36 | color: var(--text-primary); 37 | } 38 | 39 | .simple-realtime-metric { 40 | color: inherit; 41 | } 42 | } -------------------------------------------------------------------------------- /stylesheets/components/_tagmanager.less: -------------------------------------------------------------------------------- 1 | // Tag Manager Tags 2 | img[src*="TagManager/images/icons/code.svg"], 3 | img[src*="TagManager/images/icons/image.svg"], 4 | img[src*="TagManager/images/icons/raygun.svg"], 5 | img[src*="TagManager/images/icons/sentry.svg"], 6 | img[src*="TagManager/images/icons/drift.svg"], 7 | img[src*="TagManager/images/icons/pingdom.svg"], 8 | 9 | // Tag Manager Triggers 10 | img[src*="TagManager/images/icons/defaultIcon.svg"], 11 | img[src*="TagManager/images/icons/pointer.svg"], 12 | img[src*="TagManager/images/icons/pageview.svg"], 13 | img[src*="TagManager/images/icons/show.svg"], 14 | img[src*="TagManager/images/icons/form.svg"], 15 | img[src*="TagManager/images/icons/fullscreen.svg"], 16 | img[src*="TagManager/images/icons/interaction.svg"], 17 | img[src*="TagManager/images/icons/error.svg"], 18 | img[src*="TagManager/images/icons/timer.svg"], 19 | 20 | // Tag Manager default 21 | img[src*="TagManager/images/icons/defaultIcon.svg"]{ 22 | filter: invert(1); 23 | } -------------------------------------------------------------------------------- /stylesheets/components/_visitor_profile.less: -------------------------------------------------------------------------------- 1 | .visitor-profile { 2 | 3 | p { 4 | color: var(--light-transparent); 5 | 6 | strong { 7 | color: var(--light); 8 | } 9 | } 10 | 11 | a { 12 | color: var(--light-transparent) !important; 13 | } 14 | 15 | .visitor-log-ip-location img.flag { 16 | border-color: transparent !important; 17 | } 18 | 19 | .visitor-profile-options { 20 | 21 | .visitor-profile-help:before, 22 | .visitor-profile-toggle-actions:before { 23 | background-color: transparent; 24 | color: var(--light); 25 | } 26 | } 27 | 28 | .visitor-profile-visits-info, .visitor-profile-overview { 29 | border-color: var(--darker) !important; 30 | } 31 | 32 | .visitor-profile-info { 33 | 34 | .visitor-profile-visits { 35 | 36 | .visitor-profile-visit-title { 37 | color: var(--light); 38 | background-color: var(--darker); 39 | } 40 | } 41 | } 42 | } 43 | 44 | .visitor-profile-visit-details-extended { 45 | background-color: unset; 46 | } -------------------------------------------------------------------------------- /stylesheets/layout/_main.less: -------------------------------------------------------------------------------- 1 | :root { 2 | color-scheme: dark; 3 | } 4 | 5 | body { 6 | background-color: var(--surface-base); 7 | color: var(--text-secondary); 8 | } 9 | 10 | a { 11 | color: var(--primary-light); 12 | transition: color 0.15s ease; 13 | 14 | &:hover { 15 | color: var(--primary-lighter); 16 | } 17 | } 18 | 19 | .piwik-content-intro p { 20 | color: var(--text-secondary) !important; 21 | } 22 | 23 | #multisites .add_new_site a { 24 | color: var(--text-primary) !important; 25 | } 26 | 27 | hr { 28 | border-color: var(--border-medium); 29 | } 30 | 31 | .loadingPiwik img { 32 | filter: invert(1); 33 | } 34 | 35 | p { 36 | color: var(--text-secondary); 37 | } 38 | 39 | strong, b { 40 | color: var(--text-primary); 41 | } 42 | 43 | #content .card-content p { 44 | color: var(--text-secondary); 45 | } 46 | 47 | .piwik-content-intro { 48 | color: var(--text-secondary) !important; 49 | } 50 | 51 | code, pre { 52 | background-color: var(--surface-overlay); 53 | border: 1px solid var(--border-medium); 54 | color: var(--text-primary); 55 | } 56 | 57 | ::selection { 58 | background-color: var(--primary-subtle); 59 | color: var(--text-primary); 60 | } 61 | -------------------------------------------------------------------------------- /stylesheets/components/_alert.less: -------------------------------------------------------------------------------- 1 | .alert { 2 | color: var(--text-primary) !important; 3 | border-width: 1px; 4 | border-style: solid; 5 | box-shadow: var(--shadow-sm); 6 | 7 | a { 8 | color: var(--text-primary) !important; 9 | text-decoration: underline; 10 | text-decoration-color: var(--light-subtle); 11 | 12 | &:hover { 13 | text-decoration-color: var(--light); 14 | } 15 | } 16 | 17 | &.alert-info { 18 | background-color: var(--info-bg) !important; 19 | border-color: var(--info-border) !important; 20 | 21 | .icon, i { 22 | color: var(--info-text); 23 | } 24 | } 25 | 26 | &.alert-success { 27 | background-color: var(--success-bg); 28 | border-color: var(--success-border) !important; 29 | 30 | .icon, i { 31 | color: var(--success-text); 32 | } 33 | } 34 | 35 | &.alert-warning { 36 | background-color: var(--warning-bg); 37 | border-color: var(--warning-border) !important; 38 | 39 | .icon, i { 40 | color: var(--warning-text); 41 | } 42 | } 43 | 44 | &.alert-danger { 45 | background-color: var(--danger-bg); 46 | border-color: var(--danger-border) !important; 47 | 48 | .icon, i { 49 | color: var(--danger-text); 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /stylesheets/components/_datepicker.less: -------------------------------------------------------------------------------- 1 | #root .ui-datepicker { 2 | border: 1px solid var(--dark) !important; 3 | 4 | .ui-datepicker-header { 5 | border-color: var(--darker); 6 | 7 | select { 8 | background-color: var(--dark) !important; 9 | } 10 | } 11 | 12 | .ui-datepicker-calendar { 13 | border-color: var(--darker); 14 | 15 | thead { 16 | border-color: var(--darker); 17 | 18 | th { 19 | border-color: var(--darker); 20 | } 21 | } 22 | 23 | tbody { 24 | 25 | tr { 26 | 27 | td { 28 | 29 | &.ui-datepicker-other-month, 30 | &.ui-datepicker-unselectable, 31 | &.ui-state-disabled { 32 | 33 | &.ui-state-hover { 34 | background-color: var(--dark) !important; 35 | } 36 | } 37 | 38 | &.ui-datepicker-current-period a { 39 | background-color: var(--darker) !important; 40 | } 41 | 42 | .ui-state-default { 43 | color: var(--light-transparent) !important; 44 | background-color: var(--dark) !important; 45 | } 46 | 47 | .ui-state-hover { 48 | background-color: var(--darker) !important; 49 | } 50 | } 51 | } 52 | } 53 | } 54 | } 55 | 56 | 57 | #inputCalendarFrom, #inputCalendarTo { 58 | background-color: var(--dark); 59 | } 60 | -------------------------------------------------------------------------------- /stylesheets/components/_notification.less: -------------------------------------------------------------------------------- 1 | .system.notification { 2 | color: var(--text-primary) !important; 3 | border-width: 1px; 4 | border-style: solid; 5 | box-shadow: var(--shadow-md); 6 | 7 | a { 8 | color: var(--text-primary) !important; 9 | text-decoration: underline; 10 | text-decoration-color: var(--light-subtle); 11 | 12 | &:hover { 13 | text-decoration-color: var(--light); 14 | } 15 | } 16 | 17 | .notification-close { 18 | color: var(--text-secondary); 19 | 20 | &:hover { 21 | color: var(--text-primary); 22 | } 23 | } 24 | 25 | &.notification-info { 26 | background-color: var(--info-bg) !important; 27 | border-color: var(--info-border) !important; 28 | 29 | .icon, i { 30 | color: var(--info-text); 31 | } 32 | } 33 | 34 | &.notification-success { 35 | background-color: var(--success-bg); 36 | border-color: var(--success-border) !important; 37 | 38 | .icon, i { 39 | color: var(--success-text); 40 | } 41 | } 42 | 43 | &.notification-warning { 44 | background-color: var(--warning-bg); 45 | border-color: var(--warning-border) !important; 46 | 47 | .icon, i { 48 | color: var(--warning-text); 49 | } 50 | } 51 | 52 | &.notification-danger { 53 | background-color: var(--danger-bg); 54 | border-color: var(--danger-border) !important; 55 | 56 | .icon, i { 57 | color: var(--danger-text); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /stylesheets/components/_dialog.less: -------------------------------------------------------------------------------- 1 | .ui-dialog { 2 | background: var(--surface-raised) !important; 3 | color: var(--text-primary) !important; 4 | border: 1px solid var(--border-light) !important; 5 | box-shadow: var(--shadow-lg) !important; 6 | 7 | // Header same as body 8 | .ui-widget-header { 9 | background: var(--surface-raised) !important; 10 | color: var(--text-primary) !important; 11 | border-bottom: 1px solid var(--border-medium) !important; 12 | 13 | .ui-dialog-title { 14 | color: var(--text-primary) !important; 15 | } 16 | 17 | .ui-dialog-titlebar-close { 18 | color: var(--text-secondary); 19 | 20 | &:hover { 21 | color: var(--text-primary); 22 | background-color: var(--hover-overlay); 23 | } 24 | } 25 | } 26 | 27 | .ui-dialog-titlebar { 28 | background: var(--surface-raised) !important; 29 | } 30 | 31 | .ui-widget-content { 32 | color: var(--text-secondary) !important; 33 | background: var(--surface-raised) !important; 34 | 35 | a { 36 | color: var(--primary-lighter) !important; 37 | 38 | &:hover { 39 | color: var(--light) !important; 40 | } 41 | } 42 | } 43 | 44 | // Footer same as body 45 | .ui-dialog-buttonpane { 46 | background: var(--surface-raised) !important; 47 | border-top: 1px solid var(--border-medium) !important; 48 | } 49 | 50 | .rowevolution table.metrics td.text span.details { 51 | color: var(--text-secondary); 52 | } 53 | } -------------------------------------------------------------------------------- /stylesheets/components/_button.less: -------------------------------------------------------------------------------- 1 | .btn-flat { 2 | color: var(--text-secondary) !important; 3 | transition: all 0.15s ease; 4 | 5 | &:hover { 6 | color: var(--text-primary) !important; 7 | background-color: var(--hover-overlay) !important; 8 | } 9 | 10 | &:active { 11 | background-color: var(--active-overlay) !important; 12 | } 13 | } 14 | 15 | .btn { 16 | box-shadow: var(--shadow-sm); 17 | border: 1px solid var(--border-light); 18 | transition: all 0.15s ease; 19 | 20 | &:hover { 21 | box-shadow: var(--shadow-md); 22 | } 23 | 24 | &.btn-primary { 25 | background-color: var(--primary) !important; 26 | border-color: var(--primary-light) !important; 27 | 28 | &:hover { 29 | background-color: var(--primary-light) !important; 30 | } 31 | } 32 | 33 | &.btn-danger, &.btn-warning-red { 34 | background-color: var(--danger-bg) !important; 35 | border-color: var(--danger-border) !important; 36 | color: var(--text-primary) !important; 37 | 38 | &:hover { 39 | background-color: var(--danger-border) !important; 40 | } 41 | } 42 | 43 | &.btn-success { 44 | background-color: var(--success-bg) !important; 45 | border-color: var(--success-border) !important; 46 | color: var(--text-primary) !important; 47 | 48 | &:hover { 49 | background-color: var(--success-border) !important; 50 | } 51 | } 52 | } 53 | 54 | .btn-link { 55 | color: var(--primary-light) !important; 56 | 57 | &:hover { 58 | color: var(--primary-lighter) !important; 59 | } 60 | } -------------------------------------------------------------------------------- /stylesheets/components/_card.less: -------------------------------------------------------------------------------- 1 | .card { 2 | background-color: var(--surface-raised) !important; 3 | border: 1px solid var(--border-medium); 4 | box-shadow: var(--shadow-sm); 5 | 6 | .h1, .h2, .h3, .h4, 7 | h1, h2, h3, h4, 8 | .card-title { 9 | color: var(--text-primary) !important; 10 | } 11 | 12 | p, 13 | .rss-description, 14 | .card-content { 15 | color: var(--text-secondary) !important; 16 | } 17 | 18 | .card-title a { 19 | color: var(--text-primary) !important; 20 | 21 | &:hover { 22 | color: var(--primary-lighter) !important; 23 | } 24 | } 25 | 26 | .card-action { 27 | background-color: var(--dark-subtle); 28 | border-top: 1px solid var(--border-medium); 29 | } 30 | 31 | .tableIcon.activeIcon { 32 | background: var(--surface-overlay) !important; 33 | } 34 | 35 | tr, tr:hover { 36 | button.table-action { 37 | background: var(--surface-raised) !important; 38 | border: 1px solid var(--border-light); 39 | 40 | &:hover { 41 | background: var(--surface-overlay) !important; 42 | } 43 | } 44 | } 45 | 46 | button.table-action { 47 | background-color: var(--surface-raised) !important; 48 | } 49 | } 50 | 51 | h2.card-title a { 52 | color: var(--text-primary) !important; 53 | } 54 | 55 | 56 | .marketplace { 57 | 58 | .card { 59 | border-color: var(--border-medium) !important; 60 | 61 | .downloads { 62 | color: var(--text-tertiary) !important; 63 | } 64 | 65 | &:hover { 66 | border-color: var(--border-light) !important; 67 | box-shadow: var(--shadow-md); 68 | } 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /stylesheets/components/_table.less: -------------------------------------------------------------------------------- 1 | table { 2 | 3 | &.subDataTable thead th { 4 | border-top: 1px solid #202329 !important; 5 | } 6 | 7 | &.entityTable, 8 | &.dataTable { 9 | 10 | .dataTableRowActions { 11 | background-color: transparent !important; 12 | } 13 | 14 | img { 15 | // filter: invert(1); 16 | } 17 | 18 | thead { 19 | tr, tr:not(.subDataTableContainer) { 20 | th { 21 | color: rgba(255, 255, 255, 0.7) !important; 22 | } 23 | } 24 | } 25 | 26 | tbody { 27 | tr, tr:not(.subDataTableContainer) { 28 | td { 29 | border-bottom-color: var(--darker) !important; 30 | } 31 | } 32 | } 33 | } 34 | 35 | tr, tr { 36 | 37 | th { 38 | color: rgba(255, 255, 255, 0.7) !important; 39 | } 40 | 41 | td { 42 | color: var(--light) !important; 43 | background-color: var(--dark) !important; 44 | border-bottom-color: var(--darker) !important; 45 | } 46 | } 47 | 48 | } 49 | 50 | .dataTablePages { 51 | color: var(--light); 52 | } 53 | 54 | .datatableRelatedReports span { 55 | color: var(--light) !important; 56 | } 57 | 58 | .dataTableFooterIcons .inactiveIcon:hover { 59 | background-color: var(--dark) !important; 60 | 61 | img { 62 | filter: invert(1); 63 | } 64 | } 65 | 66 | #widgetUserCountrygetCity .dataTable .label > img, 67 | #widgetUserCountrygetCountry .dataTable .label > img { 68 | border: 1px solid var(--darker) !important; 69 | } 70 | 71 | .tableConfiguration div.configItem { 72 | color: var(--light-transparent) !important; 73 | } 74 | 75 | // Search input - just white text color 76 | .dataTableSearchInput, 77 | input.dataTableSearchInput { 78 | color: #ffffff !important; 79 | caret-color: #ffffff !important; 80 | } -------------------------------------------------------------------------------- /stylesheets/theme.less: -------------------------------------------------------------------------------- 1 | @import "_variables"; 2 | 3 | @import "layout/_main"; 4 | @import "layout/_navbar"; 5 | 6 | @import "pages/_login"; 7 | 8 | @import "components/_admin"; 9 | @import "components/_ai_chat"; 10 | @import "components/_alert"; 11 | @import "components/_annotation"; 12 | @import "components/_button"; 13 | @import "components/_canvas"; 14 | @import "components/_card"; 15 | @import "components/_chip"; 16 | @import "components/_collection"; 17 | @import "components/_comparison"; 18 | @import "components/_control"; 19 | @import "components/_data_list"; 20 | @import "components/_datepicker"; 21 | @import "components/_debug_preview"; 22 | @import "components/_demo"; 23 | @import "components/_dialog"; 24 | @import "components/_dropdown"; 25 | @import "components/_entity_list"; 26 | @import "components/_expandable_selector"; 27 | @import "components/_form"; 28 | @import "components/_funnels"; 29 | @import "components/_headings"; 30 | @import "components/_icon"; 31 | @import "components/_map"; 32 | @import "components/_menu"; 33 | @import "components/_message"; 34 | @import "components/_modal"; 35 | @import "components/_notification"; 36 | @import "components/_overlay"; 37 | @import "components/_plugin"; 38 | @import "components/_plugin_promo"; 39 | @import "components/_scrollbar"; 40 | @import "components/_search"; 41 | @import "components/_segment_generator"; 42 | @import "components/_sidenav"; 43 | @import "components/_sparkline"; 44 | @import "components/_table"; 45 | @import "components/_tabs"; 46 | @import "components/_tagmanager"; 47 | @import "components/_tagmanager_debugbar"; 48 | @import "components/_transitions"; 49 | @import "components/_ui_menu"; 50 | @import "components/_visitor_profile"; 51 | @import "components/_visits_live"; 52 | @import "components/_visits_log"; 53 | @import "components/_widget"; 54 | -------------------------------------------------------------------------------- /stylesheets/components/_visits_log.less: -------------------------------------------------------------------------------- 1 | .dataTableVizVisitorLog { 2 | .dataTableWrapper { 3 | color: var(--text-secondary) !important; 4 | } 5 | } 6 | 7 | ol.actionList > li:not(.pageviewActions)::before { 8 | box-shadow: 0 0 0 7px var(--darker) !important; 9 | } 10 | 11 | ol.actionList > li:not(.pageviewActions):after { 12 | height: calc(100% - 10px) !important; 13 | } 14 | 15 | .repeat { 16 | background-color: transparent; 17 | } 18 | 19 | img.action-list-action-icon.action { 20 | border-radius: 50em; 21 | } 22 | 23 | .actionsForPageExpander { 24 | 25 | .show-more-actions, 26 | .show-less-actions { 27 | color: var(--text-secondary) !important; 28 | } 29 | } 30 | 31 | // Action list timeline - darker than card background 32 | .actionList, 33 | ol.actionList { 34 | 35 | li.action { 36 | // Timeline line before (top) 37 | &::before { 38 | background-color: var(--darker) !important; 39 | border-color: var(--darker) !important; 40 | } 41 | 42 | // Timeline line after (bottom) 43 | &::after { 44 | background-color: var(--darker) !important; 45 | border-color: var(--darker) !important; 46 | } 47 | } 48 | 49 | // Timeline connector lines 50 | > li::before, 51 | > li::after { 52 | background-color: var(--darker) !important; 53 | border-color: var(--darker) !important; 54 | } 55 | 56 | > li:not(.pageviewActions)::after { 57 | background-color: var(--darker) !important; 58 | } 59 | } 60 | 61 | // Action icons on timeline 62 | .action-list-action-icon { 63 | background-color: var(--darker) !important; 64 | border-color: var(--dark-elevated) !important; 65 | } 66 | 67 | // Timeline vertical line 68 | .visitorLogIcons, 69 | .visitorLogIconsForGroup { 70 | &::before, 71 | &::after { 72 | background-color: var(--darker) !important; 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /stylesheets/layout/_navbar.less: -------------------------------------------------------------------------------- 1 | // Main side navigation - same background as cards/widgets 2 | .side-nav, 3 | #root .side-nav, 4 | nav.side-nav, 5 | .sidenav, 6 | #root .sidenav { 7 | background: var(--surface-raised) !important; 8 | background-color: var(--surface-raised) !important; 9 | 10 | a { 11 | color: var(--text-primary) !important; 12 | transition: .2s ease background-color; 13 | text-decoration: none; 14 | 15 | &:hover { 16 | background-color: var(--hover-overlay) !important; 17 | transition: .2s ease background-color; 18 | } 19 | } 20 | 21 | li { 22 | background-color: var(--surface-raised) !important; 23 | } 24 | 25 | .collapsible-body { 26 | background-color: var(--surface-raised) !important; 27 | } 28 | 29 | .collapsible-header { 30 | background-color: var(--surface-raised) !important; 31 | } 32 | } 33 | 34 | // Left menu / main navigation 35 | #secondNavBar, 36 | .secondary-nav-bar, 37 | #menu, 38 | .menu, 39 | .mainMenu { 40 | background-color: var(--surface-raised) !important; 41 | } 42 | 43 | .navbar.collapsible-accordion, 44 | #root .navbar.collapsible-accordion { 45 | background-color: var(--surface-raised) !important; 46 | 47 | .menuTab { 48 | background-color: var(--surface-raised) !important; 49 | 50 | .item { 51 | background-color: var(--surface-raised) !important; 52 | transition: .2s ease background-color; 53 | 54 | &:hover { 55 | background-color: var(--hover-overlay) !important; 56 | transition: .2s ease background-color; 57 | } 58 | 59 | &.active { 60 | background-color: var(--primary-subtle) !important; 61 | } 62 | } 63 | } 64 | 65 | .collapsible-header { 66 | background-color: var(--surface-raised) !important; 67 | } 68 | 69 | .collapsible-body { 70 | background-color: var(--surface-raised) !important; 71 | } 72 | } -------------------------------------------------------------------------------- /stylesheets/components/_control.less: -------------------------------------------------------------------------------- 1 | #root .borderedControl { 2 | background-color: transparent; 3 | border: 1px solid var(--dark); 4 | box-shadow: none; 5 | transition: .2s ease all; 6 | border-radius: 3px; 7 | font-size: 11px; 8 | // font-weight: bold; 9 | color: var(--light-transparent) !important; 10 | min-width: 18px; 11 | 12 | &.expanded { 13 | background-color: var(--darker) !important; 14 | } 15 | 16 | .title { 17 | color: var(--light-transparent) !important; 18 | } 19 | 20 | &:hover { 21 | transition: .2s ease all; 22 | background: var(--dark); 23 | color: var(--light) !important; 24 | 25 | .title { 26 | color: var(--light) !important; 27 | } 28 | } 29 | } 30 | 31 | .siteSelector { 32 | .custom_select_ul_list li a { 33 | color: var(--light) !important; 34 | transition: .2s ease color; 35 | 36 | &:hover { 37 | color: rgba(255, 255, 255, 0.7) !important; 38 | background-color: var(--darker) !important; 39 | transition: .2s ease color; 40 | } 41 | } 42 | 43 | .custom_select_search { 44 | .inp { 45 | color: inherit !important; 46 | } 47 | } 48 | } 49 | 50 | .custom_select_all a { 51 | color: var(--light) !important; 52 | transition: .2s ease color; 53 | 54 | &:hover { 55 | color: rgba(255, 255, 255, 0.7) !important; 56 | background-color: transparent !important; 57 | transition: .2s ease color; 58 | } 59 | } 60 | 61 | #root piwik-paged-users-list .siteSelector.borderedControl { 62 | background-color: var(--dark); 63 | } 64 | 65 | .icon-arrowup { 66 | &:before { 67 | color: var(--light-transparent); 68 | } 69 | } 70 | 71 | .quick-access .selected { 72 | background-color: var(--darker) !important; 73 | } 74 | 75 | .tagContainerSelector .custom_select_container li a { 76 | color: var(--light); 77 | 78 | &:hover { 79 | background-color: var(--darker); 80 | color: var(--light-transparent); 81 | } 82 | } -------------------------------------------------------------------------------- /stylesheets/components/_modal.less: -------------------------------------------------------------------------------- 1 | .modal { 2 | background-color: var(--surface-raised); 3 | border: 1px solid var(--border-light); 4 | box-shadow: var(--shadow-lg); 5 | 6 | .modal-content { 7 | background: none !important; 8 | color: var(--text-primary); 9 | 10 | p { 11 | color: var(--text-secondary); 12 | } 13 | 14 | h4, h5, h6 { 15 | color: var(--text-primary); 16 | } 17 | } 18 | 19 | // Header same as body 20 | .modal-header { 21 | background-color: var(--surface-raised) !important; 22 | border-bottom: 1px solid var(--border-medium); 23 | } 24 | 25 | // Footer same as body 26 | .modal-footer { 27 | background-color: var(--surface-raised) !important; 28 | border-top: 1px solid var(--border-medium); 29 | } 30 | 31 | .modal-close { 32 | color: var(--text-secondary); 33 | 34 | &:hover { 35 | color: var(--text-primary); 36 | background-color: var(--hover-overlay); 37 | } 38 | } 39 | 40 | // Modal title 41 | h4, .modal-title { 42 | background-color: var(--surface-raised) !important; 43 | color: var(--text-primary) !important; 44 | } 45 | } 46 | 47 | .modal-overlay { 48 | background-color: rgba(0, 0, 0, 0.6) !important; 49 | } 50 | 51 | .ui-confirm { 52 | color: var(--text-secondary) !important; 53 | background-color: var(--surface-raised); 54 | border: 1px solid var(--border-light); 55 | 56 | h2 { 57 | color: var(--text-primary) !important; 58 | background-color: var(--surface-raised) !important; 59 | border-bottom: 1px solid var(--border-medium); 60 | } 61 | 62 | p { 63 | color: var(--text-secondary); 64 | } 65 | 66 | .btn { 67 | border: 1px solid var(--border-light); 68 | } 69 | } 70 | 71 | // Dialog title bars 72 | .ui-dialog .ui-dialog-titlebar, 73 | .ui-dialog .ui-widget-header { 74 | background-color: var(--surface-raised) !important; 75 | border-bottom: 1px solid var(--border-medium) !important; 76 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Dark Theme 2 | 3 | ## Description 4 | 5 | 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. 6 | 7 | ### Key Features 8 | 9 | - **Complete UI Coverage** - Every screen, widget, modal, and component is styled for dark mode 10 | - **Charts & Graphs** - All jqPlot charts (sparklines, bar graphs, pie charts, evolution graphs) render beautifully with dark backgrounds and vibrant data colors 11 | - **Maps Support** - RealTimeMap and UserCountryMap fully themed with appropriate color scales for data visualization 12 | - **Consistent Design** - Cards, widgets, sidebar navigation, and modals all share a cohesive dark aesthetic 13 | - **CSS Variables** - Built with native CSS custom properties for easy customization 14 | - **Plugin Compatibility** - Works seamlessly with Matomo plugins including Funnels, Tag Manager, AI Chats, and more 15 | 16 | ### Why Choose Dark Theme? 17 | 18 | - Reduces eye strain during extended analytics sessions 19 | - Perfect for low-light environments and night-time work 20 | - Professional appearance that matches modern dark-mode applications 21 | - Actively maintained and updated with each Matomo release 22 | 23 | ### Customization 24 | 25 | The theme uses CSS custom properties (variables) that you can override to match your brand colors. All styling is done through LESS files organized into maintainable components. 26 | 27 | **Thank you for installing!** 28 | 29 | ## Support 30 | 31 | If you encounter any issues or have suggestions, please: 32 | - Open an issue on [GitHub](https://github.com/openmost/DarkTheme/issues) 33 | - Contact us at ronan@openmost.io 34 | 35 | ## Want More? 36 | 37 | Looking for a custom theme tailored to your brand? We create bespoke Matomo themes for businesses. Visit [openmost.io](https://openmost.io) or contact us to discuss your requirements. 38 | -------------------------------------------------------------------------------- /stylesheets/components/_dropdown.less: -------------------------------------------------------------------------------- 1 | .piwikSelector.expanded .dropdown { 2 | background-color: var(--surface-raised); 3 | color: var(--text-secondary); 4 | border: 1px solid var(--border-light); 5 | box-shadow: var(--shadow-md); 6 | 7 | ul { 8 | 9 | li { 10 | color: var(--text-secondary); 11 | transition: background-color 0.15s ease; 12 | 13 | &.widgetpreview-choosen { 14 | background-color: var(--surface-overlay); 15 | } 16 | 17 | &:hover { 18 | background-color: var(--hover-overlay); 19 | } 20 | 21 | & > div { 22 | color: var(--text-primary); 23 | } 24 | } 25 | } 26 | } 27 | 28 | #header_message .dropdown { 29 | border-color: var(--border-medium); 30 | } 31 | 32 | .dropdown-content { 33 | background-color: var(--surface-base) !important; 34 | border: 1px solid var(--border-light) !important; 35 | box-shadow: var(--shadow-lg) !important; 36 | 37 | .divider { 38 | background-color: var(--border-medium); 39 | } 40 | 41 | li { 42 | color: var(--text-primary) !important; 43 | transition: background-color 0.15s ease; 44 | 45 | &:hover { 46 | background-color: var(--surface-raised) !important; 47 | } 48 | 49 | &.selected { 50 | background-color: var(--primary-subtle) !important; 51 | } 52 | 53 | &.optgroup { 54 | border-top-color: var(--border-medium) !important; 55 | color: var(--text-tertiary) !important; 56 | } 57 | 58 | .tableIcon.activeIcon { 59 | background-color: var(--surface-overlay); 60 | } 61 | } 62 | } 63 | 64 | .tableConfiguration div.configItem:hover { 65 | background-color: var(--hover-overlay) !important; 66 | } 67 | 68 | 69 | .capabilitiesEdit .addCapability .input-field .select-dropdown { 70 | background: var(--surface-raised) !important; 71 | border: 1px solid var(--border-light) !important; 72 | box-shadow: var(--shadow-sm) !important; 73 | } 74 | 75 | .dropdown-button { 76 | input.dataTableSearchInput { 77 | color: #fff !important; 78 | } 79 | } -------------------------------------------------------------------------------- /stylesheets/_variables.less: -------------------------------------------------------------------------------- 1 | :root { 2 | // Base colors 3 | --light: #ffffff; 4 | --light-muted: rgba(255, 255, 255, 0.85); 5 | --light-transparent: rgba(255, 255, 255, 0.7); 6 | --light-subtle: rgba(255, 255, 255, 0.5); 7 | --light-dimmed: rgba(255, 255, 255, 0.3); 8 | 9 | // Primary colors 10 | --primary: #3450a3; 11 | --primary-light: #4a6fc7; 12 | --primary-lighter: #6b8fd9; 13 | --primary-dark: #283d7a; 14 | --primary-subtle: rgba(52, 80, 163, 0.3); 15 | 16 | // Dark scale (from lightest to darkest) 17 | --dark-elevated: #3a424d; 18 | --dark-hover: #333a42; 19 | --dark: #2b3138; 20 | --dark-subtle: #262b31; 21 | --darker: #202329; 22 | --darkest: #181a1f; 23 | 24 | // Borders 25 | --border-light: rgba(255, 255, 255, 0.15); 26 | --border-medium: rgba(255, 255, 255, 0.1); 27 | --border-dark: rgba(0, 0, 0, 0.3); 28 | --border-accent: var(--primary-light); 29 | 30 | // Surfaces (elevation levels) 31 | --surface-ground: var(--darkest); 32 | --surface-base: var(--darker); 33 | --surface-raised: var(--dark); 34 | --surface-overlay: var(--dark-elevated); 35 | 36 | // Text hierarchy 37 | --text-primary: var(--light); 38 | --text-secondary: var(--light-transparent); 39 | --text-tertiary: var(--light-subtle); 40 | --text-disabled: var(--light-dimmed); 41 | 42 | // Status colors (backgrounds) 43 | --success-bg: #1e3a1e; 44 | --success-border: #3d8b3d; 45 | --success-text: #7dd87d; 46 | 47 | --warning-bg: #3d3517; 48 | --warning-border: #b8a22e; 49 | --warning-text: #e8d44d; 50 | 51 | --danger-bg: #3d1e1e; 52 | --danger-border: #a54545; 53 | --danger-text: #e87d7d; 54 | 55 | --info-bg: var(--dark); 56 | --info-border: #4a6fa5; 57 | --info-text: #7db5e8; 58 | 59 | // Interactive states 60 | --hover-overlay: rgba(255, 255, 255, 0.05); 61 | --active-overlay: rgba(255, 255, 255, 0.1); 62 | --focus-ring: var(--primary-light); 63 | 64 | // Shadows 65 | --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3); 66 | --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4); 67 | --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5); 68 | } -------------------------------------------------------------------------------- /DarkTheme.php: -------------------------------------------------------------------------------- 1 | 'configureThemeVariables', 20 | ]; 21 | } 22 | 23 | public function configureThemeVariables(Plugin\ThemeStyles $vars) 24 | { 25 | // Primary colors 26 | $primary = '#4a6fc7'; 27 | $primaryLight = '#6b8fd9'; 28 | $primaryDark = '#3450a3'; 29 | 30 | // Dark scale 31 | $darkest = '#181a1f'; 32 | $darker = '#202329'; 33 | $dark = '#2b3138'; 34 | $darkElevated = '#3a424d'; 35 | 36 | // Light scale 37 | $light = '#ffffff'; 38 | $lightMuted = 'rgba(255, 255, 255, 0.85)'; 39 | $lightTransparent = 'rgba(255, 255, 255, 0.7)'; 40 | $lightSubtle = 'rgba(255, 255, 255, 0.5)'; 41 | 42 | $vars->colorBrand = $primary; 43 | $vars->colorBrandContrast = $light; 44 | $vars->colorText = '#212121'; // Email text color (dark for white email backgrounds) 45 | $vars->colorTextLight = '#444444'; // Email secondary text 46 | $vars->colorTextLighter = '#666666'; // Email tertiary text 47 | $vars->colorTextContrast = $light; 48 | $vars->colorLink = $primaryLight; 49 | $vars->colorBaseSeries = '#ee3024'; 50 | $vars->colorHeadlineAlternative = $lightTransparent; 51 | $vars->colorHeaderBackground = $dark; 52 | $vars->colorHeaderText = $light; 53 | 54 | $vars->colorMenuContrastText = $lightTransparent; 55 | $vars->colorMenuContrastTextSelected = $primaryLight; 56 | $vars->colorMenuContrastTextActive = $light; 57 | $vars->colorMenuContrastBackground = 'transparent'; 58 | 59 | $vars->colorWidgetBorder = $darkElevated; 60 | $vars->colorWidgetBackground = $dark; 61 | $vars->colorWidgetExportedBackgroundBase = $dark; 62 | $vars->colorWidgetTitleBackground = $dark; // Same as widget body 63 | $vars->colorWidgetTitleText = $light; 64 | 65 | $vars->colorBackgroundBase = $darker; 66 | $vars->colorBackgroundTinyContrast = $darkElevated; 67 | $vars->colorBackgroundLowContrast = $dark; 68 | $vars->colorBackgroundContrast = $dark; 69 | $vars->colorBackgroundHighContrast = $darkest; 70 | 71 | $vars->colorBorder = $darkElevated; 72 | $vars->colorCode = $lightMuted; 73 | $vars->colorCodeBackground = $darkElevated; 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /stylesheets/components/_form.less: -------------------------------------------------------------------------------- 1 | .form-help { 2 | background-color: var(--darker) !important; 3 | color: var(--light) !important; 4 | } 5 | 6 | .control_text { 7 | color: var(--light) !important; 8 | } 9 | 10 | .ui-confirm textarea { 11 | background-color: transparent; 12 | } 13 | 14 | .select-wrapper.disabled + label, 15 | input:disabled + span { 16 | color: #76838f !important; 17 | } 18 | 19 | button, input, optgroup, select, textarea { 20 | color: var(--light) !important; 21 | } 22 | 23 | select { 24 | background-color: var(--darker) !important; 25 | border-color: var(--dark) !important; 26 | 27 | &:focus { 28 | outline: 1px solid var(--primary) !important; 29 | } 30 | } 31 | 32 | [type="radio"]:disabled + label { 33 | color: #76838f; 34 | } 35 | 36 | 37 | input:not([type]):disabled + label, input:not([type])[readonly="readonly"] + label, input[type=text]:disabled + label, input[type=text][readonly="readonly"] + label, input[type=password]:disabled + label, input[type=password][readonly="readonly"] + label, input[type=email]:disabled + label, input[type=email][readonly="readonly"] + label, input[type=url]:disabled + label, input[type=url][readonly="readonly"] + label, input[type=time]:disabled + label, input[type=time][readonly="readonly"] + label, input[type=date]:disabled + label, input[type=date][readonly="readonly"] + label, input[type=datetime]:disabled + label, input[type=datetime][readonly="readonly"] + label, input[type=datetime-local]:disabled + label, input[type=datetime-local][readonly="readonly"] + label, input[type=tel]:disabled + label, input[type=tel][readonly="readonly"] + label, input[type=number]:disabled + label, input[type=number][readonly="readonly"] + label, input[type=search]:disabled + label, input[type=search][readonly="readonly"] + label, textarea.materialize-textarea:disabled + label, textarea.materialize-textarea[readonly="readonly"] + label { 38 | color: #76838f !important; 39 | } 40 | 41 | input:not([type]):disabled, input:not([type])[readonly="readonly"], input[type=text]:disabled, input[type=text][readonly="readonly"], input[type=password]:disabled, input[type=password][readonly="readonly"], input[type=email]:disabled, input[type=email][readonly="readonly"], input[type=url]:disabled, input[type=url][readonly="readonly"], input[type=time]:disabled, input[type=time][readonly="readonly"], input[type=date]:disabled, input[type=date][readonly="readonly"], input[type=datetime]:disabled, input[type=datetime][readonly="readonly"], input[type=datetime-local]:disabled, input[type=datetime-local][readonly="readonly"], input[type=tel]:disabled, input[type=tel][readonly="readonly"], input[type=number]:disabled, input[type=number][readonly="readonly"], input[type=search]:disabled, input[type=search][readonly="readonly"], textarea.materialize-textarea:disabled, textarea.materialize-textarea[readonly="readonly"] { 42 | border-color: #76838f !important; 43 | } 44 | 45 | 46 | .ui-autocomplete { 47 | border: 1px solid var(--darker) !important; 48 | 49 | .ui-menu-item { 50 | 51 | .ui-menu-item-wrapper { 52 | color: var(--light-transparent); 53 | background-color: var(--dark); 54 | 55 | &:hover { 56 | color: var(--light); 57 | } 58 | } 59 | } 60 | } 61 | 62 | 63 | .editReport .metricsGroup .input-field .select-dropdown, .editReport .dimensionsGroup .input-field .select-dropdown { 64 | background-color: var(--darker) !important; 65 | } -------------------------------------------------------------------------------- /docs/faq.md: -------------------------------------------------------------------------------- 1 | ## FAQ 2 | 3 | ### Installation 4 | 5 | **How do I install this theme?** 6 | 7 | 1. Go to your Matomo Administration panel 8 | 2. Navigate to Marketplace > Themes 9 | 3. Search for "Dark Theme" 10 | 4. Click Install and then Activate 11 | 12 | Alternatively, download from GitHub and extract to your `plugins/` directory. 13 | 14 | **Is the theme active for all users?** 15 | 16 | Yes. When activated, the Dark Theme applies to all users on your Matomo instance. Individual users cannot switch between themes. 17 | 18 | **Which Matomo versions are supported?** 19 | 20 | Dark Theme 5.x supports Matomo 5.0 and later. For Matomo 4.x, use Dark Theme version 1.x. 21 | 22 | ### Compatibility 23 | 24 | **Does it work with Matomo plugins?** 25 | 26 | Yes. The theme is designed to work with official Matomo plugins including: 27 | - Tag Manager 28 | - Funnels 29 | - Heatmaps & Session Recording 30 | - AI Chats (ChatGPT, MistralAI) 31 | - Custom Reports 32 | - And more 33 | 34 | **Will it conflict with other themes?** 35 | 36 | No. Only one theme can be active at a time. The Dark Theme completely replaces the default styling without modifying any HTML structure. 37 | 38 | **Does it affect tracking or data collection?** 39 | 40 | No. This is a purely visual theme. It does not modify tracking code, data collection, or any Matomo functionality. 41 | 42 | ### Customization 43 | 44 | **Can I customize the colors?** 45 | 46 | Yes. The theme uses CSS custom properties. Create a custom stylesheet and override variables like: 47 | 48 | ```css 49 | :root { 50 | --primary: #your-color; 51 | --dark: #your-background; 52 | } 53 | ``` 54 | 55 | **Where are the style files located?** 56 | 57 | All styles are in the `stylesheets/` folder within the plugin directory. The main entry point is `theme.less`. 58 | 59 | **Can I modify specific components?** 60 | 61 | Yes. Components are organized in `stylesheets/components/`. Each file handles a specific UI element (buttons, modals, tables, etc.). 62 | 63 | ### Troubleshooting 64 | 65 | **Charts or maps don't look right** 66 | 67 | Clear your Matomo cache: 68 | 1. Go to Administration > System > General Settings 69 | 2. Click "Clear all caches" 70 | 71 | Or delete files in `tmp/assets/` directory. 72 | 73 | **Some elements still appear light** 74 | 75 | This might be a caching issue. Clear both Matomo cache and your browser cache. If the issue persists, please report it on GitHub. 76 | 77 | **The theme stopped working after a Matomo update** 78 | 79 | 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. 80 | 81 | ### Support & Contributing 82 | 83 | **How can I report a bug?** 84 | 85 | Open an issue on our [GitHub repository](https://github.com/openmost/DarkTheme/issues) with: 86 | - Matomo version 87 | - Dark Theme version 88 | - Browser and version 89 | - Screenshot of the issue 90 | 91 | **How can I contribute?** 92 | 93 | We welcome contributions! Fork the repository, make your changes following the component-based structure, and submit a pull request. 94 | 95 | **How long will this theme be maintained?** 96 | 97 | We actively use this theme on multiple production Matomo instances. We're committed to maintaining compatibility with new Matomo releases. 98 | 99 | **Can you create a custom theme for my company?** 100 | 101 | Yes! We offer custom theme development. Contact us at ronan@openmost.io or visit [openmost.io](https://openmost.io). 102 | -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- 1 | ## Documentation 2 | 3 | Dark Theme transforms your Matomo Analytics interface into a modern dark experience. This documentation covers the theme architecture and customization options. 4 | 5 | ### Theme Architecture 6 | 7 | The theme uses LESS preprocessing and is organized into modular components for maintainability: 8 | 9 | ``` 10 | stylesheets/ 11 | ├── theme.less # Main entry point 12 | ├── _variables.less # CSS custom properties 13 | └── components/ 14 | ├── _alert.less # Alerts and notifications 15 | ├── _button.less # Buttons and actions 16 | ├── _calendar.less # Date picker 17 | ├── _canvas.less # Charts (jqPlot) 18 | ├── _card.less # Cards and widgets 19 | ├── _dropdown.less # Dropdown menus 20 | ├── _form.less # Form inputs 21 | ├── _map.less # RealTimeMap & UserCountryMap 22 | ├── _modal.less # Modal dialogs 23 | ├── _nav.less # Navigation 24 | ├── _table.less # Data tables 25 | ├── _visits_log.less # Visitor log 26 | └── ... 27 | ``` 28 | 29 | ### CSS Variables 30 | 31 | The theme defines a comprehensive set of CSS custom properties in `_variables.less`: 32 | 33 | #### Color Scales 34 | 35 | **Light Scale** (for text and highlights): 36 | - `--light` - Pure white (#ffffff) 37 | - `--light-muted` - Slightly transparent white (85%) 38 | - `--light-transparent` - Semi-transparent (70%) 39 | - `--light-subtle` - Subtle text (50%) 40 | - `--light-dimmed` - Dimmed elements (30%) 41 | 42 | **Primary Scale** (brand/accent colors): 43 | - `--primary` - Main accent (#3450a3) 44 | - `--primary-light` - Hover states 45 | - `--primary-lighter` - Active states 46 | - `--primary-dark` - Pressed states 47 | - `--primary-subtle` - Backgrounds with accent 48 | 49 | **Dark Scale** (backgrounds): 50 | - `--dark-elevated` - Elevated surfaces 51 | - `--dark` - Card/widget backgrounds (#2b3138) 52 | - `--darker` - Page background (#202329) 53 | - `--darkest` - Deepest shadows 54 | 55 | #### Semantic Variables 56 | 57 | - **Borders**: `--border-light`, `--border-medium`, `--border-strong` 58 | - **Surfaces**: `--surface-base`, `--surface-raised`, `--surface-overlay` 59 | - **Text**: `--text-primary`, `--text-secondary`, `--text-tertiary` 60 | - **Status**: `--success`, `--warning`, `--danger`, `--info` 61 | 62 | ### Customizing Colors 63 | 64 | Override any CSS variable in your own stylesheet: 65 | 66 | ```css 67 | :root { 68 | --primary: #your-brand-color; 69 | --dark: #your-background-color; 70 | } 71 | ``` 72 | 73 | ### Chart Theming 74 | 75 | Charts use Matomo's color namespace system. The theme defines colors for: 76 | 77 | - `.sparkline-colors` - Sparkline graphs 78 | - `.bar-graph-colors` - Bar charts 79 | - `.pie-graph-colors` - Pie charts 80 | - `.evolution-graph-colors` - Line/evolution charts 81 | 82 | Each namespace defines background, series colors, grid lines, and labels. 83 | 84 | ### Map Theming 85 | 86 | Maps use dedicated color namespaces: 87 | 88 | - `.realtime-map-colors` - Real-time visitor map 89 | - `.visitor-map-colors` - User country/region maps 90 | 91 | These define country fills, boundaries, choropleth ranges, and tooltips. 92 | 93 | ### Contributing 94 | 95 | To contribute: 96 | 97 | 1. Fork the [GitHub repository](https://github.com/openmost/DarkTheme) 98 | 2. Follow the component-based structure 99 | 3. Test across different Matomo screens 100 | 4. Submit a pull request 101 | 102 | ### Credits 103 | 104 | - Theme by [Openmost](https://openmost.io) 105 | - Sparkline implementation inspired by [lw1.at](https://lw1.at) 106 | -------------------------------------------------------------------------------- /stylesheets/components/_segment_generator.less: -------------------------------------------------------------------------------- 1 | .segmentEditorPanel .segmentListContainer .segmentationContainer .submenu li:hover { 2 | color: var(--light); 3 | } 4 | 5 | .segmentationContainer .submenu ul li:hover { 6 | background-color: var(--darker); 7 | } 8 | 9 | #root .segmentEditorPanel { 10 | &.editing { 11 | background-color: var(--dark) !important; 12 | } 13 | } 14 | 15 | .segmentEditorPanel { 16 | .segmentListContainer { 17 | .segmentationContainer { 18 | .submenu { 19 | li { 20 | color: var(--light-transparent); 21 | } 22 | } 23 | } 24 | } 25 | } 26 | 27 | .segment-element { 28 | border: 1px solid var(--darker) !important; 29 | background-color: var(--darker) !important; 30 | 31 | .segment-top { 32 | color: var(--light); 33 | 34 | a.dropdown { 35 | color: var(--light-transparent) !important; 36 | } 37 | } 38 | 39 | .segment-content { 40 | .segment-generator { 41 | 42 | .segment-rows { 43 | border-color: #2e2e2e; 44 | 45 | .segment-row, 46 | .segment-add-or > div { 47 | background-color: var(--dark); 48 | border-color: var(--dark); 49 | color: var(--light-transparent); 50 | text-shadow: none; 51 | 52 | .segment-input { 53 | border-color: var(--dark); 54 | } 55 | } 56 | 57 | .segment-or { 58 | color: var(--light-transparent); 59 | background: var(--dark); 60 | text-shadow: none; 61 | 62 | &:before, &:after { 63 | border-color: var(--dark); 64 | } 65 | } 66 | 67 | .segment-add-or { 68 | background: var(--dark); 69 | } 70 | } 71 | 72 | .segment-and { 73 | color: var(--light-transparent); 74 | background: var(--darker); 75 | text-shadow: none; 76 | 77 | &:before, &:after { 78 | border-color: #2e2e2e; 79 | background: transparent; 80 | } 81 | } 82 | 83 | .segment-add-row { 84 | background-color: var(--dark); 85 | border-color: #2e2e2e; 86 | 87 | & > div { 88 | border-color: var(--dark); 89 | } 90 | } 91 | } 92 | } 93 | 94 | .segment-footer { 95 | border-color: var(--dark); 96 | background: var(--dark); 97 | } 98 | } 99 | 100 | .segmentFilterGroup { 101 | background-color: var(--darker); 102 | padding-bottom: 20px; 103 | } 104 | 105 | .segment-generator { 106 | 107 | .segment-rows { 108 | border-color: #2e2e2e; 109 | 110 | .segment-row, 111 | .segment-add-or > div { 112 | background-color: var(--dark); 113 | border-color: var(--dark); 114 | color: var(--light-transparent); 115 | text-shadow: none; 116 | 117 | .segment-input { 118 | border-color: var(--dark); 119 | } 120 | } 121 | 122 | .segment-or { 123 | color: var(--light-transparent); 124 | background: var(--dark); 125 | text-shadow: none; 126 | 127 | &:before, &:after { 128 | border-color: var(--dark); 129 | } 130 | } 131 | 132 | .segment-add-or { 133 | background: var(--dark); 134 | } 135 | } 136 | 137 | .segment-and { 138 | color: var(--light-transparent); 139 | background: var(--darker); 140 | text-shadow: none; 141 | 142 | &:before, &:after { 143 | border-color: #2e2e2e; 144 | background: transparent; 145 | } 146 | } 147 | 148 | .segment-add-row { 149 | background-color: var(--dark); 150 | border-color: #2e2e2e; 151 | 152 | & > div { 153 | border-color: var(--dark); 154 | } 155 | } 156 | } 157 | 158 | .segmentFilter { 159 | background-color: var(--darker); 160 | border: 1px solid var(--darker) !important; 161 | } 162 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## v5.2.1 4 | 5 | - Support AI Chats plugins (ChatGPT and MistralAI) 6 | 7 | ## v5.2.0 8 | 9 | ### Major Improvements 10 | - **Complete CSS Variable System**: Expanded color palette with light scale, primary scale, dark scale, borders, surfaces, text, and status colors 11 | - **Chart Theming**: Full jqPlot chart support using Matomo color namespaces (sparklines, bar graphs, pie charts, evolution graphs) 12 | - **Map Theming**: RealTimeMap and UserCountryMap with proper dark backgrounds and blue choropleth color scales 13 | - **Consistent UI**: Unified backgrounds across sidebar, cards, widgets, and modals 14 | 15 | ### Features 16 | - Added comprehensive color variables for easy customization 17 | - Implemented Matomo theming documentation standards for charts and maps 18 | - Added choropleth range colors for data visualization on maps 19 | - Added special metrics color scale for visitor maps 20 | - Improved modal header/body background consistency 21 | - Widget title now matches widget body background 22 | 23 | ### Fixes 24 | - Fixed chart canvas backgrounds to match card backgrounds 25 | - Fixed map country boundaries visibility on active countries 26 | - Fixed search input text visibility (white text on dark background) 27 | - Fixed action list timeline colors (darker than card background) 28 | - Fixed alert and notification border colors for better contrast 29 | - Fixed dropdown menu styling consistency 30 | - Fixed visitor log timeline styling 31 | 32 | ### Styling 33 | - Grid lines in charts now subtle gray instead of harsh black/white 34 | - Improved hover states across interactive elements 35 | - Better shadow definitions for depth perception 36 | - Refined border colors for visual hierarchy 37 | 38 | ## v5.1.1 39 | 40 | - matomo error: re-submit theme changes 41 | 42 | ## v5.1.0 43 | 44 | - fix: Dropdown search items color 45 | - update: Users invitation page 46 | 47 | ## v5.0.14 48 | 49 | - fix: comparison title color 50 | 51 | ## v5.0.13 52 | 53 | - update: Funnels plugin support 54 | 55 | ## v5.0.12 56 | 57 | - fix: visitor log exand text color 58 | 59 | ## v5.0.11 60 | 61 | - fix: profile icon 62 | 63 | ## v5.0.10 64 | 65 | - fix: Email text color and calendar active days 66 | 67 | ## v5.0.9 68 | 69 | - update: Support AI Chats plugin (ChatGPT and MistralAI) 70 | 71 | ## v5.0.8 72 | 73 | - update: marketplace cover 74 | 75 | ## v5.0.7 76 | 77 | - Update: Color scheme 78 | 79 | ## v5.0.6 80 | - Update documentation URL 81 | 82 | ## v5.0.5 83 | - Fix forgot password message box 84 | 85 | ## v5.0.4 86 | - Update Calendar, TagManager chip and CustomReport dimension selector 87 | 88 | ## v5.0.2 89 | - Set theme logo 90 | 91 | ## v5.0.0 92 | - Compatibility to Matomo 5.x 93 | - Start using semver for versioning 94 | 95 | ## v1.2.2 96 | - Fix profile name color 97 | 98 | ## v1.2.0 99 | - Fix TagManager debug input background color 100 | - Remove bold font-weight on navbar controls 101 | - Fix jqplot canvas popover inverted color 102 | - Fix segment comparator icon view 103 | - Fix TagManager version description textarea background color 104 | - Change notification background color 105 | - Set theme variables in PHP DarkTheme.php file 106 | 107 | ## v1.1.7 108 | - Fix dropdown in user permissions and capabilities 109 | - Fix form input while disabled 110 | - Fix demo page cards 111 | 112 | ## v1.1.6 113 | - Fix user profile icon contrast 114 | 115 | ## v1.1.5 116 | - Fix username text color in "Realtime Visitor" 117 | 118 | ## v1.1.4 119 | - Fix device icon in all pages 120 | - Fix Apple icon 121 | - Fix IOS icon 122 | 123 | ## v1.1.3 124 | - Fix device icon in real time visitor log 125 | - Fix date selector in "period" mode 126 | - Fix background color for collapsing navbar 127 | 128 | ## v1.1.0 129 | - Support for Matomo 4.x 130 | - Fix sidenav CSS 131 | - Fix chip CSS 132 | - Fix collection CSS (Tag Manager) 133 | 134 | ## v1.0.0 135 | - Refactoring calendar 136 | - Revert icon colors 137 | - Many patches 138 | 139 | ## v0.1.5 140 | - Updating dropdowns 141 | - Updating segment selector 142 | - Updating widget selector 143 | 144 | ## v0.1.4 145 | - Updating GitHub default repo 146 | - Major update incoming 147 | 148 | ## v0.1.0 149 | - Majors screen are done 150 | -------------------------------------------------------------------------------- /stylesheets/components/_canvas.less: -------------------------------------------------------------------------------- 1 | // ============================================= 2 | // Sparkline Colors 3 | // ============================================= 4 | .sparkline-colors { 5 | &[data-name="backgroundColor"] { color: #2b3138; } 6 | &[data-name="lineColor"] { color: #4a6fc7; } 7 | &[data-name="minPointColor"] { color: #a54545; } 8 | &[data-name="lastPointColor"] { color: #4a6fc7; } 9 | &[data-name="maxPointColor"] { color: #3d8b3d; } 10 | } 11 | 12 | // ============================================= 13 | // Bar Graph Colors 14 | // ============================================= 15 | .bar-graph-colors { 16 | &[data-name="grid-background"] { color: #2b3138; } 17 | &[data-name="grid-border"] { color: rgba(255, 255, 255, 0.15); } 18 | &[data-name="ticks"] { color: rgba(255, 255, 255, 0.15); } 19 | &[data-name="axes"] { color: rgba(255, 255, 255, 0.15); } 20 | &[data-name="axis"] { color: rgba(255, 255, 255, 0.15); } 21 | &[data-name="series1"] { color: #4a6fc7; } 22 | &[data-name="series2"] { color: #6b8fd9; } 23 | &[data-name="series3"] { color: #3d8b3d; } 24 | &[data-name="series4"] { color: #67b26f; } 25 | &[data-name="series5"] { color: #b8a22e; } 26 | &[data-name="series6"] { color: #e8d44d; } 27 | &[data-name="series7"] { color: #a54545; } 28 | &[data-name="series8"] { color: #d97070; } 29 | &[data-name="series9"] { color: #9b59b6; } 30 | &[data-name="series10"] { color: #c39bd3; } 31 | &[data-name="single-metric-label"] { color: #ffffff; } 32 | } 33 | 34 | // ============================================= 35 | // Pie Graph Colors 36 | // ============================================= 37 | .pie-graph-colors { 38 | &[data-name="grid-background"] { color: #2b3138; } 39 | &[data-name="series1"] { color: #4a6fc7; } 40 | &[data-name="series2"] { color: #3d8b3d; } 41 | &[data-name="series3"] { color: #b8a22e; } 42 | &[data-name="series4"] { color: #a54545; } 43 | &[data-name="series5"] { color: #9b59b6; } 44 | &[data-name="series6"] { color: #6b8fd9; } 45 | &[data-name="series7"] { color: #67b26f; } 46 | &[data-name="series8"] { color: #e8d44d; } 47 | &[data-name="series9"] { color: #d97070; } 48 | &[data-name="series10"] { color: #c39bd3; } 49 | &[data-name="single-metric-label"] { color: #ffffff; } 50 | } 51 | 52 | // ============================================= 53 | // Evolution Graph Colors (Line Charts) 54 | // ============================================= 55 | .evolution-graph-colors { 56 | &[data-name="grid-background"] { color: #2b3138; } 57 | &[data-name="grid-border"] { color: rgba(255, 255, 255, 0.15); } 58 | &[data-name="ticks"] { color: rgba(255, 255, 255, 0.15); } 59 | &[data-name="axes"] { color: rgba(255, 255, 255, 0.15); } 60 | &[data-name="axis"] { color: rgba(255, 255, 255, 0.15); } 61 | &[data-name="series1"] { color: #4a6fc7; } 62 | &[data-name="series2"] { color: #3d8b3d; } 63 | &[data-name="series3"] { color: #b8a22e; } 64 | &[data-name="series4"] { color: #a54545; } 65 | &[data-name="series5"] { color: #9b59b6; } 66 | &[data-name="series6"] { color: #6b8fd9; } 67 | &[data-name="series7"] { color: #67b26f; } 68 | &[data-name="series8"] { color: #e8d44d; } 69 | &[data-name="series9"] { color: #d97070; } 70 | &[data-name="series10"] { color: #c39bd3; } 71 | &[data-name="single-metric-label"] { color: #ffffff; } 72 | } 73 | 74 | // ============================================= 75 | // jqPlot UI Elements 76 | // ============================================= 77 | .jqplot-seriespicker-popover { 78 | border: 1px solid var(--border-light) !important; 79 | background-color: var(--surface-raised) !important; 80 | color: var(--text-primary) !important; 81 | box-shadow: var(--shadow-md) !important; 82 | } 83 | 84 | .jqplot-data-label, 85 | .jqplot-point-label { 86 | color: var(--text-primary) !important; 87 | } 88 | 89 | .jqplot-title { 90 | color: var(--text-primary) !important; 91 | } 92 | 93 | .jqplot-axis-tick, 94 | .jqplot-xaxis-tick, 95 | .jqplot-yaxis-tick, 96 | .jqplot-x2axis-tick, 97 | .jqplot-y2axis-tick { 98 | color: var(--text-secondary) !important; 99 | } 100 | 101 | .jqplot-table-legend { 102 | background-color: var(--surface-raised) !important; 103 | border: 1px solid var(--border-medium) !important; 104 | color: var(--text-primary) !important; 105 | } 106 | 107 | .jqplot-highlighter-tooltip { 108 | background-color: var(--surface-overlay) !important; 109 | border: 1px solid var(--border-light) !important; 110 | color: var(--text-primary) !important; 111 | box-shadow: var(--shadow-sm) !important; 112 | } 113 | 114 | // ============================================= 115 | // Chart Container Background (same as card) 116 | // ============================================= 117 | .jqplot-target, 118 | .piwik-graph, 119 | .matomo-graph { 120 | background-color: var(--surface-raised) !important; 121 | } 122 | 123 | // ============================================= 124 | // Grid Lines (Horizontal & Vertical Rules) 125 | // ============================================= 126 | 127 | // Grid canvas - just reduce opacity, don't invert 128 | .jqplot-grid-canvas, 129 | canvas.jqplot-grid-canvas { 130 | opacity: 0.2 !important; 131 | } 132 | 133 | // Axis lines styling 134 | .jqplot-yaxis, 135 | .jqplot-y2axis, 136 | .jqplot-xaxis, 137 | .jqplot-x2axis { 138 | .jqplot-axis-line { 139 | stroke: rgba(255, 255, 255, 0.2) !important; 140 | color: rgba(255, 255, 255, 0.2) !important; 141 | } 142 | } -------------------------------------------------------------------------------- /stylesheets/components/_map.less: -------------------------------------------------------------------------------- 1 | // Realtime Map Color Namespace 2 | .realtime-map-colors { 3 | &[data-name="map-background"] { color: #202329; } 4 | &[data-name="map-background-dark"] { color: #202329; } 5 | &[data-name="country-fill"] { color: #2b3138; } 6 | &[data-name="country-highlight"] { color: #3450a3; } 7 | &[data-name="country-stroke"] { color: #3a424d; } 8 | &[data-name="visit-stroke"] { color: rgba(255, 255, 255, 0.6); } 9 | &[data-name="widget-background"] { color: #202329; } 10 | &[data-name="widget-text"] { color: rgba(255, 255, 255, 0.7); } 11 | &[data-name="referrer-direct-entry"] { color: #4a90d9; } 12 | &[data-name="referrer-search-engine"] { color: #67b26f; } 13 | &[data-name="referrer-website"] { color: #f5a623; } 14 | &[data-name="referrer-campaign"] { color: #d64545; } 15 | &[data-name="referrer-social-network"] { color: #9b59b6; } 16 | } 17 | 18 | // Visitor Map Color Namespace - Blue shades for data visualization (darker tones) 19 | .visitor-map-colors { 20 | // Background - use our darkest 21 | &[data-name="map-background"] { color: #202329; } // --darker 22 | 23 | // Countries without data - default dark color 24 | &[data-name="country-fill"] { color: #2b3138; } // --dark 25 | &[data-name="country-stroke"] { color: #3a424d; } // --dark-elevated (boundary) 26 | 27 | // Countries with data - darker blue fill with boundary 28 | &[data-name="country-fill-active"] { color: #283d7a; } // --primary-dark 29 | &[data-name="country-highlight-fill"] { color: #3450a3; } // --primary 30 | &[data-name="country-highlight-stroke"] { color: #3a424d; } // boundary visible 31 | 32 | // Regions with data 33 | &[data-name="region-fill"] { color: #283d7a; } // --primary-dark 34 | &[data-name="region-stroke"] { color: #3a424d; } // boundary 35 | 36 | // Cities 37 | &[data-name="city-fill"] { color: #4a6fc7; } // --primary-light 38 | &[data-name="city-stroke"] { color: #ffffff; } 39 | &[data-name="city-highlight-fill"] { color: #3450a3; } // --primary 40 | &[data-name="city-label"] { color: rgba(255, 255, 255, 0.9); } 41 | 42 | // Blue gradient for metrics scale - DARKER tones (low data = medium blue, high data = dark blue) 43 | &[data-name="special-metrics-color-scale-1"] { color: #3a5a8a; } // Low data - medium dark blue 44 | &[data-name="special-metrics-color-scale-2"] { color: #334d7a; } 45 | &[data-name="special-metrics-color-scale-3"] { color: #2c4068; } 46 | &[data-name="special-metrics-color-scale-4"] { color: #243356; } 47 | &[data-name="special-metrics-color-scale-5"] { color: #1a2540; } // High data - very dark blue 48 | 49 | // Blue gradient for choropleth - DARKER tones 50 | &[data-name="choropleth-range-1"] { color: #3a5a8a; } // Low data - medium dark blue 51 | &[data-name="choropleth-range-2"] { color: #334d7a; } 52 | &[data-name="choropleth-range-3"] { color: #2c4068; } 53 | &[data-name="choropleth-range-4"] { color: #243356; } 54 | &[data-name="choropleth-range-5"] { color: #1a2540; } // High data - very dark blue 55 | 56 | // Selection and labels 57 | &[data-name="selection-stroke"] { color: #ffffff; } 58 | &[data-name="label-color"] { color: rgba(255, 255, 255, 0.9); } 59 | 60 | // Tooltip 61 | &[data-name="tooltip-background"] { color: #2b3138; } 62 | &[data-name="tooltip-text"] { color: rgba(255, 255, 255, 0.9); } 63 | } 64 | 65 | .RealTimeMap { 66 | background-color: var(--darker) !important; 67 | 68 | .realTimeMap_overlay { 69 | text-shadow: none !important; 70 | background-color: rgba(32, 35, 41, 0.9) !important; 71 | color: var(--light) !important; 72 | } 73 | 74 | .realTimeMap_datetime { 75 | color: var(--light-transparent) !important; 76 | } 77 | 78 | path { 79 | fill: var(--dark) !important; 80 | stroke: #3a424d !important; 81 | } 82 | 83 | .land { 84 | fill: var(--dark) !important; 85 | } 86 | 87 | .ocean, .sea, .water { 88 | fill: var(--darker) !important; 89 | } 90 | 91 | text { 92 | fill: var(--light-transparent) !important; 93 | } 94 | } 95 | 96 | .UserCountryMap { 97 | background-color: var(--darker) !important; 98 | 99 | .tableIcon.activeIcon { 100 | background-color: transparent !important 101 | } 102 | } 103 | 104 | .UserCountryMap_map { 105 | background-color: var(--darker) !important; 106 | 107 | svg { 108 | background-color: var(--darker) !important; 109 | 110 | // Background elements 111 | .bg, .background { 112 | fill: var(--darker) !important; 113 | } 114 | 115 | // Context (surrounding areas) - dark fill 116 | .context, 117 | .context-clickable { 118 | fill: var(--dark) !important; 119 | stroke: var(--dark-elevated) !important; 120 | } 121 | 122 | // All country/region boundaries - always visible 123 | .countries, 124 | .regions, 125 | .countries path, 126 | .regions path { 127 | stroke: var(--dark-elevated) !important; 128 | stroke-width: 0.5px !important; 129 | } 130 | 131 | // Countries with data (active) - blue fill with visible boundary 132 | .countries[fill], 133 | .regions[fill], 134 | path[fill] { 135 | stroke: var(--dark-elevated) !important; 136 | stroke-width: 0.5px !important; 137 | } 138 | 139 | // Countries without data - default dark color 140 | .countries:not([fill]), 141 | .regions:not([fill]) { 142 | fill: var(--dark); 143 | stroke: var(--dark-elevated) !important; 144 | } 145 | 146 | // Context without fill 147 | .context[fill="none"], 148 | .context-clickable[fill="none"] { 149 | fill: var(--dark) !important; 150 | } 151 | 152 | // Background regions 153 | .regionBG, 154 | .countryBG { 155 | stroke: var(--dark-elevated) !important; 156 | fill: var(--darker) !important; 157 | } 158 | 159 | // Hover state - brighter with visible boundary 160 | .country:hover, 161 | .region:hover { 162 | fill: var(--primary-light) !important; 163 | stroke: var(--primary-lighter) !important; 164 | stroke-width: 1px !important; 165 | } 166 | 167 | // Labels 168 | text { 169 | fill: var(--dark) !important; 170 | } 171 | } 172 | } 173 | 174 | .UserCountryMap-overlay { 175 | background-color: var(--surface-raised) !important; 176 | border: 1px solid var(--border-light) !important; 177 | box-shadow: var(--shadow-md) !important; 178 | color: var(--text-primary) !important; 179 | 180 | .content { 181 | background-color: var(--surface-raised) !important; 182 | } 183 | } 184 | 185 | .UserCountryMap-title { 186 | background-color: var(--surface-overlay) !important; 187 | color: var(--text-primary) !important; 188 | border-bottom: 1px solid var(--border-medium) !important; 189 | } 190 | 191 | .UserCountryMap-legend { 192 | background-color: var(--surface-raised) !important; 193 | border: 1px solid var(--border-light) !important; 194 | box-shadow: var(--shadow-sm) !important; 195 | 196 | .content { 197 | background: var(--surface-raised) !important; 198 | color: var(--text-secondary) !important; 199 | } 200 | 201 | .legend-item { 202 | color: var(--text-secondary) !important; 203 | } 204 | 205 | .title { 206 | color: var(--text-primary) !important; 207 | } 208 | } 209 | 210 | .UserCountryMap-info { 211 | background-color: var(--surface-raised) !important; 212 | color: var(--text-primary) !important; 213 | border: 1px solid var(--border-light) !important; 214 | box-shadow: var(--shadow-sm) !important; 215 | } 216 | 217 | .UserCountryMap-tooltip { 218 | background-color: var(--surface-overlay) !important; 219 | color: var(--text-primary) !important; 220 | border: 1px solid var(--border-light) !important; 221 | box-shadow: var(--shadow-md) !important; 222 | } 223 | 224 | .dataTableFooterNavigation { 225 | .select-wrapper:hover { 226 | background-color: var(--darker) !important; 227 | } 228 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------