Theme Customization

Colors

HtmlForgeX provides 30+ named colors through the TablerColor enum:

TablerColor.Red
TablerColor.Blue
TablerColor.Green
TablerColor.Orange
TablerColor.Purple
TablerColor.Primary
TablerColor.Success
TablerColor.Warning
TablerColor.Danger
TablerColor.Info

RGB Colors

For custom colors, use the RGBColor class:

new RGBColor(255, 128, 0)    // Orange
new RGBColor("#FF8000")       // From hex

Semantic Colors

Semantic colors map to theme-appropriate values:

  • Primary — Main brand color
  • Success — Positive actions/status
  • Warning — Caution indicators
  • Danger — Errors and destructive actions
  • Info — Informational content