GitHub user dosubot[bot] added a comment to the discussion: How can i change
logo "Superset" (APP_ICON)?
<!-- Answer -->
`APP_ICON` is deprecated in Superset v5+ and ignored when any theme config is
present. You need to use the **theme system** instead.
Add this to your `superset_config.py`:
```python
THEME_DEFAULT = {
"token": {
"brandLogoUrl": "/static/assets/images/your_logo.png",
"brandLogoAlt": "Your App Name",
"brandLogoHref": "https://your_website",
"brandIconMaxWidth": 150,
"brandLogoHeight": "40px",
}
}
THEME_DARK = {
"token": {
"brandLogoUrl": "/static/assets/images/your_dark_logo.png",
},
"algorithm": "dark",
}
```
**Important**: Configure both `THEME_DEFAULT` and `THEME_DARK` — if you only
set one, the [logo will revert to default when users switch
modes](https://github.com/apache/superset/issues/34824#issuecomment-3214839252).
Place your logo file at the path specified in `brandLogoUrl` (e.g.,
`superset/static/assets/images/your_logo.png`), restart Superset, and clear
your browser cache. No frontend rebuild is needed for this configuration.
<!-- 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/d581bfbd-0509-48ce-abc9-041f87323e1b?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/d581bfbd-0509-48ce-abc9-041f87323e1b?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/d581bfbd-0509-48ce-abc9-041f87323e1b?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/d581bfbd-0509-48ce-abc9-041f87323e1b?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/d581bfbd-0509-48
ce-abc9-041f87323e1b?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/d581bfbd-0509-48ce-abc9-041f87323e1b?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/d581bfbd-0509-48ce-abc9-041f87323e1b?feedback_type=other&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-other)</sup>
[](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) [](https://cursor.com/link/prompt?text=%60APP_ICON%60%20is%20deprecated%20in%20Superset%20v5%2B%20and%20ignored%20when%20any%20theme%20config%20is%20present.%20You%20need%20to%20use%20the%20%2A%2Atheme%20system%2A%2A%20instead.%0A%0AAdd%20this%20to%20your%20%60superset_config.py%60%3A%0A%0A%60%60%60python%0ATHEME_DEFAULT%20%3D%20%7B%0A%20%20%20%20%22token%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22brandLogoUrl%22%3A%20%22/static/assets/images/your_logo.png%22%2C%0A%20%20%20%20%20%20%20%20%22brandLogoAlt%22%3A%20%22Your%20App%20Name%22%2C%0A%20%20%20%20%20%20%20%20%22brandLogoHref%22%3A%20%22https%3A//your_website%22%2C%0A%20%20%20%20%20%20%20%20%22brandIconMaxWidth%22%3A%20150%2C%0A%20%20%20%20%20%20%20%20%22brandLog
oHeight%22%3A%20%2240px%22%2C%0A%20%20%20%20%7D%0A%7D%0A%0ATHEME_DARK%20%3D%20%7B%0A%20%20%20%20%22token%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22brandLogoUrl%22%3A%20%22/static/assets/images/your_dark_logo.png%22%2C%0A%20%20%20%20%7D%2C%0A%20%20%20%20%22algorithm%22%3A%20%22dark%22%2C%0A%7D%0A%60%60%60%0A%0A%2A%2AImportant%2A%2A%3A%20Configure%20both%20%60THEME_DEFAULT%60%20and%20%60THEME_DARK%60%20%E2%80%94%20if%20you%20only%20set%20one%2C%20the%20%5Blogo%20will%20revert%20to%20default%20when%20users%20switch%20modes%5D%28https%3A//github.com/apache/superset/issues/34824%23issuecomment-3214839252%29.%0A%0APlace%20your%20logo%20file%20at%20the%20path%20specified%20in%20%60brandLogoUrl%60%20%28e.g.%2C%20%60superset/static/assets/images/your_logo.png%60%29%2C%20restart%20Superset%2C%20and%20clear%20your%20browser%20cache.%20No%20frontend%20rebuild%20is%20needed%20for%20this%20configuration.) [](https://go.dosu.dev/discord-bot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=join-discord) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/38820)
GitHub link:
https://github.com/apache/superset/discussions/38820#discussioncomment-16290256
----
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]