aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/theme.ts
diff options
context:
space:
mode:
authorSascha <GlancingMind@outlook.com>2021-03-01 17:47:57 +0100
committerSascha <GlancingMind@outlook.com>2021-03-04 20:53:28 +0100
commit9cac03652c410f943abe1e3a6b55dce0d79e48d6 (patch)
tree0f235e6e5cc9731923bee2620ac22fe2f778b7b2 /webui/src/theme.ts
parent9280e437b06c1812d9b4a62f18686878f9b7a769 (diff)
downloadgit-bug-9cac03652c410f943abe1e3a6b55dce0d79e48d6.tar.gz
Inject theme instead of defining it in Themer.tsx
Diffstat (limited to 'webui/src/theme.ts')
-rw-r--r--webui/src/theme.ts13
1 files changed, 11 insertions, 2 deletions
diff --git a/webui/src/theme.ts b/webui/src/theme.ts
index 3d536941..67c24526 100644
--- a/webui/src/theme.ts
+++ b/webui/src/theme.ts
@@ -1,6 +1,15 @@
import { createMuiTheme } from '@material-ui/core/styles';
-const theme = createMuiTheme({
+const defaultLightTheme = createMuiTheme({
+ palette: {
+ type: 'light',
+ primary: {
+ main: '#263238',
+ },
+ },
+});
+
+const defaultDarkTheme = createMuiTheme({
palette: {
type: 'dark',
primary: {
@@ -9,4 +18,4 @@ const theme = createMuiTheme({
},
});
-export default theme;
+export { defaultLightTheme, defaultDarkTheme };