Skip to main content

createBaseThemeOptions()

Home > @backstage/theme > createBaseThemeOptions

A helper for creating theme options.

Signature:

function createBaseThemeOptions<PaletteOptions>(options: BaseThemeOptionsInput<PaletteOptions>): {
palette: PaletteOptions;
typography: BackstageTypography;
page: PageTheme;
getPageTheme: ({ themeId }: PageThemeSelector) => PageTheme;
};

Parameters

ParameterTypeDescription
optionsBaseThemeOptionsInput<PaletteOptions>

Returns:

{ palette: PaletteOptions; typography: BackstageTypography; page: PageTheme; getPageTheme: ({ themeId }: PageThemeSelector) => PageTheme; }