ThemeProvider (#677)

closes #655
This commit is contained in:
Tom Moor
2018-06-09 19:10:30 -07:00
committed by GitHub
parent 0942deec38
commit 434129a434
50 changed files with 277 additions and 324 deletions

View File

@ -3,7 +3,6 @@ import * as React from 'react';
import { observable } from 'mobx';
import { observer, inject } from 'mobx-react';
import { injectGlobal } from 'styled-components';
import { color } from 'shared/styles/constants';
import importFile from 'utils/importFile';
import invariant from 'invariant';
import _ from 'lodash';
@ -25,12 +24,12 @@ type Props = {
// eslint-disable-next-line
injectGlobal`
.activeDropZone {
background: ${color.slateDark};
svg { fill: ${color.white}; }
background: ${props => props.theme.slateDark};
svg { fill: ${props => props.theme.white}; }
}
.activeDropZone a {
color: ${color.white} !important;
color: ${props => props.theme.white} !important;
}
`;