Table of Contents

Class TwNeutralTextPalette

Namespace
TwBlazor.Configuration.Color
Assembly
TwBlazor.dll

Neutral (gray-scale, non-semantic) text tokens shared across components for body/heading text and its muted variants. Unlike TwTextColor/TwBlazorPalette (a distinct color per semantic role - primary, danger, etc.), every property here is a single reusable class string already covering both light and dark mode, sized by prominence so components that just need "the" default text color, or one of its quieter variants, reference one of these instead of retyping the same literal classes (and occasionally drifting to a slightly different gray shade).

[ExcludeFromCodeCoverage]
public class TwNeutralTextPalette
Inheritance
TwNeutralTextPalette
Inherited Members

Remarks

Add more weights here as new components need them. Each stays a single string property so the full class names remain visible to Tailwind's content scanner, which can't see classes assembled only at runtime from a compiled DLL.

Constructors

TwNeutralTextPalette()

public TwNeutralTextPalette()

Properties

Heading

Gets or sets the default body/heading text color - the highest-contrast neutral text (e.g. text-gray-950 dark:text-white).

public string Heading { get; set; }

Property Value

string

Muted

Gets or sets a muted text color for form labels and captions (e.g. text-gray-600 dark:text-gray-400).

public string Muted { get; set; }

Property Value

string

Secondary

Gets or sets a secondary text color, one step quieter than Heading - used for legends and supporting copy (e.g. text-gray-700 dark:text-gray-300).

public string Secondary { get; set; }

Property Value

string

Subtle

Gets or sets the quietest text color, for icons, separators, and other decorative or low-emphasis text (e.g. text-gray-500 dark:text-gray-400).

public string Subtle { get; set; }

Property Value

string