Since Material CSS is based on a Bootstrap you only need to change the CSS and JS sources. The code in Imports.razor will stay the same as in the Bootstrap.


1. Nuget packages

First step is to install a Material provider for Blazorise:

Install-Package Blazorise.Material

You also need to install the icon package:

Install-Package Blazorise.Icons.Material

2. Download CSS

Material CSS is not available through the CDN so you must download it yourself from daemonite web page. After the download is finished just must extract the CSS and JS to the wwwroot folder inside of you Blazor project.

The folder structure should be:

└── wwwroot/
    ├── css/
    └── js/

3. Source files

The next step is to change your index.html or _Host.cshtml file and include the css and js source files:

<!-- Material CSS -->
<link href="css/material.min.css" rel="stylesheet">

<!-- Add Material font (Roboto) and Material icon as needed -->
<link href=",300i,400,400i,500,500i,700,700i|Roboto+Mono:300,400,700|Roboto+Slab:300,400,700" rel="stylesheet">
<link href="" rel="stylesheet">

<link href="_content/Blazorise/blazorise.css" rel="stylesheet" />
<link href="_content/Blazorise.Material/blazorise.material.css" rel="stylesheet" />

<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Material JS -->
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src="js/material.min.js"></script>

<script src="_content/Blazorise/blazorise.js"></script>
<script src="_content/Blazorise.Material/blazorise.material.js"></script>

Note: When Blazor project is created it will also include it’s own Bootstrap and FontAwesome files that can sometime be of older versions. To ensure we’re using the appropriate bootstrap and FontAwesome files, you need remove them or replace them with the links from above. If you forget to remove them it’s possible that some components will not work as expected.

4. Using’s

In your main _Imports.razor add:

@using Blazorise

5. Registrations

Finally in the Startup.cs you must tell the Blazor to register Material provider and extensions:

using Blazorise;
using Blazorise.Material;
using Blazorise.Icons.Material;

public void ConfigureServices( IServiceCollection services )
    .AddBlazorise( options =>
      options.ChangeTextOnKeyPress = true;
    } ) // from v0.6.0-preview4

5.a Blazor WebAssembly

public void Configure( IComponentsApplicationBuilder app )

  app.AddComponent<App>( "app" );

5.b Blazor Server

public void Configure( IComponentsApplicationBuilder app )

  app.UseEndpoints( endpoints =>
      endpoints.MapFallbackToPage( "/_Host" );
  } );