API Reference
Enum
TablerColor
Defines the standard Tabler color palette.
Inheritance
- Enum
- TablerColor
Inherited Methods
public override sealed Int32 CompareTo(Object target) #Returns:
Int32Inherited from Enum
Parameters
- target Object
public override sealed String ToString(String format, IFormatProvider provider) #Returns:
StringInherited from Enum
Obsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format String
Values
public const TablerColor Secondary #HexColor("#64748B")Secondary (neutral accent used by Tabler utilities like bg-secondary(-lt)).
Value:
53Extension Methods
public static String ToCssRgb(TablerColor color) #Returns:
StringReturns the RGB component triplet for CSS custom properties (for example 87, 146, 214).
Parameters
- color HtmlForgeX.TablerColor
public static String ToHex(TablerColor color) #Returns:
StringReturns the hexadecimal color code for the given TablerColor.
Parameters
- color HtmlForgeX.TablerColor
public static String ToTablerAlert(TablerColor color) #Returns:
StringConverts TablerColor to TablerAlert. Note: not all colors are valid for alerts.
Parameters
- color HtmlForgeX.TablerColor
- The color.
public static String ToTablerBackground(TablerColor color) #Returns:
StringInitializes or configures ToTablerBackground.
Parameters
- color HtmlForgeX.TablerColor
public static TablerBadgeColor ToTablerBadgeColor(TablerColor color) #Returns:
TablerBadgeColorConverts a TablerColor into the closest TablerBadgeColor.
Parameters
- color HtmlForgeX.TablerColor
public static String ToTablerStatus(TablerColor color) #Returns:
StringInitializes or configures ToTablerStatus.
Parameters
- color HtmlForgeX.TablerColor
public static String ToTablerSteps(TablerColor color) #Returns:
StringInitializes or configures ToTablerSteps.
Parameters
- color HtmlForgeX.TablerColor
public static String ToTablerString(TablerColor color) #Returns:
StringInitializes or configures ToTablerString.
Parameters
- color HtmlForgeX.TablerColor
public static String ToTablerText(TablerColor color) #Returns:
StringInitializes or configures ToTablerText.
Parameters
- color HtmlForgeX.TablerColor