Marqdouj.HtmlCommon 8.0.4

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

HTML Common

The NuGet package can be found here

Demo

  • A demo of this and some of my other NuGet packages can be found here

Current Features

  • HTML color name enum and extensions.
    • HtmlColorNameCollection. Useful as the Items source for Lists and Dropdowns, etc. Allows for optionally including an item with a 'null' value to the start of the list to represent 'none' or 'not selected'.
    • Check out the ColorPicker component in my FluentUI NuGet package.
  • CSS helper class.
    • Create unique CSS IDs using Guid.

Release Notes

8.0.4

  • Updated ReadMe

8.0.3

  • HtmlColorNameListItem changes.
    • Name and Hex return value was changed from string? to string.
    • ToString() override now returns Name.

8.0.2

  • Added HtmlColorNameCollection

8.0.1

  • Added CssHelper class
    • Create unique CSS IDs using Guid
      • Example usage: private readonly string cssId = Guid.NewGuid().ToCssId();

8.0.0

  • Added HtmlColorName Enum to represent HTML Named Colors.
    • Supports all 140 HTML colors based on w3schools and w3.org.
    • Includes a ToHex extension method that returns the Html Hex string.
      • Example usage: HtmlColorName.AliceBlue.ToHex() returns "#F0F8FF".
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 (2)

Showing the top 2 NuGet packages that depend on Marqdouj.HtmlCommon:

Package Downloads
Marqdouj.FluentUI

Helper components based on https://www.fluentui-blazor.net/

Marqdouj.HtmlComponents.FluentUI

Custom components based on https://www.fluentui-blazor.net/

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.4 101 6/8/2025
8.0.3 135 6/5/2025
8.0.2 131 6/4/2025
8.0.1 134 6/3/2025
8.0.0 140 6/1/2025