GitHub user VasilijeBursac created a discussion: Creating custom dark themes in 
Superset

Hi everyone,

I’m currently exploring custom dark theme creation in Superset and have a 
couple of questions:

**1. Making dark themes less “pure black”**
Is it possible to make the default algorithm: dark theme less dark/black — for 
example, to create a dark gray or dark blue theme?
I know seed tokens like `colorTextBase` and `colorBgBase` (from the Ant Design 
Theme Editor) have a huge impact here, but their tooltips say _“PLEASE DO NOT 
USE this Seed Token directly in the code!”_.
What’s the correct approach for creating such custom dark themes? Would it be 
to create a theme with `"algorithm": "dark"` and then override specific tokens 
(e.g., container backgrounds, main navigation bar background, card backgrounds, 
etc.), or is there a better approach? If so, could you share which tokens most 
affect the overall Superset look (main container background, navigation bar 
background, etc.)?

**2. Dark theme versions of custom themes**
What’s the recommended way to create a dark version of a custom theme?
My current approach is to:
- Create a new theme (`"algorithm": "dark"`)
- Copy the JSON from my custom light theme (`"algorithm": "default"`)
- Change or add specific tokens for a different look or better 
visibility/contrast

However, this leads to duplication and redundancy. Is there a way to apply the 
dark algorithm to an existing custom light theme and then only override the 
specific tokens that need changing, instead of copying the entire light theme 
JSON?

I’d appreciate any insights or best practices on this. @mistercrunch @msyavuz 
@rusackas 

Thanks in advance.
Best regards!

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

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to