GitHub user user1500177 created a discussion: How to keep custom header-linked 
page theme consistent with Superset Dark/Light mode (without modifying Superset 
source)?

Question: How to keep custom header-linked page theme consistent with Superset 
Dark/Light mode (without modifying Superset source)?


I’ve added a custom header link to Apache Superset that appears alongside 
dashboards.
This was done via:
superset_config.py
A custom Flask AppBuilder view
Using FAB’s add_link option
The link points to a custom HTML page with its own CSS
The setup works fine functionally.

Problem:
Superset (v6) supports Light and Dark themes, and the main Superset UI switches 
correctly based on the selected theme.
However, when I navigate to my custom page via the header link, the page always 
renders in light mode, even when Superset is in dark mode.
So the theming becomes inconsistent:
Superset UI → Dark mode
Custom page → Always white/light
Constraints:
❌ I cannot modify Superset’s source code
✅ I can modify:
superset_config.py
My custom JS
My custom HTML/CSS page


Can u give the best way to do this without modifying Superset source codes?

GitHub link: https://github.com/apache/superset/discussions/37375

----
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