Skip to content

Commit 1dc2923

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
[id="proc-loading-custom-theme-using-dynamic-plugin-_{context}"]
55
= Loading a custom {product-short} theme by using a dynamic plugin
66

7-
You can load a custom Backstage theme from a dynamic plugin.
7+
You can load a custom {product-short} theme from a dynamic plugin.
88

99
.Procedure
1010

11-
. Export a theme provider function in the dynamic plugin, such as:
11+
. Export a theme provider function in your dynamic plugin, for example:
1212
+
1313
[source,javascript]
1414
----
@@ -19,7 +19,7 @@ export const lightThemeProvider = ({ children }: { children: ReactNode }) => (
1919
);
2020
----
2121

22-
. Configure {product-short} to load the them in the UI by using the new `themes` configuration field:
22+
. Configure {product-short} to load the theme in the UI by using the `themes` configuration field:
2323
+
2424
.Example `app-config-rhdh.yaml` file
2525
[source,yaml]
@@ -34,8 +34,8 @@ dynamicPlugins:
3434
icon: someIconReference
3535
importName: lightThemeProvider
3636
----
37-
<1> Set your theme id. Optionally, override the default Developer Hub themes specifying following id value: `light` overrides the default light theme and `dark` overrides the default dark theme.
37+
<1> Set your theme ID by specifying the desired value. Optionally, override the default {product-short} themes by using the following ID values: `light` to replace the default light theme, or `dark` to replace the default dark theme.
3838

3939
.Verification
4040

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

0 commit comments

Comments
 (0)