Browse Source

Merge pull request #168 from meriadec/master

Update colors
master
Loëck Vézien 7 years ago
committed by GitHub
parent
commit
a51efb0656
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/components/Breadcrumb/Step.js
  2. 6
      src/components/DashboardPage/AccountCard.js
  3. 2
      src/components/DashboardPage/AccountsOrder.js
  4. 2
      src/components/DashboardPage/BalanceInfos.js
  5. 2
      src/components/DashboardPage/index.js
  6. 6
      src/components/DevTools.js
  7. 5
      src/components/GlobalSearch.js
  8. 2
      src/components/ReceiveBox.js
  9. 2
      src/components/RecipientAddress/index.js
  10. 2
      src/components/SelectAccount/index.js
  11. 11
      src/components/SideBar/Item.js
  12. 2
      src/components/SideBar/index.js
  13. 11
      src/components/TopBar.js
  14. 12
      src/components/TransactionsList/index.js
  15. 2
      src/components/UpdateNotifier.js
  16. 2
      src/components/base/Button/index.js
  17. 4
      src/components/base/CheckBox/index.js
  18. 2
      src/components/base/DropDown/index.js
  19. 2
      src/components/base/FormattedVal.js
  20. 4
      src/components/base/GrowScroll/stories.js
  21. 2
      src/components/base/Input/index.js
  22. 2
      src/components/base/Overlay.js
  23. 6
      src/components/base/Pills/index.js
  24. 6
      src/components/base/Radio/index.js
  25. 8
      src/components/base/Select/index.js
  26. 6
      src/components/base/Tabs/index.js
  27. 2
      src/components/layout/Default.js
  28. 2
      src/components/modals/AddAccount/RestoreAccounts.js
  29. 2
      src/components/modals/AddAccount/index.js
  30. 2
      src/components/modals/Receive.js
  31. 4
      src/components/modals/Send.js
  32. 2
      src/components/modals/SettingsAccount.js
  33. 34
      src/styles/theme.js

8
src/components/Breadcrumb/Step.js

