You can use the Light or Dark option at the top of the article to change the theme. If you want to enable the Dark by default, you can use the below solution.

By default, all articles would be in Light mode.

Solution

1_Screenshot-keep_dark_mode_Js_code.png

  1. Go to Settings -> Knowledge base site -> Custom CSS & JavaScript, and Custom JavaScript

  2. Paste the below JavaScript snippet in the window

$(document).ready(function() {

setTimeout(function() { document.getElementById('darkTheme').click(); }, 100); 
});
  1. Click Save

  2. Now, all the articles on your site appear in dark mode by default. However, the user can switch to light mode with the Light option at the top of the article

  3. If you want the user to view only in dark mode, you can turn off the theme option in Article settings.
    a. Go to Settings → Knowledge base site → Article settings & SEO
    b .Under Article header, you can find the 'Show theme options' toggle
    c. Toggle it to Off

2_Screenshot-theme_options_in_article_settings.png