MaterialSymbolsOutlined.Web
1.0.6
See the version list below for details.
dotnet add package MaterialSymbolsOutlined.Web --version 1.0.6
NuGet\Install-Package MaterialSymbolsOutlined.Web -Version 1.0.6
<PackageReference Include="MaterialSymbolsOutlined.Web" Version="1.0.6" />
<PackageVersion Include="MaterialSymbolsOutlined.Web" Version="1.0.6" />
<PackageReference Include="MaterialSymbolsOutlined.Web" />
paket add MaterialSymbolsOutlined.Web --version 1.0.6
#r "nuget: MaterialSymbolsOutlined.Web, 1.0.6"
#:package MaterialSymbolsOutlined.Web@1.0.6
#addin nuget:?package=MaterialSymbolsOutlined.Web&version=1.0.6
#tool nuget:?package=MaterialSymbolsOutlined.Web&version=1.0.6
Material Symbols Outlined for Web
Material Symbols Outlined 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.csclass with predefined constants for every icon in the Material Symbols set. - Uses a simple
<span>or<i>tag with CSSclassto integrate icons into your web pages. - Seamless integration into
C# - Razorprojects.
Installation
- Install the Material Symbols Outlined for Web NuGet package:
Install-Package MaterialSymbolsOutlined.Web
- After adding the NuGet package to your project, include the CSS file in your project's
headtag:
<link href="_content/MaterialSymbolsOutlined.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 MaterialSymbolsOutlined.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.
Improving the CSS for Icon Appearance
Here's a revised version of the CSS with more descriptive comments:
.ms-outlined {
font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 30;
font-size: 100px;
color: red;
}
Key points about the CSS:
.ms-outlinedis a class selector that targets elements with the class ms-outlined.font-variation-settingsis used to customize various aspects of the icon's appearance:FILLcontrols the fill style (0 for outlined, 1 for filled).wghtsets the weight (thickness) of the icon.GRADdetermines the gradient style (0 for no gradient, 1 for rounded, 2 for outlined).opszsets the optical size of the icon.
For more information please visit: https://m3.material.io/
By applying this CSS to elements with the ms-outlined 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.