-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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
Custom theming harder since Grafana 10 #71662
Comments
Hi @spaceone , i am trying to change the size of the logo image how can i apply some custom styling to the class css-1m01c8l i can see from dev tool that this class is assigned to the logo img on top left corner, as you have mentioned that this is on dom |
Hey @spaceone @visalnaqvi - sorry for the late reply, but I just spotted this after it fell through the cracks. Grafana does not support custom themes. Our CSS and DOM structure is not a supported API contract, so relying on it to hack in custom themes will always break. This path will be filled only with disappointment. We're aware of requests for custom themes, but it's a significant undertaking, and not something we're prioritising soon. Essentially, this is a dupe of #10495. |
@joshhunt Doesn't Emotion assist us with themes "out of the box" using ThemeProvider ? (for all components that have been migrated) |
Hello,
in Grafana 8 it was easily possible to customize the theme by adding a custom CSS.
For example the login background could be set via:
Now there is a purple background on a div-container which has a probably random autocreated identifier, which will probably change in the future:
Also the grafana logo is now somewhere in the dom via an image:
<img class="css-1m01c8l" src="public/img/grafana_icon.svg" alt="Grafana">
while prior it was at least easily underneath of a
sidemenu
class selector:now:
The user avatar / profile image:
Prior:
a[href="/ucs-dashboard/profile"] img
Now:
#reactRoot > div.grafana-app > main > div.css-11s8juy > div.css-15okvyg > div.css-68hv8y > button.css-ldaruv-toolbar-button > img
The text was updated successfully, but these errors were encountered: