MudBlazor / ThemeManager

ThemeManager built to showcase MudBlazor theming.
MIT License
209 stars 60 forks source link

MudBlazor

Theme Manager / Generator for MudBlazor

GitHub Twitter Nuget version Discord

Blazor Theme Manager component for MudBlazor library. Can be used live or during development to fast and easy try out different theme settings.

This component is currently not suitable for production applications, be ready for performance issues, bugs and missing features. Feel free to help improve it.

Workflow

caption

Prerequisites

void OpenThemeManager(bool value) { _themeManagerOpen = value; }

void UpdateTheme(ThemeManagerTheme value) { _themeManager = value; StateHasChanged(); }

protected override void OnInitialized() { StateHasChanged(); }

Connect the ThemeManagerTheme with `MudThemeProvider` to control all the theme colors. You can also connect `MudAppBar` and `MudDrawer` directly.
```html
<MudThemeProvider Theme="_themeManager.Theme" />
<MudAppBar Elevation="_themeManager.AppBarElevation">
<MudDrawer @bind-Open="_drawerOpen" ClipMode="_themeManager.DrawerClipMode" Elevation="_themeManager.DrawerElevation">