MaterialSymbolsRounded.Web
1.0.7
dotnet add package MaterialSymbolsRounded.Web --version 1.0.7
NuGet\Install-Package MaterialSymbolsRounded.Web -Version 1.0.7
<PackageReference Include="MaterialSymbolsRounded.Web" Version="1.0.7" />
<PackageVersion Include="MaterialSymbolsRounded.Web" Version="1.0.7" />
<PackageReference Include="MaterialSymbolsRounded.Web" />
paket add MaterialSymbolsRounded.Web --version 1.0.7
#r "nuget: MaterialSymbolsRounded.Web, 1.0.7"
#:package MaterialSymbolsRounded.Web@1.0.7
#addin nuget:?package=MaterialSymbolsRounded.Web&version=1.0.7
#tool nuget:?package=MaterialSymbolsRounded.Web&version=1.0.7
Material Symbols Rounded for Web
Material Symbols Rounded for Web is a NuGet package that provides a simple way to add Google's Material Symbols icons to your C# web applications. It is designed primarily for Blazor applications, allowing you to easily manage and use icons via constants in the AppIcons.cs
class.
Features
- Provides a complete set of Material Symbols icons.
- Includes an
AppIcons.cs
class with predefined constants for every icon in the Material Symbols set. - Uses a simple
<span>
or<i>
tag with CSSclass
to integrate icons into your web pages. - Seamless integration into
C# - Razor
projects.
Installation
- Install the Material Symbols Rounded for Web NuGet package:
Install-Package MaterialSymbolsRounded.Web
- After adding the NuGet package to your project, include the CSS file in your project's
head
tag:
<link href="_content/MaterialSymbolsRounded.Web/icons.css" rel="stylesheet" />
Now you can start using icons in your application. Simply reference the icons using the AppIcons constants. For example:
@using MaterialSymbolsRounded.Web
<span class="@AppIcons.HOME"></span>
<span class="@AppIcons.HOME"></span>
<span class="@AppIcons.HOME_AND_GARDEN"></span>
<span class="@AppIcons.SUPERVISED_USER_CIRCLE_OFF"></span>
Important: All icon names are written in UPPERCASE. Please ensure that you use uppercase letters when referencing icons in your project.
How to change Icon Appearance ?
.ms-rounded {
font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 30;
font-size: 100px;
color: red;
}
Key points about the CSS:
.ms-rounded
is a class selector that targets elements with the class ms-rounded.font-variation-settings
is used to customize various aspects of the icon's appearance:FILL
controls the fill style (0 for outlined, 1 for filled).wght
sets the weight (thickness) of the icon.GRAD
determines the gradient style (0 for no gradient, 1 for rounded, 2 for rounded).opsz
sets the optical size of the icon.
For more information please visit: https://m3.material.io/
By applying this CSS to elements with the ms-rounded class, you can customize the appearance of Material Icons to your liking.
Contributions
Contributions and feedback are welcome. If you encounter any issues, feel free to open an issue 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
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.