opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.61k stars 827 forks source link

Custom CSS/JS #6814

Open AtanasBobev opened 2 months ago

AtanasBobev commented 2 months ago

Hey Team,

I want to whitelabel Wazuh beyond what is offered by the configuration files of Wazuh/OpenDashboard. I consulted the Wazuh team here: https://github.com/wazuh/wazuh-dashboard/issues/178

Is there some way to add custom CSS styling or run a js script alongside the project so that I can customize every aspect of the app?. You can review the specific requirements for customizations I have in the issue above.

Any advice is appreciated.

kavilla commented 1 month ago

Hey @AtanasBobev, checked out the issue, wow awesome stuff!

Will ping @joshuarrrr since he did a deep dive with theming [LINK]

There is a great explanation on styling he recently added: [README] (and is true for main and planned for 2.15) with how OpenSearch Dashboards bootstraps and startups.

I think maybe the idea could be extending some of the work he added, if Wazuh is building OpenSearch Dashboards, perhaps we can have a root lvl styles folder that as long as it matches the specific name that is supposed to be loaded, it will override the style sheets that are bootstrapped.