-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing Superset UI wont work #30901
Comments
Hey @acolgecen! 👋 I'm here to help you with any bugs, questions, or becoming a contributor. Let's squash those bugs together! The issue you're experiencing with custom fonts not rendering in Superset's UI might be related to the Content Security Policy (CSP) settings. Superset's To resolve this, you can modify the TALISMAN_CONFIG = {
"content_security_policy": {
"style-src": [
"'self'",
"'unsafe-inline'",
"https://fonts.googleapis.com",
"https://fonts.gstatic.com"
],
},
} After making these changes, restart Superset and perform a hard refresh in your browser to see if the custom fonts are applied correctly. |
Dosu might be right here... but you can check your CSS inspector to see if something else might be wining in CSS selector precedence, or if it's indeed just unable to load the file(s). Also, note that a lot of this is more "beta" than solidified... we have a long way to go yet for proper theming support. |
I will take look on the CSS and wilde also apply what Dosu mentioned about Talisman. |
I’ve been unsuccessful in changing the font on the Superset UI. Has anyone successfully configured a font using a different approach? |
Bug description
I'm experiencing issues with applying custom fonts to the Superset UI using THEME_OVERRIDES in the
superset_config.py
file. The configuration settings seem to be recognized, as other aspects of the theme (such as colors and border radius) apply successfully. However, custom fonts (e.g., Roboto from Google Fonts or a local URL) do not render in the UI.Steps to Reproduce:
1. Add the following configuration to superset_config.py to enable custom theming:
2. Restart Superset.
3. Perform a hard refresh in the browser to clear cache.
4. Inspect the UI text elements (using browser Developer Tools) to verify if Roboto is applied.
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.10
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: