backstage-plugin-qeta icon indicating copy to clipboard operation
backstage-plugin-qeta copied to clipboard

Customize font color in RootPage Header

Open gabriel-dantas98 opened this issue 1 year ago • 4 comments

In our team we are creating changes to the Backstage UI and we would like to change the color of the background and the header text.

We've already managed to do it with the header background, but we haven't managed to do it with the font. image

I've tried to implement it locally but it seems to be a limitation of the Backstage component itself.

image

Any suggestions for a better approach?

gabriel-dantas98 avatar Mar 27 '24 22:03 gabriel-dantas98

Did you try creating a custom theme and overriding the pageTheme as explained here: https://backstage.io/docs/getting-started/app-custom-theme/#example-of-a-custom-theme

drodil avatar Mar 28 '24 06:03 drodil

I tried, but I changed the color of all the fonts, not just the q&a header 😕

gabriel-dantas98 avatar Apr 17 '24 02:04 gabriel-dantas98

Did you try passing custom themeId to the RootPage and then applying custom theme for that theme?

So for example:

<QetaPage themeId="qeta"/>

And then in your app

createTheme({
  pageTheme: {
    qeta: genPageTheme({
      options: {
        fontColor: 'blue'
      }
    })
  }
});

drodil avatar Oct 24 '24 07:10 drodil