MudForge.WebAssembly 1.0.1

dotnet add package MudForge.WebAssembly --version 1.0.1
                    
NuGet\Install-Package MudForge.WebAssembly -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MudForge.WebAssembly" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MudForge.WebAssembly" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="MudForge.WebAssembly" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MudForge.WebAssembly --version 1.0.1
                    
#r "nuget: MudForge.WebAssembly, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MudForge.WebAssembly@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MudForge.WebAssembly&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=MudForge.WebAssembly&version=1.0.1
                    
Install as a Cake Tool

MudForge.WebAssembly ๐Ÿ”จ

MIT License
nuget

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.Server with 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 160 4/26/2025
1.0.0 197 4/12/2025