Class TwBlazorColor
- Namespace
- TwBlazor.Configuration
- Assembly
- TwBlazor.dll
Shared color configuration used across all components: text, hover, focus, border, background, and surface colors.
[ExcludeFromCodeCoverage]
public class TwBlazorColor
- Inheritance
-
TwBlazorColor
- Inherited Members
Constructors
TwBlazorColor()
public TwBlazorColor()
Properties
DarkBackground
Gets or sets the background color palette, by weight (light/medium/dark), for dark mode.
public TwBackgroundColor DarkBackground { get; set; }
Property Value
DarkTextColors
Gets or sets the color palette for dark-mode text colors, by weight (light/medium/dark).
public TwTextColor DarkTextColors { get; set; }
Property Value
FocusColors
Gets or sets the color palette applied to the focus ring for both light and dark modes.
public TwBlazorPalette FocusColors { get; set; }
Property Value
FocusRingBase
Gets or sets the base classes for the focus ring applied to focusable elements.
public string FocusRingBase { get; set; }
Property Value
HoverColors
Gets or sets the color palette applied on hover for both light and dark modes.
public TwBlazorPalette HoverColors { get; set; }
Property Value
LightBackground
Gets or sets the background color palette, by weight (light/medium/dark), for light mode.
public TwBackgroundColor LightBackground { get; set; }
Property Value
NeutralSurface
Gets or sets the shared neutral (gray-scale) surface tokens - card/dialog backgrounds, dividing borders, and hover tints - reused across components that aren't tied to a semantic color. See TwSurfacePalette.
public TwSurfacePalette NeutralSurface { get; set; }
Property Value
NeutralText
Gets or sets the shared neutral (gray-scale) text tokens - default body/heading text and its quieter variants - reused across components that aren't tied to a semantic color. See TwNeutralTextPalette.
public TwNeutralTextPalette NeutralText { get; set; }
Property Value
SurfaceColors
Gets or sets the color palette for button surface variants (filled, text, outlined).
public TwSurfaceColor SurfaceColors { get; set; }
Property Value
TextColors
Gets or sets the color palette for light-mode text colors, by weight (light/medium/dark).
public TwTextColor TextColors { get; set; }
Property Value
Transparent
Gets or sets the shared "bg-transparent" class, reused anywhere a transparent background is needed (e.g. outlined/text button and surface variants) instead of retyping the literal class.
public string Transparent { get; set; }