Prevent selection if typographics
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user