-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial use of styled-components
- Loading branch information
1 parent
67d8736
commit 6a89656
Showing
5 changed files
with
127 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* @format */ | ||
|
||
/** | ||
* External dependencies | ||
*/ | ||
import styled from 'styled-components'; | ||
|
||
export const Container = styled.div` | ||
@media (${props => props.theme.breakpoints.tabletUp}) { | ||
display: flex; | ||
align-items: flex-start; | ||
justify-content: space-between; | ||
max-width: 910px; | ||
margin: 0 auto; | ||
} | ||
`; | ||
|
||
const Column = styled.div` | ||
background: ${props => props.theme.colours.white}; | ||
padding: 16px; | ||
width: 100%; | ||
box-sizing: border-box; | ||
@media (${props => props.theme.breakpoints.tabletUp}) { | ||
border: 1px solid ${props => props.theme.colours.gray5}; | ||
margin-top: 32px; | ||
box-sizing: border-box; | ||
padding: 24px; | ||
} | ||
`; | ||
|
||
export const LeftColumn = styled(Column)` | ||
@media (${props => props.theme.breakpoints.tabletUp}) { | ||
max-width: 532px; | ||
} | ||
`; | ||
|
||
export const PageTitle = styled.h1` | ||
margin: 0; | ||
font-weight: normal; | ||
font-size: 24px; | ||
color: ${props => props.theme.colours.black}; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* @format */ | ||
|
||
const theme = { | ||
colours: { | ||
blue5: '#BEDAE6', | ||
blue40: '#187AA2', | ||
blue80: '#002C40', | ||
gray0: '#F6F7F7', | ||
gray5: '#DCDCDE', | ||
gray10: '#C3C4C7', | ||
gray20: '#A7AAAD', | ||
gray30: '#8E9196', | ||
gray50: '#646970', | ||
gray80: '#2C3338', | ||
pink70: '#8C1749', | ||
green50: '#008A20', | ||
red50: '#D63638', | ||
red0: '#F7EBEC', | ||
highlight: '#006088', | ||
background: '#F6F7F7', | ||
primary: '#C9356E', | ||
white: '#FFF', | ||
black: '#000', | ||
paypalGold: '#F0C443', | ||
paypalGoldHover: '#FFB900', | ||
}, | ||
breakpoints: { | ||
tabletUp: 'min-width: 700px', | ||
}, | ||
}; | ||
|
||
export default theme; |