aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-06 22:33:28 +0300
committereug-vs <eug-vs@keemail.me>2020-06-06 22:33:28 +0300
commita23c4673ee2a59b45bc766df07aa208ee146e31e (patch)
tree37d08e077f215a3677ff96489075c0189d4497f3 /src
parentcb4c78bd4ea3c79c5cacbfd474ecddcf8db658ef (diff)
downloadwhich-ui-a23c4673ee2a59b45bc766df07aa208ee146e31e.tar.gz
feat: create initial theme
Diffstat (limited to 'src')
-rw-r--r--src/index.tsx19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/index.tsx b/src/index.tsx
index e858a17..9225909 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -1,19 +1,34 @@
import React, { useState } from 'react';
import ReactDOM from 'react-dom';
+
+import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles';
import { CssBaseline } from '@material-ui/core';
+import teal from '@material-ui/core/colors/teal';
import 'typeface-roboto';
import Header from './Header/Header';
+const theme = createMuiTheme({
+ palette: {
+ primary: {
+ main: teal[700],
+ },
+ text: {
+ primary: '#000000',
+ secondary: 'rgba(255, 255, 255, 0.6)',
+ },
+ },
+});
+
const App: React.FC = () => {
const [page, setPage] = useState('feed');
return (
- <>
+ <ThemeProvider theme={theme}>
<CssBaseline />
<Header page={page} setPage={setPage} />
<h1> Hello, world! </h1>
- </>
+ </ThemeProvider>
);
};