A RichTextPanel class for UI that matches words like "non-explosion" and variations and applies a custom text color. It derives from RichTextBase and sets the Color property; other style overrides are present but commented out.
using Sandbox;
[RichTextPanel( @"\bnon-([Ee]xplod(e|ing)|[Ee]xplosi(on|ves?))\b" )]
public class RichTextNonExplosion : RichTextBase
{
public override Color Color => new Color( 0.6f, 0.4f, 0.2f );
//public override float? TextShadowBlur => 3f;
//public override Color? TextShadowColor => (new Color( 0.85f, 0.65f, 0f )).Saturate( 2f ).WithAlpha( 2f );
//public override float? TextShadowOffsetY => -2f;
//public override int? FontWeight => 900;
//public override float? TextStrokeWidth => 3f;
//public override Color? TextStrokeColor => Color.Black;
}