Implements color variables and updates components

This commit is contained in:
Megan Pearson
2018-10-19 09:37:14 +02:00
committed by August Skare
parent 580e574c84
commit 47b281b754
8 changed files with 29 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
import * as React from 'react';
import styled from 'styled-components';
import variables from '../variables';
import { withContext, Props } from './withContext';
import { Alpha, Beta, Gamma } from './Typography';
@@ -97,7 +98,7 @@ const StyledSection =
`
max-width: 90rem;
margin: 0 auto;
background: linear-gradient(to right, #000 50%, ${props => props.background} 50%);
background: linear-gradient(to right, ${variables.colors.black} 50%, ${props => props.background} 50%);
padding-top: 6.25rem;
padding-bottom: 5.25rem;
`;