# How to change the text color in kibana dashboard widgets?

**URL:** https://discuss.elastic.co/t/how-to-change-the-text-color-in-kibana-dashboard-widgets/246334
**Category:** Kibana
**Tags:** lens
**Created:** [August 25, 2020, 5:13pm UTC](https://discuss.elastic.co/t/how-to-change-the-text-color-in-kibana-dashboard-widgets/246334 "2020-08-25T17:13:18Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![DSMilestone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsmilestone/32/73339_2.png) [@DSMilestone](https://discuss.elastic.co/u/DSMilestone)
#### Post date: [August 25, 2020, 5:13pm UTC](https://discuss.elastic.co/t/how-to-change-the-text-color-in-kibana-dashboard-widgets/246334/1 "2020-08-25T17:13:19Z")

</div>

How to change the text color in kibana dashboard widgets. In the below screenshot, there are three different lens widgets in the dashboard. I want to change the text color of `Passed` count to green and `failed` count to red. How can I do that in kibana dashboard? (note: I use kibana version 7.8.0)

![rsz_screenshot_15](https://us1.discourse-cdn.com/elastic/original/3X/f/b/fb8b74bb4f913002bc39a53ea9fb4a3ecbc32caf.png)

---

<div class="post-metadata">

### Author: ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)
#### Post date: [August 25, 2020, 5:55pm UTC](https://discuss.elastic.co/t/how-to-change-the-text-color-in-kibana-dashboard-widgets/246334/2 "2020-08-25T17:55:43Z")

</div>

@DSMilestone

Did you take a look at using the Metric visualization?

---

<div class="post-metadata">

### Author: ![DSMilestone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsmilestone/32/73339_2.png) [@DSMilestone](https://discuss.elastic.co/u/DSMilestone)
#### Post date: [August 26, 2020, 5:17am UTC](https://discuss.elastic.co/t/how-to-change-the-text-color-in-kibana-dashboard-widgets/246334/3 "2020-08-26T05:17:50Z")

</div>

Hi @mattkime

Thank you for your reply. Yes I checked that, but seems we should have a range to add colors there. My requirement is to add colors explicitly to a text in the kibana dashboard's widget. Is it possible? 🙂

And also is it possible to set color to a particular field using a painless API?  
as and example, In my index there is field called `Status` which has the values of `PASSED` and `FAILED`. Is it possible to set the colors to those values using a DSL script?

---

<div class="post-metadata">

### Author: ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)
#### Post date: [August 26, 2020, 3:23pm UTC](https://discuss.elastic.co/t/how-to-change-the-text-color-in-kibana-dashboard-widgets/246334/4 "2020-08-26T15:23:06Z")

</div>

Here's a github issue requesting the feature you seek to use - [https://github.com/elastic/kibana/issues/32469](https://github.com/elastic/kibana/issues/32469)

Its recommended to use range to add color.

---

<div class="post-metadata">

### Author: ![DSMilestone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsmilestone/32/73339_2.png) [@DSMilestone](https://discuss.elastic.co/u/DSMilestone)
#### Post date: [August 26, 2020, 7:14pm UTC](https://discuss.elastic.co/t/how-to-change-the-text-color-in-kibana-dashboard-widgets/246334/5 "2020-08-26T19:14:24Z")

</div>

Hi @mattkime ,  
Yeah I was trying out that! Thanks for your help though... 🙂

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 23, 2020, 7:14pm UTC](https://discuss.elastic.co/t/how-to-change-the-text-color-in-kibana-dashboard-widgets/246334/6 "2020-09-23T19:14:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
