Skip to content
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

Customize font color in RootPage Header #138

Open
gabriel-dantas98 opened this issue Mar 27, 2024 · 3 comments
Open

Customize font color in RootPage Header #138

gabriel-dantas98 opened this issue Mar 27, 2024 · 3 comments

Comments

@gabriel-dantas98
Copy link
Contributor

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?

@drodil
Copy link
Owner

drodil commented Mar 28, 2024

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

@gabriel-dantas98
Copy link
Contributor Author

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

@drodil
Copy link
Owner

drodil commented Oct 24, 2024

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'
      }
    })
  }
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants