@mui/system#Theme TypeScript Examples
The following examples show how to use
@mui/system#Theme.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.tsx From ExpressLRS-Configurator with GNU General Public License v3.0 | 6 votes |
styles: SxProps<Theme> = {
root: {
minHeight: '500px',
maxHeight: '500px',
overflowY: 'auto',
overflowX: 'hidden',
},
logs: {
whiteSpace: 'pre-wrap',
wordWrap: 'break-word',
},
}
Example #2
Source File: layout.tsx From usehooks-ts with MIT License | 6 votes |
CustomScrollbar = ({ theme }: { theme: Theme }) => (
<GlobalStyles
styles={css`
*::-webkit-scrollbar {
width: ${theme.spacing(1.5)};
border-radius: ${theme.shape.borderRadius}px;
}
*::-webkit-scrollbar-track {
background: ${theme.palette.background.default};
}
*::-webkit-scrollbar-thumb {
background: ${theme.palette.divider};
border-radius: ${theme.shape.borderRadius}px;
border: 3px solid ${theme.palette.background.default};
}
*::-webkit-scrollbar-thumb:hover {
background: ${theme.palette.divider};
}
`}
/>
)
Example #3
Source File: index.tsx From ExpressLRS-Configurator with GNU General Public License v3.0 | 5 votes |
styles: SxProps<Theme> = {
errorMessage: {
a: {
color: 'white',
},
},
}