diff options
author | Sascha <GlancingMind@outlook.com> | 2021-03-02 13:29:36 +0100 |
---|---|---|
committer | Sascha <GlancingMind@outlook.com> | 2021-03-04 20:53:28 +0100 |
commit | 548febcbc7af50e8f33c393d481fa253f27aa795 (patch) | |
tree | b6d42ab4f80ee3eaaeffcbb64d798e2b9cde099c /webui | |
parent | 680ede3df68b868f38b0207f4c0829e93181f161 (diff) | |
download | git-bug-548febcbc7af50e8f33c393d481fa253f27aa795.tar.gz |
Define each theme in own file under themes dir
Diffstat (limited to 'webui')
-rw-r--r-- | webui/src/themes/DefaultDark.ts | 12 | ||||
-rw-r--r-- | webui/src/themes/DefaultLight.ts (renamed from webui/src/theme.ts) | 11 | ||||
-rw-r--r-- | webui/src/themes/index.ts | 4 |
3 files changed, 17 insertions, 10 deletions
diff --git a/webui/src/themes/DefaultDark.ts b/webui/src/themes/DefaultDark.ts new file mode 100644 index 00000000..8d961caa --- /dev/null +++ b/webui/src/themes/DefaultDark.ts @@ -0,0 +1,12 @@ +import { createMuiTheme } from '@material-ui/core/styles'; + +const defaultDarkTheme = createMuiTheme({ + palette: { + type: 'dark', + primary: { + main: '#263238', + }, + }, +}); + +export default defaultDarkTheme; diff --git a/webui/src/theme.ts b/webui/src/themes/DefaultLight.ts index 67c24526..3a404fd5 100644 --- a/webui/src/theme.ts +++ b/webui/src/themes/DefaultLight.ts @@ -9,13 +9,4 @@ const defaultLightTheme = createMuiTheme({ }, }); -const defaultDarkTheme = createMuiTheme({ - palette: { - type: 'dark', - primary: { - main: '#263238', - }, - }, -}); - -export { defaultLightTheme, defaultDarkTheme }; +export default defaultLightTheme; diff --git a/webui/src/themes/index.ts b/webui/src/themes/index.ts new file mode 100644 index 00000000..6c41c546 --- /dev/null +++ b/webui/src/themes/index.ts @@ -0,0 +1,4 @@ +import defaultDarkTheme from './DefaultDark'; +import defaultLightTheme from './DefaultLight'; + +export { defaultLightTheme, defaultDarkTheme }; |