more standalone styles added

This commit is contained in:
Daniel Shleifman
2022-06-19 17:50:45 +03:00
parent 33563b97c4
commit 23304ee821
13 changed files with 199 additions and 44 deletions

View File

@@ -1,4 +1,4 @@
import { createMuiTheme, useMediaQuery } from '@material-ui/core'
import { createTheme, useMediaQuery } from '@material-ui/core'
import { useEffect, useMemo, useState } from 'react'
import { mainColors } from './colors'
@@ -7,7 +7,7 @@ export const THEME_MODES = { LIGHT: 'light', DARK: 'dark', AUTO: 'auto' }
const typography = { fontFamily: 'Open Sans, sans-serif' }
export const darkTheme = createMuiTheme({
export const darkTheme = createTheme({
typography,
palette: {
type: THEME_MODES.DARK,
@@ -15,7 +15,7 @@ export const darkTheme = createMuiTheme({
secondary: { main: mainColors.dark.secondary },
},
})
export const lightTheme = createMuiTheme({
export const lightTheme = createTheme({
typography,
palette: {
type: THEME_MODES.LIGHT,
@@ -45,7 +45,7 @@ export const useMaterialUITheme = () => {
const muiTheme = useMemo(
() =>
createMuiTheme({
createTheme({
typography,
palette: {
type: theme,