Prevent selection if typographics

This commit is contained in:
Thomas Nordquist
2019-04-08 14:00:22 +02:00
parent e89ca2bfa4
commit acbe20070b

View File

@@ -3,6 +3,9 @@ import { amber } from "@material-ui/core/colors";
const baseTheme = { const baseTheme = {
typography: { typography: {
allVariants: {
userSelect: 'none',
},
body1: { body1: {
fontSize: '0.9rem', fontSize: '0.9rem',
}, },
@@ -10,14 +13,14 @@ const baseTheme = {
} }
const lightTheme = createMuiTheme({ const lightTheme = createMuiTheme({
...baseTheme, ...(baseTheme as any),
palette: { palette: {
type: 'dark', type: 'dark',
}, },
}) })
const darkTheme = createMuiTheme({ const darkTheme = createMuiTheme({
...baseTheme, ...(baseTheme as any),
palette: { palette: {
type: 'light', type: 'light',
background: { background: {