function disableThemesDirective() {
  themeConfig.disableTheming = true;

  // Return a 1x-only, first-match attribute directive
  return {
    restrict : 'A',
    priority : '900'
  };
}
Special directive that will disable ALL runtime Theme style generation and DOM injection

<link rel="stylesheet" href="angular-material.min.css">
<link rel="stylesheet" href="angular-material.themes.css">

<body md-themes-disabled>
 ...
</body>

Note: Using md-themes-css directive requires the developer to load external
theme stylesheets; e.g. custom themes from Material-Tools:

      `angular-material.themes.css`

Another option is to use the ThemingProvider to configure and disable the attribute
conversions; this would obviate the use of the `md-themes-css` directive