Skip to content

Commit 0d43d6a

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ 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 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].
11+
. Export a theme provider function in your dynamic plugin, for example:
1212
+
1313
.Sample `myTheme.ts` fragment
1414
[source,javascript]
@@ -19,6 +19,8 @@ export const lightThemeProvider = ({ children }: { children: ReactNode }) => (
1919
<UnifiedThemeProvider theme={lightTheme} children={children} />
2020
);
2121
----
22+
+
23+
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].
2224

2325
. Configure {product-short} to load the theme in the UI by using the `themes` configuration field:
2426
+

0 commit comments

Comments
 (0)