When you have enabled the highlight matching search keyword in the articles option, the search keywords present in the article will be highlighted. By default, the search keyword color would be Yellow. You can customize the highlighted search keywords color in articles as per your requirement. The below action will change the color of the highlighted search keywords in the article for both light/dark modes.

Solution

1_Screenshot-highlighted_search_result_color_in_articles.png

  1. Go to Settings -> Knowledge base site -> Custom CSS & JavaScript, and Custom CSS tab is the default section

  2. Paste the below CSS snippet in the window

mark { 
background-color: green; 
color: white; 
}

  1. Update the desired color in the above snippet

In the above sample snippet, it is green. You can customize it with your desired color.

  1. Click Save

Outcome

2_Screenshot-Highlight_color_changed.png