Working on a create-react-app project, I have incorporated material-ui 1.x and customized the theme with unique breakpoints...
import { createMuiTheme } from '@material-ui/core/styles';
let customTheme = createMuiTheme({
breakpoints:{
values:{
xs: 0,
sm: 600,
md: 960,
lg: 1280,
xl: 1920
}
}
});
export default customTheme;
I am wondering if it's feasible to utilize these breakpoints within a .css file. Specifically, in a layout component where media queries are utilized...
...
@media screen
and (max-width: 850px) and (min-width: 640px){ /* <--- HERE */
.layout-content {
grid-template-columns: 1fr 200px 200px 200px 1fr;
grid-template-rows: 64px
auto
1fr
auto;
grid-template-areas: "h h h h h"
". l m m ."
". r m m ."
"f f f f f";
}
}
...
Is there a way to access the values for these css media queries directly from the materail-ui theme object?