@inherits LayoutComponentBase
@using MudBlazor

<MudThemeProvider Theme="@_myCustomTheme" IsDarkMode="true" />
<MudDialogProvider />
<MudSnackbarProvider />

<MudLayout>
    <MudMainContent>
        @Body
    </MudMainContent>
</MudLayout>

@code {
    private MudTheme _myCustomTheme = new MudTheme()
    {
        Typography = new Typography()
        {
            // Hier liegt der Fix: DefaultTypography statt Default
            Default = new DefaultTypography() { FontFamily = new[] { "Urbanist", "sans-serif" } }
        },
        LayoutProperties = new LayoutProperties()
        {
            DefaultBorderRadius = "0px" 
        }
    };
}

<div id="blazor-error-ui" data-nosnippet>
    An unhandled error has occurred.
    <a href="." class="reload">Reload</a>
    <span class="dismiss">🗙</span>
</div>
