@material-ui/core/styles#responsiveFontSizes JavaScript 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: theme.js    From dscbppimt-official-website with MIT License 6 votes vote down vote up
lightTheme = responsiveFontSizes(createTheme({
    typography: {...typography},
    palette: {
      type : 'light',
      primary: {
        main: '#1FA9E5',
      },
      secondary : {
        main : '#fff',
      },
    },
  }))
Example #2
Source File: theme.js    From dscbppimt-official-website with MIT License 6 votes vote down vote up
darkTheme = responsiveFontSizes(createTheme({
    typography: {...typography},
    palette: {
      type : 'dark',
      primary: {
        main: '#1FA9E5',
      },
      secondary : {
        main : '#000',
      },
    },
  }))
Example #3
Source File: theme.jsx    From test-deploy-gatsby-apps with BSD Zero Clause License 6 votes vote down vote up
theme = responsiveFontSizes(
  createMuiTheme({
    palette: {
      primary: {
        main: "#FFFFFF",
      },
      secondary: {
        main: "#000000",
        light: "rgba(255, 255, 255, 0.6)",
        800: "#606060",
        500: "#c2c2c2",
        400: "#DEDEDE",
        200: "#f5f5f5",
      },
      text: {
        primary: "rgba(0,0,0,1)",
        secondary: "rgba(0,0,0,0.6)",
      },
    },
  })
)
Example #4
Source File: index.js    From neighborhood-chef-fe with MIT License 5 votes vote down vote up
theme = responsiveFontSizes(
  createMuiTheme({
    overrides: {
      MuiButton: {
        root: {
          "&$disabled": {
            opacity: ".4",
            background: "rgba(88, 212, 115, 0.6)",
          },
        },
      },
    },
    breakpoints: {
      values: {
        xs: 0,
        sm: 600,
        md: 700,
        lg: 1280,
        xl: 1920,
      },
    },
    typography: {
      h1: {
        fontSize: "5rem",
      },
      h2: {
        fontSize: "4.5rem",
      },
      h3: {
        fontSize: "3.5rem",
      },
      h4: {
        fontSize: "3rem",
      },
      h5: {
        fontSize: "2.4rem",
      },
      h6: {
        fontSize: "1.8rem",
      },
      caption: {
        fontSize: "1.5rem",
      },
      body1: {
        fontSize: "1.7rem",
      },
      body2: {
        fontSize: "1.2rem",
      },
    },
    palette: {
      textSecondary: { color: "rgba(0, 0, 0, 0.6)" },
    },
  })
)
Example #5
Source File: index.js    From reminder-atomic-app-demo with MIT License 5 votes vote down vote up
responsiveFontTheme = responsiveFontSizes(baseTheme)
Example #6
Source File: theme.js    From likelihood with MIT License 5 votes vote down vote up
theme = responsiveFontSizes(theme);
Example #7
Source File: create-theme.js    From sav3-react with Do What The F*ck You Want To Public License 5 votes vote down vote up
createTheme = (muiThemeOptions) => {
  let theme = createMuiTheme(merge({}, baseMuiThemeOptions, muiThemeOptions))
  theme = responsiveFontSizes(theme)
  return theme
}