@material-ui/core/styles#responsiveFontSizes TypeScript Examples

The following examples show how to use @material-ui/core/styles#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: default.tsx    From gatsby-theme-pristine with Apache License 2.0 6 votes vote down vote up
lightTheme = responsiveFontSizes(createMuiTheme({
  props: {
    MuiAppBar: {
      position: "sticky",
    },
    MuiCard: {
      elevation: 0,
    },
  },
  overrides: {
    MuiAppBar: {
      root: {
        background: "#fff !important",
      },
    },
  },
  palette: {
    text: {
      primary: grey[900],
    },
    background: {
      default: "#fff",
    },
  },
  typography,
}))
Example #2
Source File: default.tsx    From gatsby-theme-pristine with Apache License 2.0 6 votes vote down vote up
darkTheme = responsiveFontSizes(createMuiTheme({
  props: {
    MuiAppBar: {
      position: "sticky",
    },
    MuiCard: {
      elevation: 0,
    },
  },
  palette: {
    type: "dark",
    text: {
      primary: grey[400],
    },
    background: {
      default: grey[900],
      paper: grey[800],
    },
  },
  overrides: {
    MuiTable: {
      root: {
        background: "transparent !important",
      },
    },
    MuiTypography: {
      root: {
        color: grey[400],
      },
    },
  },
  typography,
}))
Example #3
Source File: theme.ts    From log4brains with Apache License 2.0 4 votes vote down vote up
theme: CustomTheme = {
  ...responsiveFontSizes(
    createMuiTheme({
      palette: {
        primary: {
          main: primary
        },
        secondary: {
          main: "#FF007B"
        },
        error: {
          main: red.A400
        },
        background: {
          default: "#fff"
        }
      },
      typography: {
        fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
        h1: {
          fontFamily: titleFontFamily
        },
        h2: {
          fontFamily: titleFontFamily
        },
        h3: {
          fontFamily: titleFontFamily,
          lineHeight: 1.1
        },
        h4: {
          fontFamily: titleFontFamily
        },
        h5: {
          fontFamily: titleFontFamily
        },
        h6: {
          fontFamily: titleFontFamily
        }
      },
      props: {
        MuiLink: {
          underline: "none"
        }
      },
      overrides: {
        MuiCssBaseline: {
          "@global": {
            html: {
              maxWidth: "100%"
            },
            body: {
              padding: "0 !important", // for storybook
              maxWidth: "100%"
            },
            blockquote: {
              margin: 0,
              padding: "0 1em",
              borderLeft: "0.25em solid #F8F8F8",
              color: "#9e9e9e"
            }
          }
        },
        MuiLink: {
          root: {
            "&:hover": {
              color: darken(primary, 0.3)
            }
          }
        }
      },
      breakpoints: {
        values: {
          xs: 0,
          sm: 900,
          md: 1060,
          lg: 1280,
          xl: 1920
        }
      }
    })
  ),
  custom: {
    layout: {
      centerColBasis: 750 + 4 * 8,
      centerColPadding: 4 * 8,
      rightColBasis: 180
    }
  }
}