@red-hat-developer-hub/backstage-plugin-theme
Version:
Red Hat Developer Hub Theme
27 lines (24 loc) • 769 B
JavaScript
import { customDarkTheme } from './darkTheme.esm.js';
import { customLightTheme } from './lightTheme.esm.js';
import { redHatFonts } from './fonts.esm.js';
import { typography } from './typography.esm.js';
const getDefaultThemeConfig = (mode) => {
const palette = mode === "dark" ? customDarkTheme() : customLightTheme();
return {
variant: "rhdh",
mode: mode === "dark" ? "dark" : "light",
palette,
fontFamily: redHatFonts.text,
typography,
defaultPageTheme: "default",
pageTheme: {
default: {
backgroundColor: mode === "dark" ? "#292929" : "#ffffff",
fontColor: mode === "dark" ? "#ffffff" : "#000000"
}
},
options: {}
};
};
export { getDefaultThemeConfig };
//# sourceMappingURL=rhdh.esm.js.map