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/src/themes | |
parent | 680ede3df68b868f38b0207f4c0829e93181f161 (diff) | |
download | git-bug-548febcbc7af50e8f33c393d481fa253f27aa795.tar.gz |
Define each theme in own file under themes dir
Diffstat (limited to 'webui/src/themes')
-rw-r--r-- | webui/src/themes/DefaultDark.ts | 12 | ||||
-rw-r--r-- | webui/src/themes/DefaultLight.ts | 12 | ||||
-rw-r--r-- | webui/src/themes/index.ts | 4 |
3 files changed, 28 insertions, 0 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/themes/DefaultLight.ts b/webui/src/themes/DefaultLight.ts new file mode 100644 index 00000000..3a404fd5 --- /dev/null +++ b/webui/src/themes/DefaultLight.ts @@ -0,0 +1,12 @@ +import { createMuiTheme } from '@material-ui/core/styles'; + +const defaultLightTheme = createMuiTheme({ + palette: { + type: 'light', + primary: { + main: '#263238', + }, + }, +}); + +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 }; |