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
-
Go to Settings -> Knowledge base site -> Custom CSS & JavaScript, and Custom CSS tab is the default section
-
Paste the below CSS snippet in the window
mark {
background-color: green;
color: white;
}
- Update the desired color in the above snippet
In the above sample snippet, it is green. You can customize it with your desired color.
- Click Save