UNPKG

@selfcommunity/react-theme-default

Version:

Default theme to use with SelfCommunity TS library

40 lines (39 loc) 1.43 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const material_1 = require("@mui/material"); const Component = { styleOverrides: { root: ({ theme }) => ({ padding: theme.spacing(2), [theme.breakpoints.up('sm')]: { paddingBottom: theme.spacing(5) }, height: '100%', display: 'flex', flexDirection: 'column', justifyContent: 'space-between', '& .SCLessonEditForm-contrast-color': { color: (0, material_1.getContrastRatio)(theme.palette.background.paper, theme.palette.common.white) > 4.5 ? (0, material_1.lighten)(theme.palette.common.white, 0.5) : (0, material_1.darken)(theme.palette.common.white, 0.5) }, '& .SCLessonEditForm-form': { display: 'flex', flexDirection: 'column' }, '& .MuiFormLabel-root': { fontWeight: 700, color: 'inherit', '& .Mui-focused': { color: 'inherit' } }, '& .SCLessonEditForm-settings': { marginTop: theme.spacing(2) }, '& .SCLessonEditForm-button': { alignSelf: 'center', marginBottom: theme.spacing(3) } }) } }; exports.default = Component;