Skip to main content

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

ParameterTypeDescription
props{ colors: string[]; shape: string; options?: { fontColor?: string; }; }

Returns:

PageTheme

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.