superset icon indicating copy to clipboard operation
superset copied to clipboard

Theming Error: Facing issue in Changing App Icon and Loading icon in Apache Superset 6.0.0

Open ypandey-fluidata opened this issue 10 months ago • 3 comments

Bug description

Application display name (Top-left header & browser title)

APP_NAME = "FD"

Path must resolve inside Superset static assets

APP_ICON = "/static/assets/images/logo_trans_v1.png" APP_ICON_WIDTH = 150

Redirect target when clicking the logo

LOGO_TARGET_PATH = "/"

Tried changing the app icon and also replaced loading.cff8a5da.gif in the specific path for new loading icon but it gets automatically changed or image gets disrupted. Need a permanent fix.

Image Image

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
  • [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
  • [x] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

ypandey-fluidata avatar Jan 07 '26 06:01 ypandey-fluidata

In Superset 6.0.0, the way to permanently change the app icon has changed: the old APP_ICON and APP_NAME config options are deprecated and ignored if any theme config is present. Branding is now managed through the theming system using THEME_DEFAULT and THEME_DARK in your superset_config.py. To set a custom logo, add something like:

THEME_DEFAULT = {
    "token": {
        "brandLogoUrl": "/static/assets/images/your_logo.png",  # your logo path
        "brandLogoAlt": "Your App Name",                        # alt text
        # ...other theme tokens...
    }
}
THEME_DARK = {
    "token": {
        "brandLogoUrl": "/static/assets/images/your_dark_logo.png",
        # ...other tokens...
    }
}

Reference

For the loading icon (spinner), there is no theme token for it. It's a static asset bundled by the frontend build. To change it permanently, replace the source image (e.g., loading.gif) in superset-frontend/src/assets/images/ with your custom version, then rebuild the frontend with the appropriate npm build command. Do not replace files directly in superset/static/assets/images—these get overwritten on every build or deployment due to the asset pipeline and content hashing. Reference

Important: Superset 6.0.0+ requires Node 20.x for frontend builds. Using Node 16 or 18 can cause build failures or missing assets, which may prevent your customizations from appearing. Reference

After updating assets and rebuilding, clear your browser cache and localStorage to see the changes, especially if you've used the Theme Editor before.

If you are running in a multi-tenant or advanced deployment, make sure the database is migrated and theme seeding is complete, as themes are now also synced to the database. Reference

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

dosubot[bot] avatar Jan 07 '26 06:01 dosubot[bot]

I would love to work on this issue.Please assign this issue to me.

shashbha14 avatar Jan 07 '26 11:01 shashbha14

Image

THEME_DEFAULT = { "algorithm": "default", "token": {

    "fontFamily": "Inter, sans-serif",
    "fontUrls": [
        "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"
    ],

    
    "fontSizeHeading1": 40,
    "fontSizeHeading2": 32,
    "fontSizeHeading3": 26,
    "fontSizeHeading4": 22,
    "fontSizeHeading5": 18,

    
    "lineHeight": 2,
    "lineHeightHeading1": 1.5,
    "lineHeightHeading2": 1.38,
    "lineHeightHeading3": 1.26,
    "lineHeightHeading4": 1.12,
    "lineHeightHeading5": 1,

    
    "colorSuccessBg": "#5ac189",
    "colorWarningBg": "#B12CFE",
    "colorErrorBg": "#ff6b6b",

    "brandIconMaxWidth": 150,
    "brandLogoHeight": "40px",
    "brandLogoMargin": "10px 10px 10px 0px",
    "brandLogoUrl" : "/static/assets/images/logo_trans_v1.png"
    "brandSpinnerUrl": "/static/assets/images/loading.gif"
}

}

also

Specify the App icon

APP_ICON = "/static/assets/logo_trans_v1.png"

Redirect target when clicking the logo

LOGO_TARGET_PATH = "/"

the issue I am facing is the icon changes, loading icon also changes but after sometime it gets removed automatically I checked my console when this happened through putty it was visible in folder and when the image crashed i immediately checked the folder both logo and spinner images got removed.

ypandey-fluidata avatar Jan 07 '26 12:01 ypandey-fluidata

Do you have any clear reproduction steps @ypandey-fluidata?

msyavuz avatar Jan 26 '26 19:01 msyavuz

... if not, the issue may be closed at some point. That said, I'll take a look at the linked PR, and anyone is welcome to test it out and report back.

rusackas avatar Feb 19 '26 21:02 rusackas

Pr updated and (hopefully) ready to merge if/when it passes CI.

rusackas avatar Feb 19 '26 21:02 rusackas

what is the solution, why my dashboard suddenly become white screen when I try to add this in

superset_config_docker.py:

THEME_DEFAULT = {
  "token": {
    "brandAppName": "TEST",  # Window titles
    "brandLogoAlt": "TEST",  # Logo alt text
    "brandLogoUrl" : "/static/assets/images/superset-logo-horiz-custom.png",
  }
}

THEME_DARK = {
  "token": {
    "brandLogoUrl" : "/static/assets/images/superset-logo-horiz-custom.png",
  }
}

syafiqmuda avatar Apr 15 '26 03:04 syafiqmuda

what is the solution, why my dashboard suddenly become white screen when I try to add this in

superset_config_docker.py:

THEME_DEFAULT = {
  "token": {
    "brandAppName": "TEST",  # Window titles
    "brandLogoAlt": "TEST",  # Logo alt text
    "brandLogoUrl" : "/static/assets/images/superset-logo-horiz-custom.png",
  }
}

THEME_DARK = {
  "token": {
    "brandLogoUrl" : "/static/assets/images/superset-logo-horiz-custom.png",
  }
}

Did you try

THEME_DARK = {
    "token": {
        "brandLogoUrl": "/static/assets/images/superset-logo-horiz-custom.png",
    },
    "algorithm": "dark",
}

onionhammer avatar Apr 21 '26 19:04 onionhammer

@onionhammer TQ for the reply, I have found my solution (not the best) but I simply use superset theme here:

Image

then set the default.

syafiqmuda avatar Apr 22 '26 08:04 syafiqmuda

@syafiqmuda ahh ok, adding "algorithm dark" fixed it for me

onionhammer avatar Apr 22 '26 14:04 onionhammer