diff options
author | eug-vs <eug-vs@keemail.me> | 2020-06-06 22:33:28 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-06-06 22:33:28 +0300 |
commit | a23c4673ee2a59b45bc766df07aa208ee146e31e (patch) | |
tree | 37d08e077f215a3677ff96489075c0189d4497f3 /src/index.tsx | |
parent | cb4c78bd4ea3c79c5cacbfd474ecddcf8db658ef (diff) | |
download | which-ui-a23c4673ee2a59b45bc766df07aa208ee146e31e.tar.gz |
feat: create initial theme
Diffstat (limited to 'src/index.tsx')
-rw-r--r-- | src/index.tsx | 19 |
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> ); }; |