Skip to content
This repository was archived by the owner on Jan 2, 2021. It is now read-only.

Commit 721b7e6

Browse files
committed
2 parents 87ccbb8 + 34f0a77 commit 721b7e6

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ const theme = {
3333
foreground: 'white',
3434
gray: '#3f4e60',
3535
grayAlt: '#222e3e',
36+
inputBackgroundColor: '#fff',
37+
inputTextColor: '#000',
3638
success: '#00ab52',
3739
danger: '#ff0085',
3840
active: '#006bff',

src/styledComponents.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,19 @@ export const Code = styled('code', {
6767
fontSize: '.9em',
6868
})
6969

70-
export const Input = styled('input', {
70+
export const Input = styled('input', (props, theme) => ({
71+
backgroundColor: theme.inputBackgroundColor,
7172
border: 0,
7273
borderRadius: '.2em',
74+
color: theme.inputTextColor,
7375
fontSize: '.9em',
76+
lineHeight: `1.3`,
7477
padding: '.3em .4em',
75-
})
78+
}))
7679

7780
export const Select = styled(
7881
'select',
79-
{
82+
(props, theme) => ({
8083
display: `inline-block`,
8184
fontSize: `.9em`,
8285
fontFamily: `sans-serif`,
@@ -88,12 +91,13 @@ export const Select = styled(
8891
borderRadius: `.2em`,
8992
appearance: `none`,
9093
WebkitAppearance: 'none',
91-
backgroundColor: `#fff`,
94+
backgroundColor: theme.inputBackgroundColor,
9295
backgroundImage: `url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>")`,
9396
backgroundRepeat: `no-repeat`,
9497
backgroundPosition: `right .55em center`,
9598
backgroundSize: `.65em auto, 100%`,
96-
},
99+
color: theme.inputTextColor,
100+
}),
97101
{
98102
'(max-width: 500px)': {
99103
display: 'none',

0 commit comments

Comments
 (0)