<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Why does dark theme switch fail when using emojis in the dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/518190#M34771</link>
    <description>&lt;P&gt;Hello there!&lt;/P&gt;
&lt;P&gt;I am working on a App I am willing to publish on Splunkbase.&lt;/P&gt;
&lt;P&gt;I do like the dark mode one click feature so I try to adapt CSS colors based on currently applied theme, so that users will be able to pick dark theme without having light colors left on the dashboard.&lt;/P&gt;
&lt;P&gt;It is working fine so far using a background rest search that checks for dashboard's theme and tokens.&lt;/P&gt;
&lt;P&gt;However, I do use emojis in my dashboards and I have discovered that it makes the dark mode switch fail:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen4.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10676i257966AC414C7134/image-size/medium?v=v2&amp;amp;px=400" role="button" title="screen4.png" alt="screen4.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It might be a core issue so I guess I will have to live with it but I am posting there just in case anyone figured this out, maybe there is a way to escape / protect emoji or the like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard theme="dark"&amp;gt;
  &amp;lt;label&amp;gt;Emoji Dark Mode&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: Code renderer also seems to dislike emojis but there is one one emoji within html :&lt;/P&gt;
&lt;P&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2022 16:08:29 GMT</pubDate>
    <dc:creator>D2SI</dc:creator>
    <dc:date>2022-11-28T16:08:29Z</dc:date>
    <item>
      <title>Why does dark theme switch fail when using emojis in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/518190#M34771</link>
      <description>&lt;P&gt;Hello there!&lt;/P&gt;
&lt;P&gt;I am working on a App I am willing to publish on Splunkbase.&lt;/P&gt;
&lt;P&gt;I do like the dark mode one click feature so I try to adapt CSS colors based on currently applied theme, so that users will be able to pick dark theme without having light colors left on the dashboard.&lt;/P&gt;
&lt;P&gt;It is working fine so far using a background rest search that checks for dashboard's theme and tokens.&lt;/P&gt;
&lt;P&gt;However, I do use emojis in my dashboards and I have discovered that it makes the dark mode switch fail:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen4.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10676i257966AC414C7134/image-size/medium?v=v2&amp;amp;px=400" role="button" title="screen4.png" alt="screen4.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It might be a core issue so I guess I will have to live with it but I am posting there just in case anyone figured this out, maybe there is a way to escape / protect emoji or the like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard theme="dark"&amp;gt;
  &amp;lt;label&amp;gt;Emoji Dark Mode&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: Code renderer also seems to dislike emojis but there is one one emoji within html :&lt;/P&gt;
&lt;P&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 16:08:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/518190#M34771</guid>
      <dc:creator>D2SI</dc:creator>
      <dc:date>2022-11-28T16:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dark theme swith fails when using emojis in the dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/518270#M34779</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/112007"&gt;@D2SI&lt;/a&gt;&amp;nbsp;this is a known issue with Unicode Characters, with easy workaround&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2020-07-20	SPL-192213	Dark mode does not get applied to XML dashboards when using unicode characters like smiley icons

Workaround:
Do not use unicode characters in Dashboards with dark mode.&lt;/LI-CODE&gt;&lt;P&gt;In case you want to use icons go for Simple XML JS extension or use standard icon libraries like&amp;nbsp; Font-Awesome:&amp;nbsp;&lt;A href="https://fontawesome.com/" target="_blank"&gt;https://fontawesome.com/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 15:43:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/518270#M34779</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-07T15:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dark theme swith fails when using emojis in the dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/518305#M34785</link>
      <description>&lt;P&gt;Nice workaround indeed &lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 20:57:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/518305#M34785</guid>
      <dc:creator>D2SI</dc:creator>
      <dc:date>2020-09-07T20:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dark theme swith fails when using emojis in the dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/533923#M36362</link>
      <description>&lt;P&gt;Splunk: "yeah, don't do that"&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 08:22:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/533923#M36362</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2020-12-23T08:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dark theme swith fails when using emojis in the dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/533925#M36363</link>
      <description>&lt;P&gt;Came across this problem too.&amp;nbsp; No issues in 7.3.x, after upgrade to 8.0.5 it started failing.&amp;nbsp; I guess it's a regression.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 08:24:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/533925#M36363</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2020-12-23T08:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dark theme swith fails when using emojis in the dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/622282#M51067</link>
      <description>&lt;P&gt;This bug also happens (on Splunk Enterprise 8.2.3.3) when using a XML Declaration like&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;&lt;P&gt;Took us a while to figure this out&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 15:56:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/622282#M51067</guid>
      <dc:creator>blablabla</dc:creator>
      <dc:date>2022-11-28T15:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dark theme swith fails when using emojis in the dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/653016#M53663</link>
      <description>&lt;P&gt;Saw this and managed to create a workaround because I didnt like the cursor moving etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I wrapped the function within a search macro and now the dark theme also works when you call the macro instead of having emojio embedded into your dashboard!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&amp;nbsp;&lt;/P&gt;&lt;P&gt;eval $arg1$=case($arg1$==1,"&lt;span class="lia-unicode-emoji" title=":1st_place_medal:"&gt;🥇&lt;/span&gt;",$arg1$==2,"&lt;span class="lia-unicode-emoji" title=":2nd_place_medal:"&gt;🥈&lt;/span&gt;",$arg1$==3,"&lt;span class="lia-unicode-emoji" title=":3rd_place_medal:"&gt;🥉&lt;/span&gt;",1==1,$arg1$)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="robtun1_0-1691052834679.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26619iDB2C60ED2D39E596/image-size/medium?v=v2&amp;amp;px=400" role="button" title="robtun1_0-1691052834679.png" alt="robtun1_0-1691052834679.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 08:54:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/653016#M53663</guid>
      <dc:creator>robtun1</dc:creator>
      <dc:date>2023-08-03T08:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dark theme swith fails when using emojis in the dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/653018#M53665</link>
      <description>&lt;P&gt;managed by luck to find a workaround for this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 08:54:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/653018#M53665</guid>
      <dc:creator>robtun1</dc:creator>
      <dc:date>2023-08-03T08:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dark theme swith fails when using emojis in the dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/653299#M53710</link>
      <description>&lt;P&gt;This works for me too, nice one!&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/112007"&gt;@D2SI&lt;/a&gt;&amp;nbsp;I would suggest this being the solution.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2023 04:38:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/653299#M53710</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2023-08-05T04:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why does dark theme switch fail when using emojis in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/750907#M59037</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/112007"&gt;@D2SI&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/203131"&gt;@andrewtrobec&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127753"&gt;@robtun1&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237066"&gt;@blablabla&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt;&amp;nbsp;can you guys help me on this as well...&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/How-to-add-the-description-for-dashboard-in-beginning-which/m-p/750902/highlight/false#M59034" target="_blank"&gt;Re: How to add the description for dashboard in be... - Splunk Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am trying to add&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt; in my Splunk dashboard description and as soon as I give this HTML, dark theme changing to light and it is not returning. Can you guys help me?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 09:13:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-dark-theme-switch-fail-when-using-emojis-in-the/m-p/750907#M59037</guid>
      <dc:creator>splunklearner</dc:creator>
      <dc:date>2025-08-01T09:13:55Z</dc:date>
    </item>
  </channel>
</rss>

