mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 09:27:23 +00:00
Themes: init
This commit is contained in:
parent
251fa153f0
commit
cbc6207ad9
9 changed files with 108 additions and 46 deletions
15
src/themes/themes.js
Normal file
15
src/themes/themes.js
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue