2019-02-10 09:52:34 -08:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import theme from 'styled-theming';
|
|
|
|
|
|
|
|
import { DARK, LIGHT } from '../constants/themes';
|
|
|
|
import { typography } from './typography';
|
|
|
|
import { DARK_COLORS, LIGHT_COLORS } from './colors';
|
|
|
|
|
|
|
|
export const appTheme: AppTheme = {
|
|
|
|
// General
|
|
|
|
mode: DARK,
|
|
|
|
|
|
|
|
// Typography
|
|
|
|
...typography,
|
|
|
|
|
|
|
|
// Spacing
|
|
|
|
sidebarWidth: '180px',
|
|
|
|
headerHeight: '60px',
|
|
|
|
layoutPaddingLeft: '35px',
|
|
|
|
layoutPaddingRight: '35px',
|
|
|
|
layoutContentPaddingTop: '20px',
|
|
|
|
boxBorderRadius: '3px',
|
|
|
|
|
|
|
|
// Misc
|
|
|
|
transitionEase: 'cubic-bezier(0.25, 0.46, 0.45, 0.94)',
|
|
|
|
|
|
|
|
// Colors
|
|
|
|
colors: {
|
|
|
|
primary: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.darkOne,
|
|
|
|
[DARK]: DARK_COLORS.darkOne,
|
|
|
|
}),
|
|
|
|
secondary: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.darkOne,
|
|
|
|
[DARK]: DARK_COLORS.darkOne,
|
|
|
|
}),
|
2019-02-10 12:25:09 -08:00
|
|
|
divider: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.divider,
|
|
|
|
[DARK]: DARK_COLORS.divider,
|
|
|
|
}),
|
2019-02-10 09:52:34 -08:00
|
|
|
sidebarBg: theme('mode', {
|
2019-02-10 12:25:09 -08:00
|
|
|
[LIGHT]: LIGHT_COLORS.sidebarBg,
|
|
|
|
[DARK]: DARK_COLORS.sidebarBg,
|
2019-02-10 09:52:34 -08:00
|
|
|
}),
|
|
|
|
sidebarItem: theme('mode', {
|
2019-02-16 19:34:12 -08:00
|
|
|
[LIGHT]: LIGHT_COLORS.sidebarItem,
|
|
|
|
[DARK]: DARK_COLORS.sidebarItem,
|
2019-02-10 09:52:34 -08:00
|
|
|
}),
|
|
|
|
sidebarItemActive: theme('mode', {
|
2019-02-16 19:34:12 -08:00
|
|
|
[LIGHT]: LIGHT_COLORS.sidebarItemActive,
|
|
|
|
[DARK]: DARK_COLORS.sidebarItemActive,
|
2019-02-10 09:52:34 -08:00
|
|
|
}),
|
2019-02-16 19:34:12 -08:00
|
|
|
sidebarItemHovered: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.sidebarItemHovered,
|
|
|
|
[DARK]: DARK_COLORS.sidebarItemHovered,
|
2019-02-10 09:52:34 -08:00
|
|
|
}),
|
|
|
|
sidebarHoveredItemLabel: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.sidebarHoveredItemLabel,
|
|
|
|
[DARK]: DARK_COLORS.sidebarHoveredItemLabel,
|
|
|
|
}),
|
|
|
|
cardBackgroundColor: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.cardBackgroundColor,
|
|
|
|
[DARK]: DARK_COLORS.cardBackgroundColor,
|
|
|
|
}),
|
|
|
|
text: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.text,
|
|
|
|
[DARK]: DARK_COLORS.text,
|
|
|
|
}),
|
|
|
|
activeItem: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.activeItem,
|
|
|
|
[DARK]: DARK_COLORS.activeItem,
|
|
|
|
}),
|
|
|
|
inactiveItem: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.brandThree,
|
|
|
|
[DARK]: DARK_COLORS.brandThree,
|
|
|
|
}),
|
|
|
|
sidebarLogoGradientBegin: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.sidebarLogoGradientBegin,
|
|
|
|
[DARK]: DARK_COLORS.sidebarLogoGradientBegin,
|
|
|
|
}),
|
|
|
|
sidebarLogoGradientEnd: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.sidebarLogoGradientEnd,
|
|
|
|
[DARK]: DARK_COLORS.sidebarLogoGradientEnd,
|
|
|
|
}),
|
|
|
|
background: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.background,
|
|
|
|
[DARK]: DARK_COLORS.background,
|
|
|
|
}),
|
|
|
|
transactionSent: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.transactionSent,
|
|
|
|
[DARK]: DARK_COLORS.transactionSent,
|
|
|
|
}),
|
|
|
|
transactionReceived: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.transactionReceived,
|
|
|
|
[DARK]: DARK_COLORS.transactionReceived,
|
|
|
|
}),
|
|
|
|
transactionsDate: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.transactionsDate,
|
|
|
|
[DARK]: DARK_COLORS.transactionsDate,
|
|
|
|
}),
|
|
|
|
transactionsItemHovered: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.transactionsItemHovered,
|
|
|
|
[DARK]: DARK_COLORS.transactionsItemHovered,
|
|
|
|
}),
|
2019-02-15 18:59:05 -08:00
|
|
|
inputBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.inputBg,
|
|
|
|
[DARK]: DARK_COLORS.inputBg,
|
2019-02-10 09:52:34 -08:00
|
|
|
}),
|
|
|
|
selectButtonShadow: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.selectButtonShadow,
|
|
|
|
[DARK]: DARK_COLORS.selectButtonShadow,
|
|
|
|
}),
|
2019-02-16 19:34:12 -08:00
|
|
|
transactionDetailsLabel: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.transactionDetailsLabel,
|
|
|
|
[DARK]: DARK_COLORS.transactionDetailsLabel,
|
2019-02-10 09:52:34 -08:00
|
|
|
}),
|
|
|
|
statusPillLabel: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.statusPillLabel,
|
|
|
|
[DARK]: DARK_COLORS.statusPillLabel,
|
|
|
|
}),
|
|
|
|
modalItemLabel: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.transactionsDate,
|
|
|
|
[DARK]: DARK_COLORS.transactionsDate,
|
|
|
|
}),
|
|
|
|
blackTwo: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.blackTwo,
|
|
|
|
[DARK]: DARK_COLORS.blackTwo,
|
|
|
|
}),
|
|
|
|
buttonBorderColor: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.buttonBorderColor,
|
|
|
|
[DARK]: DARK_COLORS.buttonBorderColor,
|
|
|
|
}),
|
2019-02-10 12:25:09 -08:00
|
|
|
headerTitle: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.headerTitle,
|
|
|
|
[DARK]: DARK_COLORS.headerTitle,
|
|
|
|
}),
|
|
|
|
statusPillBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.statusPillBg,
|
|
|
|
[DARK]: DARK_COLORS.statusPillBg,
|
|
|
|
}),
|
|
|
|
walletSummaryBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.walletSummaryBg,
|
|
|
|
[DARK]: DARK_COLORS.walletSummaryBg,
|
|
|
|
}),
|
|
|
|
walletSummaryBorder: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.walletSummaryBorder,
|
|
|
|
[DARK]: DARK_COLORS.walletSummaryBorder,
|
|
|
|
}),
|
|
|
|
consoleBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.consoleBg,
|
|
|
|
[DARK]: DARK_COLORS.consoleBg,
|
|
|
|
}),
|
|
|
|
sidebarBorderRight: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.sidebarBorderRight,
|
|
|
|
[DARK]: DARK_COLORS.sidebarBorderRight,
|
|
|
|
}),
|
2019-02-15 18:59:05 -08:00
|
|
|
qrCodeWrapperBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.qrCodeWrapperBg,
|
|
|
|
[DARK]: DARK_COLORS.qrCodeWrapperBg,
|
|
|
|
}),
|
2019-02-10 12:25:09 -08:00
|
|
|
statusPillBorder: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.statusPillBorder,
|
|
|
|
[DARK]: DARK_COLORS.statusPillBorder,
|
|
|
|
}),
|
2019-02-15 18:59:05 -08:00
|
|
|
sidebarActiveItemBorder: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.sidebarActiveItemBorder,
|
|
|
|
[DARK]: DARK_COLORS.sidebarActiveItemBorder,
|
|
|
|
}),
|
2019-02-16 19:34:12 -08:00
|
|
|
transactionItemBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.transactionItemBg,
|
|
|
|
[DARK]: DARK_COLORS.transactionItemBg,
|
|
|
|
}),
|
|
|
|
transactionItemHoverBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.transactionItemHoverBg,
|
|
|
|
[DARK]: DARK_COLORS.transactionItemHoverBg,
|
|
|
|
}),
|
|
|
|
transactionItemBorder: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.transactionItemBorder,
|
|
|
|
[DARK]: DARK_COLORS.transactionItemBorder,
|
|
|
|
}),
|
|
|
|
transactionItemAddress: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.transactionItemAddress,
|
|
|
|
[DARK]: DARK_COLORS.transactionItemAddress,
|
|
|
|
}),
|
|
|
|
transactionItemAddressHover: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.transactionItemAddressHover,
|
|
|
|
[DARK]: DARK_COLORS.transactionItemAddressHover,
|
|
|
|
}),
|
|
|
|
transactionDetailsShadow: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.transactionDetailsShadow,
|
|
|
|
[DARK]: DARK_COLORS.transactionDetailsShadow,
|
|
|
|
}),
|
|
|
|
transactionDetailsBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.transactionDetailsBg,
|
|
|
|
[DARK]: DARK_COLORS.transactionDetailsBg,
|
|
|
|
}),
|
|
|
|
transactionDetailsRowHover: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.transactionDetailsRowHover,
|
|
|
|
[DARK]: DARK_COLORS.transactionDetailsRowHover,
|
|
|
|
}),
|
|
|
|
transactionDetailsDivider: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.transactionDetailsDivider,
|
|
|
|
[DARK]: DARK_COLORS.transactionDetailsDivider,
|
|
|
|
}),
|
|
|
|
inputBorder: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.inputBorder,
|
|
|
|
[DARK]: DARK_COLORS.inputBorder,
|
|
|
|
}),
|
|
|
|
sidebarItemHoveredBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.sidebarItemHoveredBg,
|
|
|
|
[DARK]: DARK_COLORS.sidebarItemHoveredBg,
|
|
|
|
}),
|
2019-02-16 19:48:10 -08:00
|
|
|
consoleBorder: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.consoleBorder,
|
|
|
|
[DARK]: DARK_COLORS.consoleBorder,
|
|
|
|
}),
|
2019-02-17 19:56:50 -08:00
|
|
|
sendCardBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.sendCardBg,
|
|
|
|
[DARK]: DARK_COLORS.sendCardBg,
|
|
|
|
}),
|
|
|
|
sendCardBorder: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.sendCardBorder,
|
|
|
|
[DARK]: DARK_COLORS.sendCardBorder,
|
|
|
|
}),
|
|
|
|
walletAddressBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.walletAddressBg,
|
|
|
|
[DARK]: DARK_COLORS.walletAddressBg,
|
|
|
|
}),
|
|
|
|
walletAddressBorder: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.walletAddressBorder,
|
|
|
|
[DARK]: DARK_COLORS.walletAddressBorder,
|
|
|
|
}),
|
2019-02-18 15:40:15 -08:00
|
|
|
walletAddressInput: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.walletAddressInput,
|
|
|
|
[DARK]: DARK_COLORS.walletAddressInput,
|
|
|
|
}),
|
|
|
|
walletAddressInputHovered: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.walletAddressInputHovered,
|
|
|
|
[DARK]: DARK_COLORS.walletAddressInputHovered,
|
|
|
|
}),
|
2019-02-17 19:56:50 -08:00
|
|
|
dropdownBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.dropdownBg,
|
|
|
|
[DARK]: DARK_COLORS.dropdownBg,
|
|
|
|
}),
|
|
|
|
dropdownHoveredBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.dropdownHoveredBg,
|
|
|
|
[DARK]: DARK_COLORS.dropdownHoveredBg,
|
|
|
|
}),
|
|
|
|
dropdownBorder: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.dropdownBorder,
|
|
|
|
[DARK]: DARK_COLORS.dropdownBorder,
|
|
|
|
}),
|
2019-02-18 07:45:34 -08:00
|
|
|
settingsCardBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.settingsCardBg,
|
|
|
|
[DARK]: DARK_COLORS.settingsCardBg,
|
|
|
|
}),
|
|
|
|
settingsLearnMore: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.settingsLearnMore,
|
|
|
|
[DARK]: DARK_COLORS.settingsLearnMore,
|
|
|
|
}),
|
|
|
|
settingsLearnMoreHovered: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.settingsLearnMoreHovered,
|
|
|
|
[DARK]: DARK_COLORS.settingsLearnMoreHovered,
|
|
|
|
}),
|
2019-02-18 08:20:47 -08:00
|
|
|
buttonPrimaryText: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.buttonPrimaryText,
|
|
|
|
[DARK]: DARK_COLORS.buttonPrimaryText,
|
|
|
|
}),
|
|
|
|
buttonSecondaryText: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.buttonSecondaryText,
|
|
|
|
[DARK]: DARK_COLORS.buttonSecondaryText,
|
|
|
|
}),
|
|
|
|
buttonPrimaryBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.buttonPrimaryBg,
|
|
|
|
[DARK]: DARK_COLORS.buttonPrimaryBg,
|
|
|
|
}),
|
|
|
|
buttonSecondaryBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.buttonSecondaryBg,
|
|
|
|
[DARK]: DARK_COLORS.buttonSecondaryBg,
|
|
|
|
}),
|
|
|
|
buttonPrimaryDisabledBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.buttonPrimaryDisabledBg,
|
|
|
|
[DARK]: DARK_COLORS.buttonPrimaryDisabledBg,
|
|
|
|
}),
|
|
|
|
buttonSecondaryDisabledBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.buttonSecondaryDisabledBg,
|
|
|
|
[DARK]: DARK_COLORS.buttonSecondaryDisabledBg,
|
|
|
|
}),
|
|
|
|
buttonSecondaryBorder: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.buttonSecondaryBorder,
|
|
|
|
[DARK]: DARK_COLORS.buttonSecondaryBorder,
|
|
|
|
}),
|
|
|
|
buttonSecondaryHoveredBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.buttonSecondaryHoveredBg,
|
|
|
|
[DARK]: DARK_COLORS.buttonSecondaryHoveredBg,
|
|
|
|
}),
|
2019-02-18 10:04:41 -08:00
|
|
|
dropdownIconBorder: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.dropdownIconBorder,
|
|
|
|
[DARK]: DARK_COLORS.dropdownIconBorder,
|
|
|
|
}),
|
|
|
|
dropdownOpenedIconBorder: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.dropdownOpenedIconBorder,
|
|
|
|
[DARK]: DARK_COLORS.dropdownOpenedIconBorder,
|
|
|
|
}),
|
|
|
|
inputBorderActive: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.inputBorderActive,
|
|
|
|
[DARK]: DARK_COLORS.inputBorderActive,
|
|
|
|
}),
|
2019-02-18 15:40:15 -08:00
|
|
|
walletAddressTooltipBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.walletAddressTooltipBg,
|
|
|
|
[DARK]: DARK_COLORS.walletAddressTooltipBg,
|
|
|
|
}),
|
2019-02-18 10:04:41 -08:00
|
|
|
qrCodeWrapperBorder: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.qrCodeWrapperBorder,
|
|
|
|
[DARK]: DARK_COLORS.qrCodeWrapperBorder,
|
|
|
|
}),
|
2019-02-18 15:40:15 -08:00
|
|
|
walletAddressTooltip: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.walletAddressTooltip,
|
|
|
|
[DARK]: DARK_COLORS.walletAddressTooltip,
|
|
|
|
}),
|
|
|
|
loadingScreenBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.loadingScreenBg,
|
|
|
|
[DARK]: DARK_COLORS.loadingScreenBg,
|
|
|
|
}),
|
|
|
|
loadingScreenText: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.loadingScreenText,
|
|
|
|
[DARK]: DARK_COLORS.loadingScreenText,
|
|
|
|
}),
|
2019-02-18 18:22:38 -08:00
|
|
|
sendAdditionalOptionsBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.sendAdditionalOptionsBg,
|
|
|
|
[DARK]: DARK_COLORS.sendAdditionalOptionsBg,
|
|
|
|
}),
|
|
|
|
sendAdditionalOptionsBorder: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.sendAdditionalOptionsBorder,
|
|
|
|
[DARK]: DARK_COLORS.sendAdditionalOptionsBorder,
|
|
|
|
}),
|
|
|
|
sendAdditionalInputBg: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.sendAdditionalInputBg,
|
|
|
|
[DARK]: DARK_COLORS.sendAdditionalInputBg,
|
|
|
|
}),
|
|
|
|
sendAdditionalInputText: theme('mode', {
|
|
|
|
[LIGHT]: LIGHT_COLORS.sendAdditionalInputText,
|
|
|
|
[DARK]: DARK_COLORS.sendAdditionalInputText,
|
|
|
|
}),
|
2019-02-10 09:52:34 -08:00
|
|
|
},
|
|
|
|
};
|