genPageTheme()
Home > @backstage/theme
> genPageTheme
Utility to not have to write colors and shapes twice.
Signature:
function genPageTheme(props: {
colors: string[];
shape: string;
options?: {
fontColor?: string;
};
}): PageTheme;
Parameters
Parameter |
Type |
Description |
---|---|---|
props |
{ colors: string[]; shape: string; options?: { fontColor?: string; }; } |
Remarks
As the background shapes and colors are decorative, we place them onto the page as a CSS background-image
instead of an HTML element of its own.