GitHub user dosubot[bot] added a comment to the discussion: How to set custom 
label colors for conditional formatting?

<!-- Answer -->
The issue is the configuration key — use `THEME`, not `THEME_DEFAULT`. 
[Superset only loads theme configuration from 
`THEME`](https://github.com/apache/superset/issues/36979).

Update your `superset_config.py` to:

```python
THEME = {
    "token": {
        "colorSuccessBg": "#6CC24A",
        "colorWarningBg": "#FFAE41",
        "colorErrorBg": "#D14600"
    }
}
```

Also, make sure to check your browser's localStorage for a key called 
`superset-theme` — if present, it can override backend config. You can clear it 
via DevTools → Application → Local Storage.

Let me know if that works!


<!-- Dosu Comment Footer -->
*To reply, just mention 
[@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=brand-link).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/f5c2f411-3bd4-439a-b1a2-d57606423997?feedback_type=great_response&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/f5c2f411-3bd4-439a-b1a2-d57606423997?feedback_type=irrelevant_answer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/f5c2f411-3bd4-439a-b1a2-d57606423997?feedback_type=incorrect_sources&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/f5c2f411-3bd4-439a-b1a2-d57606423997?feedback_type=too_verbose&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-too_verbose)
 | [Hallucination](https://app.dosu.dev/response-feedback/f5c2f411-3bd4-43
 
9a-b1a2-d57606423997?feedback_type=hallucination&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/f5c2f411-3bd4-439a-b1a2-d57606423997?feedback_type=bug_report&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/f5c2f411-3bd4-439a-b1a2-d57606423997?feedback_type=other&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-other)</sup>

[![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=chat-badge)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20issue%20is%20the%20configuration%20key%20%E2%80%94%20use%20%60THEME%60%2C%20not%20%60THEME_DEFAULT%60.%20%5BSuperset%20only%20loads%20theme%20configuration%20from%20%60THEME%60%5D%28https%3A//github.com/apache/superset/issues/36979%29.%0A%0AUpdate%20your%20%60superset_config.py%60%20to%3A%0A%0A%60%60%60python%0ATHEME%20%3D%20%7B%0A%20%20%20%20%22token%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22colorSuccessBg%22%3A%20%22%236CC24A%22%2C%0A%20%20%20%20%20%20%20%20%22colorWarningBg%22%3A%20%22%23FFAE41%22%2C%0A%20%20%20%20%20%20%20%20%22colorErrorBg%22%3A%20%22%23D14600%22%0A%20%20%20%20%7D%0A%7D%0A%60%60%60%0A%0AAlso%2C%20make%20sure%20to%20check%20your%20browser%27s%20localS
 
torage%20for%20a%20key%20called%20%60superset-theme%60%20%E2%80%94%20if%20present%2C%20it%20can%20override%20backend%20config.%20You%20can%20clear%20it%20via%20DevTools%20%E2%86%92%20Application%20%E2%86%92%20Local%20Storage.%0A%0ALet%20me%20know%20if%20that%20works%21)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=join-discord)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/38720)

GitHub link: 
https://github.com/apache/superset/discussions/38720#discussioncomment-16193481

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to