aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/index.tsx
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-18 16:15:12 +0800
committerFabio Berger <me@fabioberger.com>2017-12-18 16:15:12 +0800
commitdf9d3e3e16e5a00ea84369691c46a6e4a6a53049 (patch)
tree18dbcd29fa9f5dd41dc4c4072aaafe9e2026e5d6 /packages/website/ts/index.tsx
parent98c01c2f8097c849c53d87a4946edfd4fba94495 (diff)
downloaddexon-sol-tools-df9d3e3e16e5a00ea84369691c46a6e4a6a53049.tar
dexon-sol-tools-df9d3e3e16e5a00ea84369691c46a6e4a6a53049.tar.gz
dexon-sol-tools-df9d3e3e16e5a00ea84369691c46a6e4a6a53049.tar.bz2
dexon-sol-tools-df9d3e3e16e5a00ea84369691c46a6e4a6a53049.tar.lz
dexon-sol-tools-df9d3e3e16e5a00ea84369691c46a6e4a6a53049.tar.xz
dexon-sol-tools-df9d3e3e16e5a00ea84369691c46a6e4a6a53049.tar.zst
dexon-sol-tools-df9d3e3e16e5a00ea84369691c46a6e4a6a53049.zip
Consolidate all custom colors and material-ui colors into a colors module
Diffstat (limited to 'packages/website/ts/index.tsx')
-rw-r--r--packages/website/ts/index.tsx39
1 files changed, 18 insertions, 21 deletions
diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx
index 69bb03dce..ba08eef16 100644
--- a/packages/website/ts/index.tsx
+++ b/packages/website/ts/index.tsx
@@ -3,7 +3,7 @@ import 'whatwg-fetch';
import {bigNumberConfigs} from '@0xproject/utils';
import BigNumber from 'bignumber.js';
-import {colors, getMuiTheme, MuiThemeProvider} from 'material-ui/styles';
+import {getMuiTheme, MuiThemeProvider} from 'material-ui/styles';
import * as React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
@@ -20,6 +20,7 @@ import {NotFound} from 'ts/pages/not_found';
import {Wiki} from 'ts/pages/wiki/wiki';
import {reducer, State} from 'ts/redux/reducer';
import {WebsitePaths} from 'ts/types';
+import {colors} from 'ts/utils/colors';
import {constants} from 'ts/utils/constants';
injectTapEventPlugin();
@@ -29,43 +30,39 @@ bigNumberConfigs.configure();
tradeHistoryStorage.clearIfRequired();
trackedTokenStorage.clearIfRequired();
-const CUSTOM_GREY = 'rgb(39, 39, 39)';
-const CUSTOM_GREEN = 'rgb(102, 222, 117)';
-const CUSTOM_DARKER_GREEN = 'rgb(77, 197, 92)';
-
import 'basscss/css/basscss.css';
import 'less/all.less';
const muiTheme = getMuiTheme({
appBar: {
height: 45,
- color: 'white',
- textColor: 'black',
+ color: colors.white,
+ textColor: colors.black,
},
palette: {
- pickerHeaderColor: constants.CUSTOM_BLUE,
- primary1Color: constants.CUSTOM_BLUE,
- primary2Color: constants.CUSTOM_BLUE,
+ pickerHeaderColor: colors.lightBlue,
+ primary1Color: colors.lightBlue,
+ primary2Color: colors.lightBlue,
textColor: colors.grey700,
},
datePicker: {
color: colors.grey700,
- textColor: 'white',
- calendarTextColor: 'white',
- selectColor: CUSTOM_GREY,
- selectTextColor: 'white',
+ textColor: colors.white,
+ calendarTextColor: colors.white,
+ selectColor: colors.darkestGray,
+ selectTextColor: colors.white,
},
timePicker: {
color: colors.grey700,
- textColor: 'white',
- accentColor: 'white',
- headerColor: CUSTOM_GREY,
- selectColor: CUSTOM_GREY,
- selectTextColor: CUSTOM_GREY,
+ textColor: colors.white,
+ accentColor: colors.white,
+ headerColor: colors.darkestGray,
+ selectColor: colors.darkestGray,
+ selectTextColor: colors.darkestGray,
},
toggle: {
- thumbOnColor: CUSTOM_GREEN,
- trackOnColor: CUSTOM_DARKER_GREEN,
+ thumbOnColor: colors.limeGreen,
+ trackOnColor: colors.lightGreen,
},
});