MaterialSymbolsRounded.Web 1.0.7

dotnet add package MaterialSymbolsRounded.Web --version 1.0.7
                    
NuGet\Install-Package MaterialSymbolsRounded.Web -Version 1.0.7
                    
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="MaterialSymbolsRounded.Web" Version="1.0.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MaterialSymbolsRounded.Web" Version="1.0.7" />
                    
Directory.Packages.props
<PackageReference Include="MaterialSymbolsRounded.Web" />
                    
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 MaterialSymbolsRounded.Web --version 1.0.7
                    
#r "nuget: MaterialSymbolsRounded.Web, 1.0.7"
                    
#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 MaterialSymbolsRounded.Web@1.0.7
                    
#: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=MaterialSymbolsRounded.Web&version=1.0.7
                    
Install as a Cake Addin
#tool nuget:?package=MaterialSymbolsRounded.Web&version=1.0.7
                    
Install as a Cake Tool

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 CSS class to integrate icons into your web pages.
  • Seamless integration into C# - Razor projects.

Installation

  1. Install the Material Symbols Rounded for Web NuGet package:
Install-Package MaterialSymbolsRounded.Web
  1. 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 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.
  • 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.

Version Downloads Last Updated
1.0.7 142 9/29/2024
1.0.6 117 9/28/2024
1.0.5 119 9/28/2024