@ -8,7 +8,7 @@ import Box from 'components/base/Box'
const Wrapper = styled(Box).attrs({ const Wrapper = styled(Box).attrs({
align: 'center', align: 'center',
justify: 'center', justify: 'center',
color: p => (p.isActive ? 'blue' : 'mouse'), color: p => (p.isActive ? 'wallet' : 'mouse'),
})` })`
width: 40px; width: 40px;
flex-shrink: 0; flex-shrink: 0;
@ -20,13 +20,13 @@ const Number = styled(Box).attrs({
align: 'center', align: 'center',
justify: 'center', justify: 'center',
color: p => (p.isActive ? 'white' : 'mouse'), color: p => (p.isActive ? 'white' : 'mouse'),
bg: p => (p.isActive ? 'blue' : 'pearl'), bg: p => (p.isActive ? 'wallet' : 'pearl'),
})` })`
width: 20px; width: 20px;
height: 20px; height: 20px;
border-radius: 50%; border-radius: 50%;
font-size: 9px; font-size: 9px;
box-shadow: ${p => `0 0 0 ${p.isActive ? 4 : 0}px ${p.theme.colors.cream}`}; box-shadow: ${p => `0 0 0 ${p.isActive ? 4 : 0}px ${p.theme.colors.lightGrey}`};
transition: all ease-in-out 0.1s ${p => (p.isActive ? 0.4 : 0)}s; transition: all ease-in-out 0.1s ${p => (p.isActive ? 0.4 : 0)}s;
` `
@ -45,7 +45,7 @@ const Bar = styled.div`
top: 0; top: 0;
bottom: 0; bottom: 0;
position: absolute; position: absolute;
background: ${p => p.theme.colors.blue}; background: ${p => p.theme.colors.wallet};
transition: transform ease-in-out 0.4s; transition: transform ease-in-out 0.4s;
transform-origin: center left; transform-origin: center left;
transform: scaleX(${p => (p.isActive ? 1 : 0)}); transform: scaleX(${p => (p.isActive ? 1 : 0)});

6
src/components/DashboardPage/AccountCard.js

@ -23,11 +23,11 @@ const AccountCard = ({
return ( return (
<Card p={4} flow={4} flex={1} style={{ cursor: 'pointer' }} onClick={onClick}> <Card p={4} flow={4} flex={1} style={{ cursor: 'pointer' }} onClick={onClick}>
<Box horizontal ff="Open Sans|SemiBold" flow={3} alignItems="center"> <Box horizontal ff="Open Sans|SemiBold" flow={3} alignItems="center">
<Box alignItems="center" justifyContent="center" style={{ color: '#fcb653' }}> <Box alignItems="center" justifyContent="center" style={{ color: account.currency.color }}>
{Icon && <Icon size={20} />} {Icon && <Icon size={20} />}
</Box> </Box>
<Box> <Box>
<Box style={{ textTransform: 'uppercase' }} fontSize={0} color="warmGrey"> <Box style={{ textTransform: 'uppercase' }} fontSize={0} color="graphite">
{account.unit.code} {account.unit.code}
</Box> </Box>
<Box fontSize={4} color="dark"> <Box fontSize={4} color="dark">
@ -48,7 +48,7 @@ const AccountCard = ({
<AreaChart <AreaChart
tiny tiny
id={`account-chart-${account.id}`} id={`account-chart-${account.id}`}
color="#fcb653" color={account.currency.color}
height={52} height={52}
data={data} data={data}
strokeWidth={1} strokeWidth={1}

2
src/components/DashboardPage/AccountsOrder.js

@ -27,7 +27,7 @@ import IconArrowUp from 'icons/ArrowUp'
const OrderIcon = styled(Box).attrs({ const OrderIcon = styled(Box).attrs({
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',
color: 'dodgerBlue', color: 'wallet',
})` })`
opacity: ${p => (p.isActive ? 1 : 0)}; opacity: ${p => (p.isActive ? 1 : 0)};
` `

2
src/components/DashboardPage/BalanceInfos.js

@ -23,7 +23,7 @@ type Props = {
const Sub = styled(Text).attrs({ const Sub = styled(Text).attrs({
ff: 'Open Sans', ff: 'Open Sans',
color: 'warmGrey', color: 'graphite',
fontSize: 4, fontSize: 4,
})`` })``

2
src/components/DashboardPage/index.js

@ -229,7 +229,7 @@ class DashboardPage extends PureComponent<Props, State> {
<Box px={6}> <Box px={6}>
<BalanceInfos since={selectedTime} /> <BalanceInfos since={selectedTime} />
</Box> </Box>
<Box ff="Open Sans" fontSize={4} color="warmGrey"> <Box ff="Open Sans" fontSize={4} color="graphite">
<AreaChart <AreaChart
id="dashboard-chart" id="dashboard-chart"
margin={{ margin={{

6
src/components/DevTools.js

@ -78,7 +78,7 @@ const fontSizes: Array<SimpleType> = theme.fontSizes.map((s, i) => ({
})) }))
const Container = styled(Box).attrs({ const Container = styled(Box).attrs({
bg: 'night', bg: 'dark',
p: 5, p: 5,
grow: true, grow: true,
color: 'white', color: 'white',
@ -98,7 +98,7 @@ const Items = styled(Box).attrs({
const Item = styled(Box).attrs({ const Item = styled(Box).attrs({
alignItems: 'center', alignItems: 'center',
bg: 'night', bg: 'dark',
borderRadius: 1, borderRadius: 1,
color: 'white', color: 'white',
justifyContent: 'center', justifyContent: 'center',
@ -276,7 +276,7 @@ class DevTools extends PureComponent<any, State> {
} }
const Color = ({ onClick, color }: { onClick: Function, color: ColorType }) => ( const Color = ({ onClick, color }: { onClick: Function, color: ColorType }) => (
<Item bg={color.val} color={color.isDark ? 'white' : 'night'} onClick={onClick}> <Item bg={color.val} color={color.isDark ? 'white' : 'dark'} onClick={onClick}>
{color.name} {color.name}
</Item> </Item>
) )

5
src/components/GlobalSearch.js

@ -14,7 +14,6 @@ const Container = styled(Box).attrs({
horizontal: true, horizontal: true,
ff: 'Open Sans|SemiBold', ff: 'Open Sans|SemiBold',
fontSize: 4, fontSize: 4,
color: p => (p.isFocused ? 'dark' : 'warmGrey'),
})`` })``
const Input = styled.input` const Input = styled.input`
@ -22,10 +21,6 @@ const Input = styled.input`
background: transparent; background: transparent;
outline: none; outline: none;
flex-grow: 1; flex-grow: 1;
&::placeholder {
color: ${p => p.theme.colors.warmGrey};
}
` `
type State = { type State = {

2
src/components/ReceiveBox.js

@ -20,7 +20,7 @@ import QRCode from 'components/base/QRCode'
import Text from 'components/base/Text' import Text from 'components/base/Text'
export const AddressBox = styled(Box).attrs({ export const AddressBox = styled(Box).attrs({
bg: 'cream', bg: 'lightGrey',
p: 2, p: 2,
})` })`
border-radius: 3px; border-radius: 3px;

2
src/components/RecipientAddress/index.js

@ -10,7 +10,7 @@ import Icon from 'components/base/Icon'
import Input from 'components/base/Input' import Input from 'components/base/Input'
const IconQrCode = ({ onClick }: { onClick: Function }) => ( const IconQrCode = ({ onClick }: { onClick: Function }) => (
<Box color="steel" style={{ position: 'absolute', right: 15 }}> <Box color="graphite" style={{ position: 'absolute', right: 15 }}>
<Icon fontSize={30} name="qrcode" style={{ cursor: 'pointer' }} onClick={onClick} /> <Icon fontSize={30} name="qrcode" style={{ cursor: 'pointer' }} onClick={onClick} />
</Box> </Box>
) )

2
src/components/SelectAccount/index.js

@ -24,7 +24,7 @@ const mapStateToProps: MapStateToProps<*, *, *> = state => ({
const renderItem = item => ( const renderItem = item => (
<Box horizontal alignItems="center"> <Box horizontal alignItems="center">
<Box grow> <Box grow>
<Text color="night" fontSize={0} fontWeight="bold"> <Text color="dark" fontSize={0} fontWeight="bold">
{item.name} {item.name}
</Text> </Text>
</Box> </Box>

11
src/components/SideBar/Item.js

@ -38,12 +38,13 @@ const Container = styled(Tabbable).attrs({
cursor: pointer; cursor: pointer;
color: ${p => p.theme.colors.dark}; color: ${p => p.theme.colors.dark};
opacity: ${p => (p.isActive ? 1 : 0.4)}; opacity: ${p => (p.isActive ? 1 : 0.4)};
background: ${p => (p.isActive ? p.theme.colors.argile : '')}; background: ${p => (p.isActive ? p.theme.colors.lightGrey : '')};
height: ${p => (p.big ? 50 : 36)}px; height: ${p => (p.big ? 50 : 36)}px;
outline: none; outline: none;
&:hover { &:hover,
background: ${p => (p.isActive ? p.theme.colors.argile : p.theme.colors.cream)}; &:focus {
background: ${p => p.theme.colors.lightGrey};
} }
` `
@ -88,7 +89,7 @@ function Item({
<Box justifyContent="center"> <Box justifyContent="center">
<Text fontSize={4}>{children}</Text> <Text fontSize={4}>{children}</Text>
{desc && ( {desc && (
<Box color="steel" fontSize={3}> <Box color="graphite" fontSize={3}>
{desc} {desc}
</Box> </Box>
)} )}
@ -98,7 +99,7 @@ function Item({
} }
Item.defaultProps = { Item.defaultProps = {
iconActiveColor: 'blue', iconActiveColor: 'wallet',
big: false, big: false,
desc: null, desc: null,
icon: null, icon: null,

2
src/components/SideBar/index.js

@ -107,7 +107,7 @@ class SideBar extends PureComponent<Props> {
desc={ desc={
<FormattedVal <FormattedVal
alwaysShowSign={false} alwaysShowSign={false}
color="warmGrey" color="graphite"
unit={account.unit} unit={account.unit}
showCode showCode
val={account.balance || 0} val={account.balance || 0}

11
src/components/TopBar.js

@ -46,14 +46,14 @@ const Inner = styled(Box).attrs({
const Bar = styled.div` const Bar = styled.div`
height: 15px; height: 15px;
width: 1px; width: 1px;
background: ${p => p.theme.colors.mouse}; background: #ff0000;
` `
const Activity = styled.div` const Activity = styled.div`
background: ${p => background: ${p =>
p.progress === true p.progress === true
? p.theme.colors.dodgerBlue ? p.theme.colors.wallet
: p.fail === true ? p.theme.colors.grenade : p.theme.colors.green}; : p.fail === true ? p.theme.colors.alertRed : p.theme.colors.positiveGreen};
border-radius: 50%; border-radius: 50%;
bottom: 20px; bottom: 20px;
height: 4px; height: 4px;
@ -148,7 +148,7 @@ class TopBar extends PureComponent<Props, State> {
const { sync } = this.state const { sync } = this.state
return ( return (
<Container bg="cream" color="warmGrey"> <Container bg="lightGrey" color="graphite">
<Inner> <Inner>
<Box grow horizontal flow={4}> <Box grow horizontal flow={4}>
<GlobalSearch t={t} /> <GlobalSearch t={t} />
@ -184,12 +184,11 @@ class TopBar extends PureComponent<Props, State> {
]} ]}
renderItem={({ item, isHighlighted }) => ( renderItem={({ item, isHighlighted }) => (
<DropDownItem isHighlighted={isHighlighted}> <DropDownItem isHighlighted={isHighlighted}>
<Box color={isHighlighted ? 'dodgerBlue' : ''}>{item.icon}</Box> <Box color={isHighlighted ? 'wallet' : ''}>{item.icon}</Box>
<Box>{item.label}</Box> <Box>{item.label}</Box>
</DropDownItem> </DropDownItem>
)} )}
alignItems="center" alignItems="center"
color="warmGrey"
ff="Open Sans|SemiBold" ff="Open Sans|SemiBold"
flow={1} flow={1}
fontSize={4} fontSize={4}

12
src/components/TransactionsList/index.js

@ -22,7 +22,7 @@ const AMOUNT_COL_SIZE = 150
const Cap = styled(Text).attrs({ const Cap = styled(Text).attrs({
fontSize: 2, fontSize: 2,
color: 'warmGrey', color: 'graphite',
ff: 'Museo Sans|Bold', ff: 'Museo Sans|Bold',
})` })`
text-transform: uppercase; text-transform: uppercase;
@ -38,7 +38,7 @@ const Day = styled(Text).attrs({
` `
const Hour = styled(Day).attrs({ const Hour = styled(Day).attrs({
color: 'warmGrey', color: 'graphite',
})`` })``
const HeaderCol = ({ size, children, ...props }: { size?: number, children: any }) => ( const HeaderCol = ({ size, children, ...props }: { size?: number, children: any }) => (
@ -101,7 +101,11 @@ const Transaction = ({
style={{ cursor: 'pointer' }} style={{ cursor: 'pointer' }}
onClick={() => onAccountClick && onAccountClick(tx.account)} onClick={() => onAccountClick && onAccountClick(tx.account)}
> >
<Box alignItems="center" justifyContent="center" style={{ color: '#fcb653' }}> <Box
alignItems="center"
justifyContent="center"
style={{ color: tx.account.currency.color }}
>
{Icon && <Icon size={16} />} {Icon && <Icon size={16} />}
</Box> </Box>
<Box ff="Open Sans|SemiBold" fontSize={4} color="dark"> <Box ff="Open Sans|SemiBold" fontSize={4} color="dark">
@ -119,7 +123,7 @@ const Transaction = ({
display: 'block', display: 'block',
}} }}
> >
<Box ff="Open Sans" fontSize={3} color="lead"> <Box ff="Open Sans" fontSize={3} color="graphite">
{tx.balance > 0 ? t('transactionsList.from') : t('transactionsList.to')} {tx.balance > 0 ? t('transactionsList.from') : t('transactionsList.to')}
</Box> </Box>
<Box color="dark" ff="Open Sans" fontSize={3}> <Box color="dark" ff="Open Sans" fontSize={3}>

2
src/components/UpdateNotifier.js

@ -30,7 +30,7 @@ const mapStateToProps: MapStateToProps<*, *, *> = (state: State) => ({
const Container = styled(Box).attrs({ const Container = styled(Box).attrs({
p: 1, p: 1,
bg: 'blue', bg: 'wallet',
color: 'white', color: 'white',
style: p => ({ style: p => ({
transform: `translate3d(0, ${p.offset}%, 0)`, transform: `translate3d(0, ${p.offset}%, 0)`,

2
src/components/base/Button/index.js

@ -48,7 +48,7 @@ function getProps({ disabled, icon, primary }: Object) {
primary, primary,
{ {
color: 'white', color: 'white',
bg: 'blue', bg: 'wallet',
withShadow: true, withShadow: true,
}, },
{ {

4
src/components/base/CheckBox/index.js

@ -27,9 +27,9 @@ const Base = styled(Tabbable).attrs({
outline: none; outline: none;
border-radius: 3px; border-radius: 3px;
border: 1px solid transparent; border: 1px solid transparent;
background-color: ${p => (p.isChecked ? p.theme.colors.blue : p.theme.colors.white)}; background-color: ${p => (p.isChecked ? p.theme.colors.wallet : p.theme.colors.white)};
box-shadow: 0 0 0 ${p => (p.isChecked ? 4 : 1)}px box-shadow: 0 0 0 ${p => (p.isChecked ? 4 : 1)}px
${p => (p.isChecked ? p.theme.colors.cream : p.theme.colors.argile)}; ${p => (p.isChecked ? p.theme.colors.lightGrey : p.theme.colors.graphite)};
font-size: 7px; font-size: 7px;
height: 19px; height: 19px;
width: 19px; width: 19px;

2
src/components/base/DropDown/index.js

@ -30,7 +30,7 @@ export const DropDownItem = styled(Box).attrs({
fontSize: 4, fontSize: 4,
px: 3, px: 3,
color: p => (p.isHighlighted || p.isActive ? 'dark' : 'warnGrey'), color: p => (p.isHighlighted || p.isActive ? 'dark' : 'warnGrey'),
bg: p => (p.isActive ? 'cream' : ''), bg: p => (p.isActive ? 'lightGrey' : ''),
})` })`
cursor: pointer; cursor: pointer;
height: 40px; height: 40px;

2
src/components/base/FormattedVal.js

@ -10,7 +10,7 @@ import Text from 'components/base/Text'
const T = styled(Text).attrs({ const T = styled(Text).attrs({
ff: 'Rubik', ff: 'Rubik',
color: p => (p.isNegative ? p.theme.colors.grenade : p.theme.colors.green), color: p => (p.isNegative ? p.theme.colors.alertRed : p.theme.colors.positiveGreen),
})`` })``
type Props = { type Props = {

4
src/components/base/GrowScroll/stories.js

@ -14,8 +14,8 @@ stories.add('basic', () => {
return ( return (
<Box <Box
bg={reverseColor ? 'night' : 'white'} bg={reverseColor ? 'dark' : 'white'}
color={reverseColor ? 'white' : 'night'} color={reverseColor ? 'white' : 'dark'}
style={{ style={{
border: '1px solid black', border: '1px solid black',
}} }}

2
src/components/base/Input/index.js

@ -13,7 +13,7 @@ const Base = styled.input.attrs({
border-radius: 3px; border-radius: 3px;
display: flex; display: flex;
width: 100%; width: 100%;
color: ${p => p.theme.colors.steel}; color: ${p => p.theme.colors.graphite};
background: ${p => p.theme.colors.white}; background: ${p => p.theme.colors.white};
&::placeholder { &::placeholder {

2
src/components/base/Overlay.js

@ -8,7 +8,7 @@ import { rgba } from 'styles/helpers'
import Box from 'components/base/Box' import Box from 'components/base/Box'
const Overlay = styled(({ sticky, ...props }) => <Box sticky {...props} />)` const Overlay = styled(({ sticky, ...props }) => <Box sticky {...props} />)`
background-color: ${p => rgba(p.theme.colors.night, 0.4)}; background-color: ${p => rgba(p.theme.colors.dark, 0.4)};
position: fixed; position: fixed;
` `

6
src/components/base/Pills/index.js

@ -24,8 +24,8 @@ const Container = styled(Box).attrs({
const Pill = styled(Tabbable).attrs({ const Pill = styled(Tabbable).attrs({
ff: p => (p.isActive ? 'Open Sans|SemiBold' : 'Open Sans'), ff: p => (p.isActive ? 'Open Sans|SemiBold' : 'Open Sans'),
color: p => (p.isActive ? 'dodgerBlue' : 'warmGrey'), color: p => (p.isActive ? 'wallet' : 'grey'),
bg: p => (p.isActive ? rgba(p.theme.colors.dodgerBlue, 0.1) : ''), bg: p => (p.isActive ? rgba(p.theme.colors.wallet, 0.1) : ''),
px: 3, px: 3,
fontSize: 4, fontSize: 4,
borderRadius: 1, borderRadius: 1,
@ -37,7 +37,7 @@ const Pill = styled(Tabbable).attrs({
cursor: ${p => (p.isActive ? 'default' : 'pointer')}; cursor: ${p => (p.isActive ? 'default' : 'pointer')};
&:focus { &:focus {
color: ${p => p.theme.colors.dodgerBlue}; color: ${p => p.theme.colors.wallet};
background-color: ${p => (p.isActive ? '' : rgba(p.theme.colors.black, 0.02))}; background-color: ${p => (p.isActive ? '' : rgba(p.theme.colors.black, 0.02))};
} }
` `

6
src/components/base/Radio/index.js

@ -7,7 +7,7 @@ import { Tabbable } from 'components/base/Box'
const Base = styled(Tabbable).attrs({ relative: true })` const Base = styled(Tabbable).attrs({ relative: true })`
outline: none; outline: none;
box-shadow: 0 0 0 1px ${p => (p.isChecked ? p.theme.colors.cream : p.theme.colors.argile)}; box-shadow: 0 0 0 1px ${p => (p.isChecked ? p.theme.colors.lightGrey : p.theme.colors.graphite)};
border-radius: 50%; border-radius: 50%;
height: 19px; height: 19px;
width: 19px; width: 19px;
@ -15,7 +15,7 @@ const Base = styled(Tabbable).attrs({ relative: true })`
&:focus { &:focus {
box-shadow: 0 0 0 ${p => (p.isChecked ? 4 : 2)}px box-shadow: 0 0 0 ${p => (p.isChecked ? 4 : 2)}px
${p => (p.isChecked ? p.theme.colors.cream : p.theme.colors.argile)}; ${p => (p.isChecked ? p.theme.colors.lightGrey : p.theme.colors.graphite)};
} }
&:before, &:before,
@ -31,7 +31,7 @@ const Base = styled(Tabbable).attrs({ relative: true })`
} }
&:before { &:before {
background-color: ${p => p.theme.colors.blue}; background-color: ${p => p.theme.colors.wallet};
${p => ${p =>
p.isChecked && p.isChecked &&
` `

8
src/components/base/Select/index.js

@ -32,7 +32,7 @@ type Props = {
value?: Object | null, value?: Object | null,
} }
const Container = styled(Box).attrs({ relative: true, color: 'steel' })`` const Container = styled(Box).attrs({ relative: true, color: 'graphite' })``
const TriggerBtn = styled(Box).attrs({ const TriggerBtn = styled(Box).attrs({
p: 2, p: 2,
@ -43,7 +43,7 @@ const TriggerBtn = styled(Box).attrs({
border-radius: 3px; border-radius: 3px;
display: flex; display: flex;
width: 100%; width: 100%;
color: ${p => p.theme.colors.steel}; color: ${p => p.theme.colors.graphite};
background: ${p => p.theme.colors.white}; background: ${p => p.theme.colors.white};
cursor: pointer; cursor: pointer;
&:focus { &:focus {
@ -56,7 +56,7 @@ const Item = styled(Box).attrs({
alignItems: 'center', alignItems: 'center',
p: 2, p: 2,
})` })`
background: ${p => (p.highlighted ? p.theme.colors.cream : p.theme.colors.white)}; background: ${p => (p.highlighted ? p.theme.colors.lightGrey : p.theme.colors.white)};
` `
const ItemWrapper = styled(Box)` const ItemWrapper = styled(Box)`
@ -94,7 +94,7 @@ const FloatingTriangles = styled(Box).attrs({
` `
const IconSelected = styled(Box).attrs({ const IconSelected = styled(Box).attrs({
bg: 'blue', bg: 'wallet',
color: 'white', color: 'white',
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',

6
src/components/base/Tabs/index.js

@ -21,9 +21,11 @@ const Tab = styled(Tabbable).attrs({
fontSize: 3, fontSize: 3,
})` })`
border-bottom: 2px solid transparent; border-bottom: 2px solid transparent;
border-bottom-color: ${p => (p.isActive ? p.theme.colors.blue : '')}; border-bottom-color: ${p => (p.isActive ? p.theme.colors.wallet : '')};
color: ${p => color: ${p =>
p.isActive ? p.theme.colors.blue : p.isDisabled ? p.theme.colors.grey : p.theme.colors.steel}; p.isActive
? p.theme.colors.wallet
: p.isDisabled ? p.theme.colors.grey : p.theme.colors.graphite};
margin-bottom: -1px; margin-bottom: -1px;
outline: none; outline: none;
cursor: ${p => (p.isActive ? 'default' : p.isDisabled ? 'not-allowed' : 'pointer')}; cursor: ${p => (p.isActive ? 'default' : p.isDisabled ? 'not-allowed' : 'pointer')};

2
src/components/layout/Default.js

@ -61,7 +61,7 @@ class Default extends Component<Props> {
<Box grow horizontal bg="white"> <Box grow horizontal bg="white">
<SideBar /> <SideBar />
<Box shrink grow bg="cream" color="grey" relative> <Box shrink grow bg="lightGrey" color="grey" relative>
<TopBar /> <TopBar />
<UpdateNotifier /> <UpdateNotifier />
<Container innerRef={n => (this._scrollContainer = n)}> <Container innerRef={n => (this._scrollContainer = n)}>

2
src/components/modals/AddAccount/RestoreAccounts.js

@ -10,7 +10,7 @@ import Text from 'components/base/Text'
import type { Accounts } from 'types/common' import type { Accounts } from 'types/common'
const Container = styled(Box)` const Container = styled(Box)`
border: 1px solid ${p => p.theme.colors.grenade}; border: 1px solid ${p => p.theme.colors.alertRed};
` `
type Props = { type Props = {

2
src/components/modals/AddAccount/index.js

@ -325,7 +325,7 @@ class AddAccountModal extends PureComponent<Props, State> {
return ( return (
<ModalBody onClose={onClose} flow={3}> <ModalBody onClose={onClose} flow={3}>
<Text fontSize={6} color="steel"> <Text fontSize={6} color="graphite">
{t('addAccount.title')} {t('addAccount.title')}
</Text> </Text>
<Step {...this.getStepProps()} /> <Step {...this.getStepProps()} />

2
src/components/modals/Receive.js

@ -65,7 +65,7 @@ class ReceiveModal extends PureComponent<Props, State> {
return ( return (
<ModalBody onClose={onClose} flow={3}> <ModalBody onClose={onClose} flow={3}>
<Text fontSize={4} color="steel"> <Text fontSize={4} color="graphite">
{t('receive.title')} {t('receive.title')}
</Text> </Text>
<Box flow={1}> <Box flow={1}>

4
src/components/modals/Send.js

@ -30,9 +30,7 @@ const Steps = {
}} }}
> >
<Box flow={3}> <Box flow={3}>
<Text fontSize={6} color="steel"> <Text fontSize={6}>{t('send.title')}</Text>
{t('send.title')}
</Text>
<Box flow={1}> <Box flow={1}>
<Label>Account to debit</Label> <Label>Account to debit</Label>
<SelectAccount onChange={props.onChangeInput('account')} value={props.value.account} /> <SelectAccount onChange={props.onChangeInput('account')} value={props.value.account} />

2
src/components/modals/SettingsAccount.js

@ -141,7 +141,7 @@ class SettingsAccount extends PureComponent<Props, State> {
return ( return (
<ModalBody onClose={onClose} flow={3}> <ModalBody onClose={onClose} flow={3}>
<Text fontSize={4} color="steel"> <Text fontSize={4} color="graphite">
Account settings Account settings
</Text> </Text>
<Box <Box

34
src/styles/theme.js

@ -63,27 +63,23 @@ export const fontFamilies = {
export const colors = { export const colors = {
transparent: 'transparent', transparent: 'transparent',
black: '#000000', argile: '#ff0000',
white: '#ffffff', mouse: '#ff0000',
pearl: '#ff0000',
argile: '#eeeeee',
blue: '#6193ff',
cream: '#f9f9f9',
grey: '#a8b6c2',
green: '#a6d495',
grenade: '#ea2e49',
lead: '#999999',
mouse: '#e2e2e2',
night: '#1d2028',
ocean: '#27d0e2',
pearl: '#f4f4f4',
shark: '#666666',
steel: '#767676',
// new colors
identity: '#41ccb4',
wallet: '#4b84ff',
positiveGreen: '#96d071',
alertRed: '#fa4352',
black: '#000000',
dark: '#1d2028', dark: '#1d2028',
dodgerBlue: '#4b84ff', smoke: '#666666',
paleGrey: '#f7f8fa', graphite: '#767676',
warmGrey: '#999999', grey: '#999999',
fog: '#d8d8d8',
lightGrey: '#f9f9f9',
white: '#ffffff',
} }
export default { export default {

Loading…
Cancel
Save