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

@ -13,7 +13,6 @@ import {
spectrumUrl,
blogUrl,
} from '../../../shared/utils/routeHelpers';
import { color } from '../../../shared/styles/constants';
function TopNavigation() {
return (
@ -65,16 +64,16 @@ function BottomNavigation() {
);
}
const MenuLinkStyle = `
const MenuLinkStyle = props => `
font-size: 15px;
font-weight: 500;
a {
color: ${color.slate};
color: ${props.theme.slate};
}
a:hover {
color: ${color.slateDark};
color: ${props.theme.slateDark};
text-decoration: underline;
}
`;
@ -141,7 +140,7 @@ const Brand = styled.a`
font-weight: 600;
font-size: 20px;
text-decoration: none;
color: ${color.black};
color: ${props => props.theme.black};
`;
export { TopNavigation, BottomNavigation };