Dashboards & Visualizations

Is there any way to apply dark theme available in current Splunk versions to Splunk's old versions (i.e 6.2.x)?

harshpatel
Contributor

Is there any way to apply dark theme available in current Splunk versions to Splunk's old versions (i.e 6.2.x)?

0 Karma
1 Solution

mdsnmss
SplunkTrust
SplunkTrust

Hi @harshpatel,
You would have to do it yourself via CSS. If you have the app Splunk Dashboard Examples (https://splunkbase.splunk.com/app/1603/) I believe it has an illustration of how it's done in one of their examples. You might have to download an older version. You might have to copy out the dark.css from the examples app and copy it over to your app and then you'd call it in each dashboard via:
<dashboard stylesheet="dark.css"> at the top level of your dashboard.

View solution in original post

landen99
Motivator

The following solution gives you dark mode for all Splunk versions for both searches and dashboards, and for all other websites:
Install the darkreader.org extension
Install the Stylus extension
Add css to tame the cell highlighting feature in Splunk ->

  1. Click the Stylus extension
  2. Click Manage
  3. Click "Write New Style"
  4. Set "Applies to Everything" at the bottom
  5. Copy the following css into the box "code 1":

    /* highlight color, for dark mode */
    ::selection {
    background: #161710fc;
    color: #42ff42
    }

    statistics > table > tbody > tr > td > div:nth-child(n):hover {

    background: #001a07 !important;
    color: #6cff6c !important;
    

    }

    statistics > table > tbody > tr:nth-child(n) > td:nth-child(n):hover {

    background: #001a07 !important;
    color: #6cff6c !important;
    

    }

mdsnmss
SplunkTrust
SplunkTrust

Hi @harshpatel,
You would have to do it yourself via CSS. If you have the app Splunk Dashboard Examples (https://splunkbase.splunk.com/app/1603/) I believe it has an illustration of how it's done in one of their examples. You might have to download an older version. You might have to copy out the dark.css from the examples app and copy it over to your app and then you'd call it in each dashboard via:
<dashboard stylesheet="dark.css"> at the top level of your dashboard.

Get Updates on the Splunk Community!

Cloud Platform & Enterprise: Classic Dashboard Export Feature Deprecation

As of Splunk Cloud Platform 9.3.2408 and Splunk Enterprise 9.4, classic dashboard export features are now ...

Explore the Latest Educational Offerings from Splunk (November Releases)

At Splunk Education, we are committed to providing a robust learning experience for all users, regardless of ...

New This Month in Splunk Observability Cloud - Metrics Usage Analytics, Enhanced K8s ...

The latest enhancements across the Splunk Observability portfolio deliver greater flexibility, better data and ...