-
Epic
-
Resolution: Done
-
Undefined
-
None
-
None
-
Provide the ability to load a custom Backstage theme from a dynamic plugin
-
False
-
-
False
-
RHIDP-3825Provide the ability to load a custom Backstage theme from a dynamic plugin
-
To Do
-
RHIDP-3825 - Provide the ability to load a custom Backstage theme from a dynamic plugin
-
QE Needed, Docs Needed, TE Needed, Customer Facing, PX Needed
-
0% To Do, 0% In Progress, 100% Done
-
-
Enhancement
-
Done
-
-
Provide a way for a dynamic plugin to export a theme provider function.
Provide a method to configure the frontend to supply a theme provider function exported from a dynamic plugin to be picked up by the createApp API.
Expose the configuration items needed to display the theme properly to the user such as:
id - the internal ID of the theme
title - the user visible name of the theme
icon - the icon that should be displayed next to the theme name
variant - the variation of the theme either "light" or "dark"
importName - the name of the exported theme provider function
So for example a theme configuration could look something like:
dynamicPlugins: frontend: internal.backstage-plugin-test-backstage-theme: appIcons: - name: lightIcon importName: LightIcon - name: darkIcon importName: DarkIcon themes: - id: light # Using 'light' overrides the app-provided light theme title: Test Light Theme variant: light icon: lightIcon importName: lightThemeProvider - id: dark # Using 'dark' overrides the app-provided dark theme title: Test Dark Theme variant: dark icon: darkIcon importName: darkThemeProvider
Provide some kind of example dynamic plugin to try this functionality out