Themes: init

This commit is contained in:
He4eT 2021-02-19 19:08:31 +05:00
commit cbc6207ad9
9 changed files with 108 additions and 46 deletions

15
src/themes/themes.js Normal file
View file

@ -0,0 +1,15 @@
export const themeList = [
'default',
'default-dark',
'nord',
'solarized-dark',
'solarized-light',
'_raw'
]
export const DEFAULT_THEME = themeList[0]
export const assertTheme = theme =>
themeList.includes(theme)
? theme
: DEFAULT_THEME