Dark theme for Service Portal

Don_O
Tera Contributor

Hello community!

I'd like to add the functionality of switching from light to dark theme and vice versa in a custom service portal under Tokyo instance. So far I found one post that mentioned a way to do this in the CSM portal using the darkmode.js library.

Unfortunately, I haven't been able to reproduce the same behaviour in my service portal, so any help would be appreciated.

Thanks.

Don.

6 REPLIES 6

sourav1999
Mega Guru

 

• Implementing dark theme for the Service Portal can be achieved by creating a custom theme in the Theme Designer. • The Theme Designer is a tool for creating custom themes for the Service Portal. • It allows you to customize the look and feel of the portal by changing colors, fonts, and other visual elements. • You can also add custom CSS to further customize the look and feel of your portal. • Once you have created your custom theme, you can apply it to the Service Portal by navigating to the Portal Settings page and selecting your new theme.
 

For asking ServiceNow-related questions try this :

For a good and optimistic result, please visit this website. It uses a Chat Generative Pre-Trained Transformer ( GPT ) technology for solving ServiceNow-related issues.

Link - https://nowgpt.ai/

 

For the ServiceNow Certified System Administrator exams try this :

https://www.udemy.com/course/servicenow-csa-admin-certification-exam-2023/?couponCode=NOW-DEVELOPER

Don_O
Tera Contributor

Hello Sourav,

The suggestions in your reply are meant for those who want to create a service portal with dark theme only. In my case, I want the end users to be able to switch between dark and light themes.

Also, I tried the nowgpt link you sent. The chat bot suggested to use a certain "ThemeSwitcher' widget, which seems to do what I asked for. Unfortunately, I couldn't find it anywhere (even the chatbot did not have a reply to that).

 

Don_O_0-1684427786810.png

 

Thanks again for your time.

Hi, Don. Have you had any luck in the last few months?

 

I just noticed a Service Portal field in Utah called "Dark theme." It looks like you can specify both [theme] and [dark_theme] for portals now...but I don't see an obvious way to toggle between the two.

 

I'd also love to find the answer you're looking for!

@Mike McCall were you able to find something over it? There seems to be less documentation available around it.