Skip to content

Commit 4b87c0d

Browse files
committed
RHIDP-4567 - Provide the ability to load a custom Backstage theme from a dynamic plugin
1 parent 1dc2923 commit 4b87c0d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

modules/customization/proc-loading-custom-theme-using-dynamic-plugin.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ You can load a custom {product-short} theme from a dynamic plugin.
88

99
.Procedure
1010

11-
. Export a theme provider function in your dynamic plugin, for example:
11+
. Export a theme provider function in your dynamic plugin. For more information about creating a custom theme, see link:https://backstage.io/docs/getting-started/app-custom-theme/#using-your-custom-theme[Backstage documentation - Creating a Custom Theme].
1212
+
13+
.Sample `myTheme.ts` fragment
1314
[source,javascript]
1415
----
1516
import { lightTheme } from './lightTheme'; // some custom theme
@@ -21,7 +22,7 @@ export const lightThemeProvider = ({ children }: { children: ReactNode }) => (
2122

2223
. Configure {product-short} to load the theme in the UI by using the `themes` configuration field:
2324
+
24-
.Example `app-config-rhdh.yaml` file
25+
.`app-config-rhdh.yaml` fragment
2526
[source,yaml]
2627
----
2728
dynamicPlugins:
@@ -38,4 +39,4 @@ dynamicPlugins:
3839

3940
.Verification
4041

41-
* The theme is available in the {product-short} *Settings* page page.
42+
* The theme is available in the {product-short} *Settings* page.

0 commit comments

Comments
 (0)