@material-ui/core#responsiveFontSizes JavaScript Examples
The following examples show how to use
@material-ui/core#responsiveFontSizes.
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.js From turinghut-website with BSD Zero Clause License | 5 votes |
theme = responsiveFontSizes(theme);
Example #2
Source File: Themes.js From personal-website-react with MIT License | 4 votes |
LightTheme = responsiveFontSizes(
createMuiTheme({
palette: {
type: 'light',
primary: {
main: primary,
},
secondary: {
main: secondary,
},
background: {
default: white,
},
foreground: {
default: black,
},
},
typography: {
fontSize: 16,
htmlFontSize: 16,
h2: {
fontWeight: 500,
},
h5: {
fontWeight: 500,
fontFamily: 'Roboto Mono, monospace',
},
body1: {
fontWeight: 500,
fontFamily: 'Roboto Mono, monospace',
},
},
overrides: {
MuiCssBaseline: {
'@global': {
body: {
color: black,
backgroundColor: white,
},
},
},
MuiIconButton: {
root: {
boxShadow:
'0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)',
'&:hover': {
backgroundColor: primary,
},
transition: 'all 0.5s ease',
},
},
MuiFab: {
root: {
width: '2.5rem',
height: '2.5rem',
fontSize: '1.25rem',
},
primary: {
color: black,
backgroundColor: 'transparent',
'&:hover': {
color: black,
backgroundColor: primary,
},
transition: 'all 0.5s ease !important',
},
},
MuiSpeedDialAction: {
fab: {
color: white,
backgroundColor: 'transparent',
'&:hover': {
color: white,
backgroundColor: primary,
},
transition: 'all 0.5s ease',
margin: '0px',
marginBottom: '16px',
},
},
MuiTooltip: {
tooltip: {
fontFamily: 'Roboto Mono, monospace',
backgroundColor: primary,
color: black,
fontSize: 11,
},
},
},
})
)
Example #3
Source File: Themes.js From personal-website-react with MIT License | 4 votes |
DarkTheme = responsiveFontSizes(
createMuiTheme({
palette: {
type: 'dark',
primary: {
main: primary,
},
secondary: {
main: secondary,
},
background: {
default: black,
},
foreground: {
default: white,
},
},
typography: {
fontSize: 16,
htmlFontSize: 16,
h2: {
fontWeight: 500,
},
h5: {
fontWeight: 500,
fontFamily: 'Roboto Mono, monospace',
},
body1: {
fontWeight: 500,
fontFamily: 'Roboto Mono, monospace',
},
},
overrides: {
MuiCssBaseline: {
'@global': {
body: {
color: white,
backgroundColor: black,
},
},
},
MuiIconButton: {
root: {
boxShadow:
'0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)',
'&:hover': {
backgroundColor: primary,
},
transition: 'all 0.5s ease',
},
},
MuiFab: {
root: {
width: '2.5rem',
height: '2.5rem',
fontSize: '1.25rem',
},
primary: {
color: white,
backgroundColor: 'transparent',
'&:hover': {
color: white,
backgroundColor: primary,
},
transition: 'all 0.5s ease !important',
},
},
MuiSpeedDialAction: {
fab: {
color: white,
backgroundColor: 'transparent',
'&:hover': {
color: white,
backgroundColor: primary,
},
transition: 'all 0.5s ease',
margin: '0px',
marginBottom: '16px',
},
},
MuiTooltip: {
tooltip: {
fontFamily: 'Roboto Mono, monospace',
backgroundColor: primary,
color: white,
fontSize: 11,
},
},
},
})
)