-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d60d793
commit dec50f2
Showing
12 changed files
with
42 additions
and
12 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from './Theme'; | ||
export * from './Disclaimer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { getMuiThemeConfig } from './muiThemeConfig'; | ||
import { customTheme as rainbowTheme } from './rainbowTheme'; | ||
import { lightTheme, darkTheme } from './theme'; | ||
|
||
export const getCustomThemes = () => { | ||
return { | ||
main: { | ||
light: lightTheme, | ||
dark: darkTheme, | ||
}, | ||
mui: getMuiThemeConfig, | ||
rainbow: rainbowTheme, | ||
}; | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import { darkTheme, lightTheme } from '~/components/Theme'; | ||
import { getConfig } from '~/config'; | ||
import { Theme, ThemeName } from '~/types'; | ||
|
||
export const getTheme = (theme?: ThemeName): Theme => { | ||
const { dark, light } = getConfig().main; | ||
|
||
switch (theme) { | ||
case 'light': | ||
return lightTheme; | ||
return light; | ||
case 'dark': | ||
return darkTheme; | ||
return dark; | ||
default: | ||
return lightTheme; | ||
return light; | ||
} | ||
}; |