Material Theme

This is an implementation of the Material Theme for the Uranium UI. Visit Material Design Guideline for more information.

Installation

  • Install the UraniumUI.Material NuGet package.

  • Go to MauiProgram.cs and call UseUraniumUIMaterial() method in builder chain.

    builder
        .UseMauiApp<App>()
        .UseUraniumUI()
        .UseUraniumUIMaterial() // 👈 This line should be added.
        .ConfigureFonts(fonts =>
        {
            fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
            fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
        });
    

Order of calling UseUraniumUI() and UseUraniumUIMaterial() is not important. But both should be called.

In this document