MudForge.WebAssembly
1.0.1
dotnet add package MudForge.WebAssembly --version 1.0.1
NuGet\Install-Package MudForge.WebAssembly -Version 1.0.1
<PackageReference Include="MudForge.WebAssembly" Version="1.0.1" />
<PackageVersion Include="MudForge.WebAssembly" Version="1.0.1" />
<PackageReference Include="MudForge.WebAssembly" />
paket add MudForge.WebAssembly --version 1.0.1
#r "nuget: MudForge.WebAssembly, 1.0.1"
#:package MudForge.WebAssembly@1.0.1
#addin nuget:?package=MudForge.WebAssembly&version=1.0.1
#tool nuget:?package=MudForge.WebAssembly&version=1.0.1
MudForge.WebAssembly ๐จ
MudForge.WebAssembly is an open-source theming library for Blazor WebAssembly, built on top of MudBlazor.
It enables developers to quickly implement a customizable Dark/Light Mode switch with persistent settings stored in localStorage.
๐จ Features
- โ Seamless Light/Dark Mode theming for Blazor WebAssembly apps
- โ Easy integration with MudBlazor
- โ
Persistent theme settings using
localStorage - โ๏ธ Minimal setup with full control over theme configuration
- โ Server-side support: Coming Soon (
MudForge.Serverwith Cookie support)
โ ๏ธ Important: You must install and configure MudBlazor before using this package.
๐งช Example
The following example demonstrates how to toggle between Light and Dark Mode using MudThemeService. When the user clicks the button, the theme is updated in real-time, and the preference is automatically saved to the browser's localStorage. On the next page reload or application restart, MudForge reads the saved preference and restores the selected theme before the UI renders โ ensuring a consistent user experience. โถ๏ธ Watch example video
๐ฆ Installation
Using .NET CLI
dotnet add package MudForge.WebAssembly
Using Visual Studio / Rider
- Right-click your project > Manage NuGet Packages
- Search for MudForge.WebAssembly
- Click Install
๐ Full Documentation
For advanced usage, theming tips, and server support roadmap, see:
๐ GitHub Repository: MudForge on GitHub
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Blazored.LocalStorage (>= 4.5.0)
- MudBlazor (>= 8.5.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.