mckinsey / vizro

Vizro is a toolkit for creating modular data visualization applications.
https://vizro.readthedocs.io/en/stable/
Apache License 2.0
2.61k stars 116 forks source link

Custom theme support #636

Open yetudada opened 3 weeks ago

yetudada commented 3 weeks ago

Which package?

Vizro

What's the problem this feature will solve?

I would like to suggest the addition of custom theme support in Vizro, akin to the functionality available in Streamlit. This feature would be a valuable enhancement, enabling users to align their applications with specific branding guidelines, which is especially crucial in corporate settings. Apparently, users can upload logos and they can hack away at Vizro to do this. This features suggests that there’s an easy way for users to make certain customisations.

Describe the solution you'd like

I’m not a user and haven’t run into this problem except for seeing non-branded demos.

I think it should support:

Code of Conduct

maxschulz-COL commented 3 weeks ago

Hey @yetudada ,

thanks for your reach out! Good to see you posting on the issues :).

What you are describing can maybe be split into two ideas:

The former is on our roadmap, and our ultimate goal. We would like the Vizro styling to be a bootstrap theme (it already is) that can be used not just in Vizro, but also any other Dash app. Likewise, other themes should be possible to be used in Vizro.

For the latter, I think that is an interesting idea. Maybe to elaborate: this is already possible via CSS for colors and fonts. A logo can also be added simply without any additional requirements. Is that too "hacky"? On first glance I like the idea of how streamlit does it. We would need to discuss how easily we can make an alternative way to CSS possible.

@Joseph-Perkins Any additional remarks/ideas on this?