diff --git a/core/modules/system/lib/Drupal/system/Plugin/Derivative/ThemeLocalTask.php b/core/modules/system/lib/Drupal/system/Plugin/Derivative/ThemeLocalTask.php
index da6910d..75be186 100644
--- a/core/modules/system/lib/Drupal/system/Plugin/Derivative/ThemeLocalTask.php
+++ b/core/modules/system/lib/Drupal/system/Plugin/Derivative/ThemeLocalTask.php
@@ -19,7 +19,7 @@ class ThemeLocalTask extends DerivativeBase {
    */
   public function getDerivativeDefinitions($base_plugin_definition) {
     foreach (list_themes() as $theme_name => $theme) {
-      if ($theme->status) {
+      if ($theme->status && empty($theme->info['hidden'])) {
         $this->derivatives[$theme_name] = $base_plugin_definition;
         $this->derivatives[$theme_name]['title'] = $theme->info['name'];
         $this->derivatives[$theme_name]['route_parameters'] = array('theme' => $theme_name);
