diff --git a/src/account/Education.tsx b/src/account/Education.tsx index 8b8105895d0..c38e9001513 100644 --- a/src/account/Education.tsx +++ b/src/account/Education.tsx @@ -123,7 +123,9 @@ const Education = (props: Props) => { : } + icon={ + currentIndex === 0 ? : + } /> diff --git a/src/account/SecuritySubmenu.tsx b/src/account/SecuritySubmenu.tsx index 3e591f2dff7..b8b328410a9 100644 --- a/src/account/SecuritySubmenu.tsx +++ b/src/account/SecuritySubmenu.tsx @@ -408,7 +408,7 @@ const styles = StyleSheet.create({ }, value: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, marginRight: Spacing.Smallest8, marginLeft: Spacing.Tiny4, }, diff --git a/src/account/ShakeForSupport.tsx b/src/account/ShakeForSupport.tsx index 2a7d742a6f7..2565f9caa0f 100644 --- a/src/account/ShakeForSupport.tsx +++ b/src/account/ShakeForSupport.tsx @@ -89,7 +89,7 @@ const styles = StyleSheet.create({ position: 'absolute', bottom: 0, width: '100%', - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, borderTopLeftRadius: 16, borderTopRightRadius: 16, padding: 24, diff --git a/src/account/SupportContact.tsx b/src/account/SupportContact.tsx index 3ca6a5037a0..c3f7459e582 100644 --- a/src/account/SupportContact.tsx +++ b/src/account/SupportContact.tsx @@ -203,7 +203,7 @@ const styles = StyleSheet.create({ }, disclaimerText: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, }, container: { flex: 1, @@ -234,7 +234,7 @@ const styles = StyleSheet.create({ borderRadius: 8, borderWidth: 1, marginBottom: 16, - color: colors.textPrimary, + color: colors.contentPrimary, height: 80, maxHeight: 150, }, @@ -247,7 +247,7 @@ const styles = StyleSheet.create({ borderRadius: 8, borderWidth: 1, marginBottom: 16, - color: colors.textPrimary, + color: colors.contentPrimary, maxHeight: 50, }, headerText: { diff --git a/src/app/DebugImages.tsx b/src/app/DebugImages.tsx index 75a213e6d49..336204239ea 100644 --- a/src/app/DebugImages.tsx +++ b/src/app/DebugImages.tsx @@ -21,7 +21,12 @@ const IconItem = ({ Component, fileName }: { Component: React.ElementType; fileN return ( {/* Not all icons have the same props, we do our best here to set consistent size and color */} - + {fileName.split('.tsx')[0].slice(2)} ) @@ -30,7 +35,7 @@ const IconItem = ({ Component, fileName }: { Component: React.ElementType; fileN function DebugImages() { return ( diff --git a/src/backup/BackupIntroduction.tsx b/src/backup/BackupIntroduction.tsx index 049c5822fe5..46614e3a27d 100644 --- a/src/backup/BackupIntroduction.tsx +++ b/src/backup/BackupIntroduction.tsx @@ -117,7 +117,7 @@ function goToAccountKeyGuide() { const styles = StyleSheet.create({ container: { flex: 1, - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, }, introContainer: { flexGrow: 1, diff --git a/src/backup/BackupPhraseContainer.tsx b/src/backup/BackupPhraseContainer.tsx index 97f09fab4ec..0cb62bc726b 100644 --- a/src/backup/BackupPhraseContainer.tsx +++ b/src/backup/BackupPhraseContainer.tsx @@ -159,7 +159,7 @@ const styles = StyleSheet.create({ }, indexText: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, }, twelveWordTable: { flexDirection: 'row', diff --git a/src/backup/BackupQuiz.tsx b/src/backup/BackupQuiz.tsx index 5dce9f10cd1..1eb001b0978 100644 --- a/src/backup/BackupQuiz.tsx +++ b/src/backup/BackupQuiz.tsx @@ -380,13 +380,13 @@ const styles = StyleSheet.create({ ...typeScale.bodySmall, textAlign: 'center', lineHeight: undefined, - color: colors.textSecondary, + color: colors.contentSecondary, }, chosenWordFilled: { ...typeScale.bodySmall, textAlign: 'center', lineHeight: undefined, - color: colors.textPrimary, + color: colors.contentPrimary, }, mnemonicButtonsContainer: { marginTop: 24, diff --git a/src/backup/CancelConfirm.tsx b/src/backup/CancelConfirm.tsx index 2109f2a8b53..daf73aee0da 100644 --- a/src/backup/CancelConfirm.tsx +++ b/src/backup/CancelConfirm.tsx @@ -55,6 +55,6 @@ export default function CancelConfirm({ screen }: Props) { const styles = StyleSheet.create({ button: { - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/backup/QuizzBottom.tsx b/src/backup/QuizzBottom.tsx index e6ecf2a8398..e90f1254284 100644 --- a/src/backup/QuizzBottom.tsx +++ b/src/backup/QuizzBottom.tsx @@ -52,6 +52,6 @@ const styles = StyleSheet.create({ incorrect: { ...typeScale.labelMedium, textAlign: 'center', - color: colors.error, + color: colors.errorPrimary, }, }) diff --git a/src/celoNews/CeloNewsFeed.tsx b/src/celoNews/CeloNewsFeed.tsx index 41efb6f818d..e42abc0f7cc 100644 --- a/src/celoNews/CeloNewsFeed.tsx +++ b/src/celoNews/CeloNewsFeed.tsx @@ -149,7 +149,7 @@ const styles = StyleSheet.create({ }, headerDescription: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, marginTop: Spacing.Smallest8, }, readMoreButton: { diff --git a/src/celoNews/CeloNewsFeedItem.tsx b/src/celoNews/CeloNewsFeedItem.tsx index 96adfe81b66..5d4a1c39cac 100644 --- a/src/celoNews/CeloNewsFeedItem.tsx +++ b/src/celoNews/CeloNewsFeedItem.tsx @@ -83,7 +83,7 @@ const styles = StyleSheet.create({ }, author: { ...typeScale.labelSemiBoldSmall, - color: colors.warning, + color: colors.warningPrimary, marginBottom: Spacing.Small12, }, row: { @@ -97,7 +97,7 @@ const styles = StyleSheet.create({ ...typeScale.bodySmall, fontSize: 13, lineHeight: 16, - color: colors.textSecondary, + color: colors.contentSecondary, marginLeft: 4, }, image: { diff --git a/src/components/AccountNumber.tsx b/src/components/AccountNumber.tsx index 97a4d11bbae..13da850a190 100644 --- a/src/components/AccountNumber.tsx +++ b/src/components/AccountNumber.tsx @@ -67,7 +67,7 @@ const styles = StyleSheet.create({ }, text: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, marginBottom: 8, }, link: { diff --git a/src/components/AddAssetsBottomSheet.tsx b/src/components/AddAssetsBottomSheet.tsx index f8eb506cbce..c200b65e8bd 100644 --- a/src/components/AddAssetsBottomSheet.tsx +++ b/src/components/AddAssetsBottomSheet.tsx @@ -75,7 +75,7 @@ export default function AddAssetsBottomSheet({ testID={`${testId}/${action.name}`} > <> - + {action.title} {action.details} diff --git a/src/components/BottomSheetBase.tsx b/src/components/BottomSheetBase.tsx index ce67934f4d9..66188bdfc1d 100644 --- a/src/components/BottomSheetBase.tsx +++ b/src/components/BottomSheetBase.tsx @@ -1,9 +1,9 @@ import { BottomSheetBackdrop, BottomSheetModal, BottomSheetProps } from '@gorhom/bottom-sheet' import { BottomSheetDefaultBackdropProps } from '@gorhom/bottom-sheet/lib/typescript/components/bottomSheetBackdrop/types' import React, { useCallback, useEffect } from 'react' -import { Keyboard, StyleSheet } from 'react-native' +import { Keyboard } from 'react-native' import { useReducedMotion } from 'react-native-reanimated' -import Colors from 'src/styles/colors' +import styles from 'src/styles/styles' interface BottomSheetBaseProps { forwardedRef: React.RefObject @@ -64,8 +64,8 @@ const BottomSheetBase = ({ enablePanDownToClose backdropComponent={renderBackdrop} handleComponent={handleComponent} - handleIndicatorStyle={[styles.handle, handleIndicatorStyle]} - backgroundStyle={backgroundStyle} + handleIndicatorStyle={[styles.bottomSheetHandleIndicator, handleIndicatorStyle]} + backgroundStyle={[styles.bottomSheetBackground, backgroundStyle]} onAnimate={handleAnimate} onDismiss={onClose} onChange={onChange} @@ -79,11 +79,4 @@ const BottomSheetBase = ({ ) } -const styles = StyleSheet.create({ - handle: { - backgroundColor: Colors.bottomSheetHandle, - width: 40, - }, -}) - export default BottomSheetBase diff --git a/src/components/BottomSheetLegacy.tsx b/src/components/BottomSheetLegacy.tsx index 4bdccf50ac4..961625b6b73 100644 --- a/src/components/BottomSheetLegacy.tsx +++ b/src/components/BottomSheetLegacy.tsx @@ -133,7 +133,7 @@ const styles = StyleSheet.create({ bottom: 0, opacity: 1, width: '100%', - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, borderTopRightRadius: Spacing.Regular16, borderTopLeftRadius: Spacing.Regular16, }, diff --git a/src/components/Button.tsx b/src/components/Button.tsx index d855c2f148b..4f88e3f1bd7 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -160,20 +160,20 @@ function getColors(type: BtnTypes, disabled: boolean | undefined) { let borderColor switch (type) { case BtnTypes.PRIMARY: - textColor = Colors.textInverse + textColor = Colors.contentInverse backgroundColor = Colors.buttonPrimary opacity = disabled ? 0.25 : 1.0 break case BtnTypes.SECONDARY: - textColor = Colors.textPrimary + textColor = Colors.contentPrimary backgroundColor = Colors.buttonSecondary borderColor = Colors.border opacity = disabled ? 0.5 : 1.0 break case BtnTypes.TERTIARY: - textColor = Colors.textPrimary - backgroundColor = Colors.background + textColor = Colors.contentPrimary + backgroundColor = Colors.backgroundPrimary borderColor = Colors.border opacity = disabled ? 0.5 : 1.0 break diff --git a/src/components/CancelButton.tsx b/src/components/CancelButton.tsx index 84379d1fa7a..6db16dae251 100644 --- a/src/components/CancelButton.tsx +++ b/src/components/CancelButton.tsx @@ -53,6 +53,6 @@ export default function CancelButton({ const styles = StyleSheet.create({ title: { - color: colors.textPrimary, + color: colors.contentPrimary, }, }) diff --git a/src/components/Card.tsx b/src/components/Card.tsx index b98c256a1cc..469b25de339 100644 --- a/src/components/Card.tsx +++ b/src/components/Card.tsx @@ -25,7 +25,7 @@ export default function Card({ style, rounded = false, shadow = Shadow.Soft, ... const styles = StyleSheet.create({ container: { - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, padding: 16, }, rounded: { diff --git a/src/components/CircleButton.tsx b/src/components/CircleButton.tsx index 636f3f3c25e..41ba5838e41 100644 --- a/src/components/CircleButton.tsx +++ b/src/components/CircleButton.tsx @@ -32,7 +32,7 @@ export default class CircleButton extends React.PureComponent { borderWidth !== undefined ? { borderWidth } : { borderWidth: 0 }, { borderColor: color, width: size, height: size, borderRadius: Math.floor(size! / 2) }, ] - const xColor = solid ? colors.textInverse : color + const xColor = solid ? colors.contentInverse : color return ( diff --git a/src/components/ClipboardAwarePasteButton.tsx b/src/components/ClipboardAwarePasteButton.tsx index ffc97b331e9..86ccafb8c1f 100644 --- a/src/components/ClipboardAwarePasteButton.tsx +++ b/src/components/ClipboardAwarePasteButton.tsx @@ -54,7 +54,7 @@ const styles = StyleSheet.create({ justifyContent: 'center', paddingVertical: 5, paddingHorizontal: Spacing.Thick24, - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, flexDirection: 'row', height: Spacing.XLarge48, flexGrow: 1, diff --git a/src/components/CodeInput.tsx b/src/components/CodeInput.tsx index 0762b333684..fedba4e5b06 100644 --- a/src/components/CodeInput.tsx +++ b/src/components/CodeInput.tsx @@ -41,10 +41,10 @@ export default function CodeInput({ const showStatus = showCheckmark || showSpinner || showError const textColorForStatus = { - [CodeInputStatus.Inputting]: colors.textPrimary, - [CodeInputStatus.Processing]: colors.textSecondary, - [CodeInputStatus.Error]: colors.error, - [CodeInputStatus.Accepted]: colors.success, + [CodeInputStatus.Inputting]: colors.contentPrimary, + [CodeInputStatus.Processing]: colors.contentSecondary, + [CodeInputStatus.Error]: colors.errorPrimary, + [CodeInputStatus.Accepted]: colors.successPrimary, } return ( @@ -85,7 +85,7 @@ export default function CodeInput({ {showError && ( diff --git a/src/components/CodeRow.tsx b/src/components/CodeRow.tsx index 1687202548c..4c86fd75695 100644 --- a/src/components/CodeRow.tsx +++ b/src/components/CodeRow.tsx @@ -103,7 +103,7 @@ function CodeRow({ const styles = StyleSheet.create({ codeInput: { flex: 0, - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, borderColor: colors.border, borderRadius: 3, borderWidth: 1, @@ -126,7 +126,7 @@ const styles = StyleSheet.create({ padding: 10, }, codeProcessingContainer: { - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, position: 'relative', justifyContent: 'center', marginVertical: 5, @@ -137,7 +137,7 @@ const styles = StyleSheet.create({ height: 50, }, codeInputSpinner: { - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, position: 'absolute', top: 5, right: 3, @@ -156,7 +156,7 @@ const styles = StyleSheet.create({ codeValue: { ...typeScale.bodyMedium, fontSize: 15, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/components/ContactCircleSelf.tsx b/src/components/ContactCircleSelf.tsx index 77d59356105..e7a28b8b712 100644 --- a/src/components/ContactCircleSelf.tsx +++ b/src/components/ContactCircleSelf.tsx @@ -22,7 +22,7 @@ export default function ContactCircleSelf({ style, size }: Props) { size={size} backgroundColor={colors.backgroundSecondary} borderColor={colors.border} - foregroundColor={colors.textPrimary} + foregroundColor={colors.contentPrimary} /> ) } diff --git a/src/components/DataFieldWithCopy.tsx b/src/components/DataFieldWithCopy.tsx index ee0210ef817..bf0f4619dfb 100644 --- a/src/components/DataFieldWithCopy.tsx +++ b/src/components/DataFieldWithCopy.tsx @@ -42,7 +42,7 @@ function DataFieldWithCopy({ label, value, copySuccessMessage, testID, onCopy, s {value} - + diff --git a/src/components/DevSkipButton.tsx b/src/components/DevSkipButton.tsx index 5750b0ca382..50aa34f6b67 100644 --- a/src/components/DevSkipButton.tsx +++ b/src/components/DevSkipButton.tsx @@ -93,7 +93,7 @@ const styles = StyleSheet.create({ height: 25, }, skipButton: { - backgroundColor: colors.error, + backgroundColor: colors.errorPrimary, }, hiddenButton: { flex: 1, diff --git a/src/components/Dialog.tsx b/src/components/Dialog.tsx index a40726c2234..bb87d9e857a 100644 --- a/src/components/Dialog.tsx +++ b/src/components/Dialog.tsx @@ -110,7 +110,7 @@ const styles = StyleSheet.create({ flexWrap: 'wrap', }, secondary: { - color: colors.textSecondary, + color: colors.contentSecondary, paddingTop: 16, }, primary: { diff --git a/src/components/Dropdown.tsx b/src/components/Dropdown.tsx index bf5bbfb03eb..d6bbfcf2934 100644 --- a/src/components/Dropdown.tsx +++ b/src/components/Dropdown.tsx @@ -81,7 +81,7 @@ const styles = StyleSheet.create({ borderColor: Colors.border, borderRadius: Spacing.Tiny4, borderWidth: 1, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, flexDirection: 'column', width: '100%', }, diff --git a/src/components/ErrorMessageInline.tsx b/src/components/ErrorMessageInline.tsx index 9100238653e..7e7ed287476 100644 --- a/src/components/ErrorMessageInline.tsx +++ b/src/components/ErrorMessageInline.tsx @@ -68,7 +68,7 @@ const styles = StyleSheet.create({ }, errorMessage: { ...typeScale.bodySmall, - color: colors.error, + color: colors.errorPrimary, }, }) diff --git a/src/components/ExchangesBottomSheet.tsx b/src/components/ExchangesBottomSheet.tsx index 0d733c9c22e..c09bc64392c 100644 --- a/src/components/ExchangesBottomSheet.tsx +++ b/src/components/ExchangesBottomSheet.tsx @@ -65,7 +65,7 @@ const styles = StyleSheet.create({ marginBottom: Spacing.Smallest8, }, info: { - color: colors.textSecondary, + color: colors.contentSecondary, marginBottom: Spacing.Smallest8, }, exchangeText: { diff --git a/src/components/FeeDrawer.tsx b/src/components/FeeDrawer.tsx index f1bde46f9f1..4bd02efa7c9 100644 --- a/src/components/FeeDrawer.tsx +++ b/src/components/FeeDrawer.tsx @@ -122,6 +122,6 @@ const styles = StyleSheet.create({ }, dropDownText: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/components/FilterChipsCarousel.tsx b/src/components/FilterChipsCarousel.tsx index f0387e67581..6de0830368a 100644 --- a/src/components/FilterChipsCarousel.tsx +++ b/src/components/FilterChipsCarousel.tsx @@ -85,15 +85,15 @@ function FilterChipsCarousel({ style={[ styles.filterChipText, chip.isSelected - ? { color: Colors.textInverse } - : { color: Colors.textSecondary }, + ? { color: Colors.contentInverse } + : { color: Colors.contentSecondary }, ]} > {chip.name} {isNetworkChip(chip) && ( { const styles = StyleSheet.create({ container: { - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, height: variables.height, width: variables.width, flex: 1, diff --git a/src/components/GradientBlock.tsx b/src/components/GradientBlock.tsx index 3a07a5653f2..5c0ad37fb09 100644 --- a/src/components/GradientBlock.tsx +++ b/src/components/GradientBlock.tsx @@ -9,7 +9,7 @@ type Props = Omit & { export default function GradientBlock({ style, ...props }: Props) { return ( = { [NotificationVariant.Info]: { - primary: Colors.textPrimary, + primary: Colors.contentPrimary, secondary: Colors.info, }, [NotificationVariant.Success]: { - primary: Colors.success, + primary: Colors.successPrimary, secondary: Colors.successSecondary, }, [NotificationVariant.Warning]: { - primary: Colors.warning, + primary: Colors.warningPrimary, secondary: Colors.warningSecondary, }, [NotificationVariant.Error]: { - primary: Colors.error, + primary: Colors.errorPrimary, secondary: Colors.errorSecondary, }, } diff --git a/src/components/InfoBottomSheet.tsx b/src/components/InfoBottomSheet.tsx index 3110275ced1..069e4711ec6 100644 --- a/src/components/InfoBottomSheet.tsx +++ b/src/components/InfoBottomSheet.tsx @@ -54,6 +54,6 @@ const styles = StyleSheet.create({ marginTop: 37, marginBottom: 9, textAlign: 'center', - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/components/LabelWithInfo.tsx b/src/components/LabelWithInfo.tsx index feebb067ddf..0fc9d7a7dc1 100644 --- a/src/components/LabelWithInfo.tsx +++ b/src/components/LabelWithInfo.tsx @@ -33,7 +33,7 @@ export function LabelWithInfo({ {label} - {onPress && } + {onPress && } > ) @@ -47,7 +47,7 @@ const styles = StyleSheet.create({ alignItems: 'center', paddingRight: 20, // Prevents Icon from being cut off on long labels minWidth: '25%', - color: Colors.textSecondary, + color: Colors.contentSecondary, }, labelText: { ...typeScale.bodyMedium, diff --git a/src/components/ListItem.tsx b/src/components/ListItem.tsx index 031c02a2876..2eba93beba0 100644 --- a/src/components/ListItem.tsx +++ b/src/components/ListItem.tsx @@ -33,7 +33,7 @@ export default function ListItem({ children, onPress, disabled, testID, borderle const styles = StyleSheet.create({ container: { - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, }, innerView: { paddingVertical: variables.contentPadding, diff --git a/src/components/Modal.tsx b/src/components/Modal.tsx index 2d5b2eda672..03440aabf5e 100644 --- a/src/components/Modal.tsx +++ b/src/components/Modal.tsx @@ -50,7 +50,7 @@ export default function Modal({ const styles = StyleSheet.create({ root: { - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, padding: 24, maxHeight: '100%', }, diff --git a/src/components/OnboardingCard.tsx b/src/components/OnboardingCard.tsx index 0e88de7eb0e..6308d410cdf 100644 --- a/src/components/OnboardingCard.tsx +++ b/src/components/OnboardingCard.tsx @@ -23,7 +23,7 @@ function OnboardingCard({ testId, onPress, title, subtitle }: Props) { {title} {subtitle} - + > @@ -50,11 +50,11 @@ const styles = StyleSheet.create({ ...typeScale.labelSmall, lineHeight: 24, paddingBottom: 5, - color: Colors.success, + color: Colors.successPrimary, }, subtitle: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, }) diff --git a/src/components/PercentageIndicator.tsx b/src/components/PercentageIndicator.tsx index 7a22e0da997..3e0a36ccf24 100644 --- a/src/components/PercentageIndicator.tsx +++ b/src/components/PercentageIndicator.tsx @@ -45,7 +45,7 @@ function PercentageIndicator({ color = Colors.accent indicator = } else if (comparison < 0) { - color = Colors.error + color = Colors.errorPrimary indicator = } else { color = Colors.inactive diff --git a/src/components/PhoneNumberInput.tsx b/src/components/PhoneNumberInput.tsx index 93401318a4a..ec0020e2963 100644 --- a/src/components/PhoneNumberInput.tsx +++ b/src/components/PhoneNumberInput.tsx @@ -108,7 +108,7 @@ export default function PhoneNumberInput({ isExpandable={editable} isExpanded={false} containerStyle={styles.countryFlagContainer} - arrowColor={colors.textSecondary} + arrowColor={colors.contentSecondary} > {flagEmoji} @@ -148,7 +148,7 @@ const styles = StyleSheet.create({ height: Spacing.XLarge48, paddingHorizontal: 12, alignItems: 'stretch', - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, borderRadius: 8, }, countryFlagContainer: { diff --git a/src/components/PhoneNumberWithFlag.tsx b/src/components/PhoneNumberWithFlag.tsx index 88c0f9d6de2..0e025ac3d92 100644 --- a/src/components/PhoneNumberWithFlag.tsx +++ b/src/components/PhoneNumberWithFlag.tsx @@ -29,7 +29,7 @@ export class PhoneNumberWithFlag extends React.PureComponent { style={{ ...typeScale.labelSmall, lineHeight: 18, - color: this.props.textColor ?? Colors.textPrimary, + color: this.props.textColor ?? Colors.contentPrimary, }} > {parsedNumber ? parsedNumber.displayNumberInternational : ''} diff --git a/src/components/RecoveryPhraseInput.tsx b/src/components/RecoveryPhraseInput.tsx index c1bdc51e7a8..97f230d166b 100644 --- a/src/components/RecoveryPhraseInput.tsx +++ b/src/components/RecoveryPhraseInput.tsx @@ -135,8 +135,8 @@ export default function RecoveryPhraseInput({ const styles = StyleSheet.create({ container: { padding: 0, - backgroundColor: colors.background, - borderColor: colors.background, + backgroundColor: colors.backgroundPrimary, + borderColor: colors.backgroundPrimary, borderRadius: Spacing.Smallest8, borderWidth: 1, }, @@ -171,7 +171,7 @@ const styles = StyleSheet.create({ }, labelLong: { ...typeScale.labelSemiBoldSmall, - color: colors.textSecondary, + color: colors.contentSecondary, opacity: 0.5, marginBottom: 4, }, @@ -180,7 +180,7 @@ const styles = StyleSheet.create({ }, codeValueLong: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, }, statusContainer: { width: 32, diff --git a/src/components/ReviewFrame.tsx b/src/components/ReviewFrame.tsx index 3b618b66c7f..a0a85ef45c6 100644 --- a/src/components/ReviewFrame.tsx +++ b/src/components/ReviewFrame.tsx @@ -114,7 +114,7 @@ class ReviewFrame extends React.PureComponent { const styles = StyleSheet.create({ body: { flex: 1, - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, }, scrollViewContentContainer: { paddingVertical: 10, diff --git a/src/components/SectionHead.tsx b/src/components/SectionHead.tsx index 4eb65c0ead9..87da1336de4 100644 --- a/src/components/SectionHead.tsx +++ b/src/components/SectionHead.tsx @@ -19,7 +19,7 @@ export default function SectionHead({ text, style }: Props) { const styles = StyleSheet.create({ container: { - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, paddingHorizontal: variables.contentPadding, paddingVertical: 8, flexDirection: 'row', @@ -28,6 +28,6 @@ const styles = StyleSheet.create({ }, text: { ...typeScale.labelSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/components/SegmentedControl.tsx b/src/components/SegmentedControl.tsx index bb9886e11e4..837e35aa48b 100644 --- a/src/components/SegmentedControl.tsx +++ b/src/components/SegmentedControl.tsx @@ -32,12 +32,12 @@ export default function SegmentedControl({ values, selectedIndex = 0, onChange } const color = interpolateColor( selectedIndex, [0.5, 1], - [colors.backgroundInverse, colors.background] + [colors.backgroundInverse, colors.backgroundPrimary] ) const colorInverted = interpolateColor( selectedIndex, [0.5, 1], - [colors.background, colors.backgroundInverse] + [colors.backgroundPrimary, colors.backgroundInverse] ) const onLayout = ({ diff --git a/src/components/SelectRecipientButton.tsx b/src/components/SelectRecipientButton.tsx index dfe72d4e83a..c9f77eed26e 100644 --- a/src/components/SelectRecipientButton.tsx +++ b/src/components/SelectRecipientButton.tsx @@ -39,7 +39,7 @@ function SelectRecipientButton({ )} {showCheckmark && ( - + )} @@ -62,7 +62,7 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, title: { ...typeScale.labelMedium, diff --git a/src/components/SettingsItem.tsx b/src/components/SettingsItem.tsx index ab4cf4425d8..03dc7d96bd7 100644 --- a/src/components/SettingsItem.tsx +++ b/src/components/SettingsItem.tsx @@ -67,10 +67,10 @@ export function SettingsItemTextValue({ {(!!value || showChevron) && ( )} - {isExternalLink && } + {isExternalLink && } @@ -149,7 +149,7 @@ export function SettingsItemCta({ {cta} - {showChevron && } + {showChevron && } ) @@ -170,7 +170,7 @@ const styles = StyleSheet.create({ }, value: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, marginRight: 8, }, valueActionable: { @@ -180,7 +180,7 @@ const styles = StyleSheet.create({ }, details: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, paddingTop: 16, paddingRight: 16, }, diff --git a/src/components/SimpleMessagingCard.tsx b/src/components/SimpleMessagingCard.tsx index f4c5c06d49c..656b861f3ce 100644 --- a/src/components/SimpleMessagingCard.tsx +++ b/src/components/SimpleMessagingCard.tsx @@ -63,7 +63,7 @@ const styles = StyleSheet.create({ container: {}, header: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginBottom: Spacing.Smallest8, }, innerContainer: { diff --git a/src/components/SingleDigitInput.tsx b/src/components/SingleDigitInput.tsx index 2716013b32a..54bee332cc0 100644 --- a/src/components/SingleDigitInput.tsx +++ b/src/components/SingleDigitInput.tsx @@ -45,7 +45,7 @@ const styles = StyleSheet.create({ borderRadius: 3, borderWidth: 1, flex: 0, - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, height: 50, width: 50, marginVertical: 5, diff --git a/src/components/SmallButton.tsx b/src/components/SmallButton.tsx index 3294bc63696..86560e7782c 100644 --- a/src/components/SmallButton.tsx +++ b/src/components/SmallButton.tsx @@ -41,7 +41,7 @@ export default class SmallButton extends React.Component { accessibilityLabel={accessibilityLabel} style={[ styles.text, - solid ? { color: colors.textInverse } : { color: colors.accent }, + solid ? { color: colors.contentInverse } : { color: colors.accent }, children ? styles.textPadding : null, textStyle, ]} @@ -80,7 +80,7 @@ const styles = StyleSheet.create({ ...typeScale.labelMedium, fontSize: 13, lineHeight: 20, - color: colors.textSecondary, + color: colors.contentSecondary, textAlign: 'center', }, textPadding: { diff --git a/src/components/SmartTopAlert.tsx b/src/components/SmartTopAlert.tsx index 3ed1763ec17..d3bafe4961f 100644 --- a/src/components/SmartTopAlert.tsx +++ b/src/components/SmartTopAlert.tsx @@ -151,18 +151,18 @@ const styles = StyleSheet.create({ flexDirection: 'row', justifyContent: 'center', alignItems: 'center', - backgroundColor: colors.warning, + backgroundColor: colors.warningPrimary, paddingBottom: PADDING_VERTICAL, paddingHorizontal: 25, }, containerError: { - backgroundColor: colors.error, + backgroundColor: colors.errorPrimary, }, containerWithButton: { flexDirection: 'column', }, text: { - color: colors.textInverse, + color: colors.contentInverse, // Unset explicit lineHeight set by fonts.tsx otherwise the text is not centered vertically lineHeight: undefined, textAlign: 'center', @@ -173,11 +173,11 @@ const styles = StyleSheet.create({ }, button: { marginTop: 8, - borderColor: colors.textInverse, + borderColor: colors.contentInverse, alignSelf: 'center', }, buttonText: { - color: colors.textInverse, + color: colors.contentInverse, }, }) diff --git a/src/components/TextInput.tsx b/src/components/TextInput.tsx index d2a60c5427e..8d925bb60f0 100644 --- a/src/components/TextInput.tsx +++ b/src/components/TextInput.tsx @@ -83,6 +83,7 @@ export class CTextInput extends React.Component { inputStyle, ]} value={value} + selectionColor={Colors.contentSecondary} {...passThroughProps} onFocus={this.handleInputFocus} onBlur={this.handleInputBlur} @@ -93,7 +94,7 @@ export class CTextInput extends React.Component { onPress={this.onClear} solid={true} size={20} - activeColor={Colors.textSecondary} + activeColor={Colors.contentSecondary} inactiveColor={Colors.disabled} /> )} diff --git a/src/components/TokenBalance.tsx b/src/components/TokenBalance.tsx index 1f0d5c9b8e9..39f8e84096c 100644 --- a/src/components/TokenBalance.tsx +++ b/src/components/TokenBalance.tsx @@ -248,7 +248,7 @@ export function FiatExchangeTokenBalance() { {tokenBalances.length > 1 ? ( {t('totalValue')} - + ) : ( {t('totalValue')} @@ -279,7 +279,7 @@ const styles = StyleSheet.create({ }, totalAssetsInfoText: { ...typeScale.bodySmall, - color: Colors.textInverse, + color: Colors.contentInverse, textAlign: 'center', }, titleExchange: { @@ -293,7 +293,7 @@ const styles = StyleSheet.create({ }, exchangeTotalValue: { ...typeScale.labelSemiBoldSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, paddingRight: 3, paddingBottom: 4, }, @@ -318,6 +318,6 @@ const styles = StyleSheet.create({ }, tokenBalance: { ...typeScale.labelSemiBoldSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, }) diff --git a/src/components/TokenBottomSheet.tsx b/src/components/TokenBottomSheet.tsx index 5511fb552fb..759dfa20554 100644 --- a/src/components/TokenBottomSheet.tsx +++ b/src/components/TokenBottomSheet.tsx @@ -104,7 +104,7 @@ function NoResults({ return ( - + {t(noResultsText, { searchTerm: searchTerm, filterNames: activeFilterNames.join(', ') })} @@ -271,6 +271,7 @@ function TokenBottomSheet({ keyExtractor={(item) => item.tokenId} contentContainerStyle={{ paddingBottom: insets.bottom, + backgroundColor: Colors.backgroundPrimary, // fill full height if there are filter chips, otherwise the bottom // sheet height changes as tokens are filtered flexGrow: filterChips.length ? 1 : undefined, @@ -400,7 +401,7 @@ const styles = StyleSheet.create({ position: 'absolute', top: 0, padding: Spacing.Thick24, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, width: '100%', }, title: { diff --git a/src/components/TokenEnterAmount.test.tsx b/src/components/TokenEnterAmount.test.tsx index fab0f9fa8f6..8d3a579df70 100644 --- a/src/components/TokenEnterAmount.test.tsx +++ b/src/components/TokenEnterAmount.test.tsx @@ -24,9 +24,9 @@ jest.mock('src/analytics/AppAnalytics') const mockStore = { localCurrency: { isLoading: false, - preferredCurrencyCode: LocalCurrencyCode['USD'], - fetchedCurrencyCode: LocalCurrencyCode['USD'], - usdToLocalRate: '1', + preferredCurrencyCode: LocalCurrencyCode['BOB'], + fetchedCurrencyCode: LocalCurrencyCode['BOB'], + usdToLocalRate: '0.5', } satisfies RootState['localCurrency'], } @@ -70,6 +70,7 @@ describe('TokenEnterAmount', () => { expect(unformatNumberForProcessing('')).toBe('') expect(unformatNumberForProcessing('0.25')).toBe('0.25') expect(unformatNumberForProcessing('1,234.34567')).toBe('1234.34567') + expect(unformatNumberForProcessing('1234.34567')).toBe('1234.34567') expect(roundFiatValue(null)).toBe('') expect(roundFiatValue(new BigNumber('0.01'))).toBe('0.01') @@ -119,6 +120,7 @@ describe('TokenEnterAmount', () => { expect(unformatNumberForProcessing('')).toBe('') expect(unformatNumberForProcessing('0,25')).toBe('0.25') expect(unformatNumberForProcessing('1.234,34567')).toBe('1234.34567') + expect(unformatNumberForProcessing('1234.34567')).toBe('1234.34567') expect(roundFiatValue(null)).toBe('') expect(roundFiatValue(new BigNumber('0.01'))).toBe('0.01') @@ -194,8 +196,8 @@ describe('TokenEnterAmount', () => { displayAmount: '1,234.678 USDC', }, local: { - bignum: new BigNumber('1235.912678'), - displayAmount: '$1,235.91', + bignum: new BigNumber('617.956339'), + displayAmount: 'Bs617.96', }, }) }) @@ -215,18 +217,18 @@ describe('TokenEnterAmount', () => { await act(async () => { result.current.handleToggleAmountType() }) - await act(async () => result.current.handleAmountInputChange('1234.67')) - await act(async () => result.current.handleAmountInputChange('1234.678')) + await act(async () => result.current.handleAmountInputChange('Bs1234.67')) + await act(async () => result.current.handleAmountInputChange('Bs1234.678')) expect(result.current.amount).toBe('1234.67') expect(result.current.processedAmounts).toStrictEqual({ local: { bignum: new BigNumber('1234.67'), - displayAmount: '$1,234.67', + displayAmount: 'Bs1,234.67', }, token: { - bignum: new BigNumber('1233.436563'), - displayAmount: '1,233.436563 USDC', + bignum: new BigNumber('2466.873127'), + displayAmount: '2,466.873127 USDC', }, }) }) @@ -326,7 +328,7 @@ describe('TokenEnterAmount', () => { ) - expect(input.props.value).toBe('$0.1') + expect(input.props.value).toBe('Bs0.1') expect(converted.props.children).toBe(`${APPROX_SYMBOL} 1 CELO`) }) diff --git a/src/components/TokenEnterAmount.tsx b/src/components/TokenEnterAmount.tsx index 141a2263aa2..342390044a7 100644 --- a/src/components/TokenEnterAmount.tsx +++ b/src/components/TokenEnterAmount.tsx @@ -53,6 +53,19 @@ export function formatNumber(value: string) { export function unformatNumberForProcessing(value: string) { const { decimalSeparator, groupingSeparator } = getNumberFormatSettings() + + /** + * If the number passed is a regular number which is formatted in the standard JS number format + * (e.g. "123456.789") then just keep it as is. This will ensure this function will properly + * unformat different numbers, including those that come from external sources (e.g from API + * response) + * + * Number.isNaN considers unfinished decimal number e.g. "1." a valid number. If the number ends with grouping separator instead of decimal separator - it can be simply erased by casting it to a number. + */ + if (!Number.isNaN(+value)) { + return value.endsWith(groupingSeparator) ? `${+value}` : value + } + return value.replaceAll(groupingSeparator, '').replaceAll(decimalSeparator, '.') } @@ -228,7 +241,7 @@ export function useEnterAmount(props: { } function handleAmountInputChange(val: string) { - let value = val.startsWith(localCurrencySymbol) ? val.slice(1) : val + let value = val.startsWith(localCurrencySymbol) ? val.slice(localCurrencySymbol.length) : val value = unformatNumberForProcessing(value) value = value.startsWith('.') ? `0${value}` : value @@ -417,7 +430,7 @@ export default function TokenEnterAmount({ )} - {onOpenTokenPicker && } + {onOpenTokenPicker && } {token && ( @@ -481,7 +494,7 @@ export default function TokenEnterAmount({ testID={`${testID}/SwitchTokens`} hitSlop={variables.iconHitslop} > - + )} @@ -546,7 +559,7 @@ const styles = StyleSheet.create({ }, tokenBalance: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, primaryAmountText: { ...typeScale.titleMedium, @@ -555,12 +568,12 @@ const styles = StyleSheet.create({ }, secondaryAmountText: { ...typeScale.bodyMedium, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, placeholderText: { ...typeScale.labelMedium, paddingHorizontal: 4, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, swapArrowContainer: { transform: [{ rotate: '90deg' }], diff --git a/src/components/TokenTotalLineItem.tsx b/src/components/TokenTotalLineItem.tsx index 0d558170a1e..aa84a8077a4 100644 --- a/src/components/TokenTotalLineItem.tsx +++ b/src/components/TokenTotalLineItem.tsx @@ -94,10 +94,10 @@ const styles = StyleSheet.create({ }, subtotalText: { ...typeScale.labelSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, exchangeRate: { ...typeScale.labelSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/components/WithTextInputPasteAware.tsx b/src/components/WithTextInputPasteAware.tsx index b38a640d677..8b834b44d67 100644 --- a/src/components/WithTextInputPasteAware.tsx +++ b/src/components/WithTextInputPasteAware.tsx @@ -24,7 +24,7 @@ export default function withTextInputPasteAware( onPress={onPressPaste} hitSlop={iconHitslop} > - + )} @@ -39,7 +39,7 @@ const styles = StyleSheet.create({ position: 'relative', }, pasteIconContainer: { - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, position: 'absolute', right: 11, top: 13, diff --git a/src/components/__snapshots__/CodeRow.test.tsx.snap b/src/components/__snapshots__/CodeRow.test.tsx.snap index b4800b79f60..d12c1d4eebe 100644 --- a/src/components/__snapshots__/CodeRow.test.tsx.snap +++ b/src/components/__snapshots__/CodeRow.test.tsx.snap @@ -58,6 +58,7 @@ exports[`CodeRow renders correctly for all CodeRowStatus states 2`] = ` onChangeText={[MockFunction]} onFocus={[Function]} placeholder="placeholder" + selectionColor="#757575" shouldShowClipboard={[MockFunction]} style={ [ diff --git a/src/components/__snapshots__/PhoneNumberInput.test.tsx.snap b/src/components/__snapshots__/PhoneNumberInput.test.tsx.snap index 6c70522f110..9312ae73387 100644 --- a/src/components/__snapshots__/PhoneNumberInput.test.tsx.snap +++ b/src/components/__snapshots__/PhoneNumberInput.test.tsx.snap @@ -176,6 +176,7 @@ exports[`PhoneNumberInput renders and behaves correctly 1`] = ` onFocus={[Function]} placeholder="00 00 00 00 00" placeholderTextColor="#757575" + selectionColor="#757575" style={ [ { diff --git a/src/components/multiSelect/MultiSelectBottomSheet.tsx b/src/components/multiSelect/MultiSelectBottomSheet.tsx index cc385b666b1..b2dbf29a1db 100644 --- a/src/components/multiSelect/MultiSelectBottomSheet.tsx +++ b/src/components/multiSelect/MultiSelectBottomSheet.tsx @@ -155,7 +155,7 @@ function OptionLineItem({ onPress, text, iconUrl, isSelected }: OptionLineItemPr {isSelected && ( @@ -171,7 +171,7 @@ function OptionLineItem({ onPress, text, iconUrl, isSelected }: OptionLineItemPr const styles = StyleSheet.create({ doneButton: { borderRadius: Spacing.Regular16, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, height: 56, flexGrow: 1, alignItems: 'center', @@ -225,12 +225,12 @@ const styles = StyleSheet.create({ borderRadiusTop: { borderTopLeftRadius: Spacing.Regular16, borderTopRightRadius: Spacing.Regular16, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, }, optionsContainer: { flexDirection: 'column', marginBottom: Spacing.Smallest8, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, borderBottomLeftRadius: Spacing.Regular16, borderBottomRightRadius: Spacing.Regular16, }, diff --git a/src/dapps/DappShortcutsRewards.tsx b/src/dapps/DappShortcutsRewards.tsx index 5a0440182d8..3b851e98b62 100644 --- a/src/dapps/DappShortcutsRewards.tsx +++ b/src/dapps/DappShortcutsRewards.tsx @@ -221,7 +221,7 @@ const styles = StyleSheet.create({ }, rewardLabel: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, rewardAmount: { ...typeScale.labelSemiBoldLarge, @@ -243,7 +243,7 @@ const styles = StyleSheet.create({ width: 18, height: 18, marginRight: Spacing.Smallest8, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, borderRadius: 100, }, dappName: { @@ -261,7 +261,7 @@ const styles = StyleSheet.create({ }, subHeading: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, claimButton: { minWidth: 72, diff --git a/src/dapps/DappsScreen.tsx b/src/dapps/DappsScreen.tsx index 0a6fd8fa265..9189ec4dee4 100644 --- a/src/dapps/DappsScreen.tsx +++ b/src/dapps/DappsScreen.tsx @@ -332,19 +332,19 @@ const styles = StyleSheet.create({ flexGrow: 1, }, refreshControl: { - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, }, sectionList: { flex: 1, }, sectionTitle: { ...typeScale.labelSemiBoldSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginTop: Spacing.Large32, }, disclaimer: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, listFooterComponent: { marginTop: Spacing.Large32, diff --git a/src/dappsExplorer/DappCard.tsx b/src/dappsExplorer/DappCard.tsx index fc5b83248ab..390debb0f7f 100644 --- a/src/dappsExplorer/DappCard.tsx +++ b/src/dappsExplorer/DappCard.tsx @@ -133,7 +133,7 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, }) diff --git a/src/dappsExplorer/DappFeaturedActions.tsx b/src/dappsExplorer/DappFeaturedActions.tsx index 48785b7c71f..9826742f4e2 100644 --- a/src/dappsExplorer/DappFeaturedActions.tsx +++ b/src/dappsExplorer/DappFeaturedActions.tsx @@ -116,6 +116,6 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, }) diff --git a/src/dappsExplorer/DiscoverDappsCard.tsx b/src/dappsExplorer/DiscoverDappsCard.tsx index 5df387cd63c..c190c81bbcd 100644 --- a/src/dappsExplorer/DiscoverDappsCard.tsx +++ b/src/dappsExplorer/DiscoverDappsCard.tsx @@ -149,7 +149,7 @@ const styles = StyleSheet.create({ }, sectionTitle: { ...typeScale.labelXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginTop: Spacing.Smallest8, }, listFooterComponent: { @@ -169,7 +169,7 @@ const styles = StyleSheet.create({ }, disclaimer: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, }) diff --git a/src/dappsExplorer/NoResults.tsx b/src/dappsExplorer/NoResults.tsx index b8deaeb5679..9fc04947ce1 100644 --- a/src/dappsExplorer/NoResults.tsx +++ b/src/dappsExplorer/NoResults.tsx @@ -34,7 +34,7 @@ function NoResults({ selectedFilter, removeFilter, testID, searchTerm }: Props) {searchTerm !== '' && ( - + @@ -101,11 +101,11 @@ const styles = StyleSheet.create({ }, filterText: { ...typeScale.labelSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, filterAppliedText: { ...typeScale.labelSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, paddingRight: 4, }, removeFilterTouchableContainer: { diff --git a/src/earn/ActionCard.tsx b/src/earn/ActionCard.tsx index 278d708e934..7bfc50114ff 100644 --- a/src/earn/ActionCard.tsx +++ b/src/earn/ActionCard.tsx @@ -16,7 +16,7 @@ export function ActionCard({ action }: { action: BeforeDepositAction | WithdrawA testID={`Earn/ActionCard/${action.name}`} > <> - + {action.title} {action.details} diff --git a/src/earn/EarnConfirmationScreen.tsx b/src/earn/EarnConfirmationScreen.tsx index 8e4a2c2b31c..4a5f57a03e5 100644 --- a/src/earn/EarnConfirmationScreen.tsx +++ b/src/earn/EarnConfirmationScreen.tsx @@ -372,7 +372,7 @@ const styles = StyleSheet.create({ }, fiatText: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, collectItemTitle: { ...typeScale.labelSemiBoldXSmall, @@ -385,7 +385,7 @@ const styles = StyleSheet.create({ }, rateText: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginBottom: Spacing.Tiny4, }, iconContainer: { @@ -397,7 +397,7 @@ const styles = StyleSheet.create({ }, gasFeeFiat: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, button: { padding: Spacing.Thick24, diff --git a/src/earn/EarnDepositBottomSheet.tsx b/src/earn/EarnDepositBottomSheet.tsx index 8d301634430..d6a333d52b8 100644 --- a/src/earn/EarnDepositBottomSheet.tsx +++ b/src/earn/EarnDepositBottomSheet.tsx @@ -185,7 +185,7 @@ export default function EarnDepositBottomSheet({ showLocalAmount={false} style={styles.valueSecondary} /> - + - + {errorLoadingPools && ( - + {t('earnFlow.home.errorTitle')} {t('earnFlow.home.errorDescription')} @@ -356,7 +356,7 @@ const styles = StyleSheet.create({ ...getShadowStyle(Shadow.SoftLight), paddingBottom: Spacing.Regular16, paddingHorizontal: Spacing.Regular16, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, position: 'absolute', width: '100%', zIndex: 1, diff --git a/src/earn/EarnInfoScreen.tsx b/src/earn/EarnInfoScreen.tsx index 414edaaabd9..7d3951ffaa4 100644 --- a/src/earn/EarnInfoScreen.tsx +++ b/src/earn/EarnInfoScreen.tsx @@ -74,17 +74,17 @@ export default function EarnInfoScreen() { } + icon={} title={t('earnFlow.earnInfo.details.work.title')} subtitle={t('earnFlow.earnInfo.details.work.subtitle')} /> } + icon={} title={t('earnFlow.earnInfo.details.manage.titleV1_94')} subtitle={t('earnFlow.earnInfo.details.manage.subtitleV1_94')} /> } + icon={} title={t('earnFlow.earnInfo.details.access.title')} subtitle={t('earnFlow.earnInfo.details.access.subtitle')} /> diff --git a/src/earn/EarnTabBar.test.tsx b/src/earn/EarnTabBar.test.tsx index 8c0aeb0b14e..4ce5560bf81 100644 --- a/src/earn/EarnTabBar.test.tsx +++ b/src/earn/EarnTabBar.test.tsx @@ -19,9 +19,9 @@ describe('EarnTabBar', () => { const tabItems = getAllByTestId('Earn/TabBarItem') expect(tabItems).toHaveLength(2) expect(tabItems[0]).toHaveTextContent('earnFlow.poolFilters.allPools') - expect(tabItems[0].children[0]).toHaveStyle({ color: Colors.textPrimary }) + expect(tabItems[0].children[0]).toHaveStyle({ color: Colors.contentPrimary }) expect(tabItems[1]).toHaveTextContent('earnFlow.poolFilters.myPools') - expect(tabItems[1].children[0]).toHaveStyle({ color: Colors.textSecondary }) + expect(tabItems[1].children[0]).toHaveStyle({ color: Colors.contentSecondary }) }) it.each([{ tab: EarnTabType.AllPools }, { tab: EarnTabType.MyPools }])( diff --git a/src/earn/EarnTabBar.tsx b/src/earn/EarnTabBar.tsx index ec23703e27b..9b2bebc1532 100644 --- a/src/earn/EarnTabBar.tsx +++ b/src/earn/EarnTabBar.tsx @@ -65,7 +65,7 @@ const styles = StyleSheet.create({ }, item: { ...typeScale.bodyMedium, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, itemSelected: { ...typeScale.labelMedium, diff --git a/src/earn/PoolCard.tsx b/src/earn/PoolCard.tsx index b86c8caecd6..1811c9128bc 100644 --- a/src/earn/PoolCard.tsx +++ b/src/earn/PoolCard.tsx @@ -170,7 +170,7 @@ const styles = StyleSheet.create({ }, keyText: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, valueText: { ...typeScale.bodySmall, @@ -181,7 +181,7 @@ const styles = StyleSheet.create({ poweredByText: { ...typeScale.bodyXSmall, alignSelf: 'center', - color: Colors.textSecondary, + color: Colors.contentSecondary, }, withBalanceContainer: { borderTopWidth: 1, diff --git a/src/earn/poolInfoScreen/Cards.tsx b/src/earn/poolInfoScreen/Cards.tsx index 4271520d125..3b67399597c 100644 --- a/src/earn/poolInfoScreen/Cards.tsx +++ b/src/earn/poolInfoScreen/Cards.tsx @@ -346,7 +346,7 @@ export const styles = StyleSheet.create({ }, cardLabelText: { ...typeScale.bodyMedium, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, depositAndEarningCard: { backgroundColor: Colors.backgroundSecondary, @@ -362,7 +362,7 @@ export const styles = StyleSheet.create({ ...typeScale.titleMedium, }, depositAndEarningCardSubtitleContainer: { - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, padding: Spacing.Regular16, borderBottomLeftRadius: 16, borderBottomRightRadius: 16, diff --git a/src/earn/poolInfoScreen/EarnPoolInfoScreen.tsx b/src/earn/poolInfoScreen/EarnPoolInfoScreen.tsx index 8f764a0399e..07e95061379 100644 --- a/src/earn/poolInfoScreen/EarnPoolInfoScreen.tsx +++ b/src/earn/poolInfoScreen/EarnPoolInfoScreen.tsx @@ -123,7 +123,7 @@ function LearnMoreTouchable({ {t('earnFlow.poolInfoScreen.learnMoreOnProvider', { providerName })} - + @@ -496,7 +496,7 @@ function InfoBottomSheet({ - + @@ -533,7 +533,7 @@ const styles = StyleSheet.create({ }, subtitleLabel: { ...typeScale.bodyMedium, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, subtitleInfo: { ...typeScale.labelMedium, diff --git a/src/earn/poolInfoScreen/SafetyCard.tsx b/src/earn/poolInfoScreen/SafetyCard.tsx index 2c86e8fcbf0..0013e2d650e 100644 --- a/src/earn/poolInfoScreen/SafetyCard.tsx +++ b/src/earn/poolInfoScreen/SafetyCard.tsx @@ -29,7 +29,7 @@ function Risk({ risk }: { risk: SafetyRisk }) { {risk.isPositive ? ( ) : ( - + )} @@ -123,7 +123,7 @@ const styles = StyleSheet.create({ }, viewDetailsText: { ...typeScale.labelSemiBoldSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, textAlign: 'center', flex: 1, }, @@ -148,6 +148,6 @@ const styles = StyleSheet.create({ }, riskCategory: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, }) diff --git a/src/fiatExchanges/PaymentMethodSection.tsx b/src/fiatExchanges/PaymentMethodSection.tsx index d19d76a7fe4..89a14afc756 100644 --- a/src/fiatExchanges/PaymentMethodSection.tsx +++ b/src/fiatExchanges/PaymentMethodSection.tsx @@ -149,7 +149,7 @@ export function PaymentMethodSection({ > <> {t('selectProviderScreen.newLabel')} - + > )} @@ -342,7 +342,7 @@ const styles = StyleSheet.create({ }, newLabelText: { ...typeScale.labelSemiBoldSmall, - color: colors.textInverse, + color: colors.contentInverse, marginRight: 5, }, category: { @@ -354,16 +354,16 @@ const styles = StyleSheet.create({ }, providerDropdown: { ...typeScale.labelSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, expandedInfo: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, marginTop: 2, }, topInfo: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, marginTop: 4, }, expandedFee: { diff --git a/src/fiatExchanges/ReviewFees.tsx b/src/fiatExchanges/ReviewFees.tsx index b3e5c115325..34713614193 100644 --- a/src/fiatExchanges/ReviewFees.tsx +++ b/src/fiatExchanges/ReviewFees.tsx @@ -129,7 +129,7 @@ export default function ReviewFees({ onPress={openFeeExplanation} hitSlop={variables.iconHitslop} > - + {showAmount(fiat.total - fiat.subTotal, false, [styles.reviewLineText])} @@ -143,7 +143,7 @@ export default function ReviewFees({ onPress={openFeeDiscountExplanation} hitSlop={variables.iconHitslop} > - + {t('free')} @@ -183,7 +183,7 @@ const styles = StyleSheet.create({ color: colors.accent, }, reviewLineTextAlt: { - color: colors.textSecondary, + color: colors.contentSecondary, }, reviewLineTextTotal: { ...typeScale.labelSemiBoldMedium, diff --git a/src/fiatExchanges/SelectProvider.tsx b/src/fiatExchanges/SelectProvider.tsx index 1d0b0cc2b8b..10022b19c42 100644 --- a/src/fiatExchanges/SelectProvider.tsx +++ b/src/fiatExchanges/SelectProvider.tsx @@ -595,7 +595,7 @@ const styles = StyleSheet.create({ }, linkToOtherScreen: { ...typeScale.labelSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, disclaimerContainer: { padding: Spacing.Regular16, @@ -606,7 +606,7 @@ const styles = StyleSheet.create({ }, disclaimerText: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, underline: { textDecorationLine: 'underline', diff --git a/src/fiatExchanges/SimplexScreen.tsx b/src/fiatExchanges/SimplexScreen.tsx index 5699ff29dd0..3f809ff9dec 100644 --- a/src/fiatExchanges/SimplexScreen.tsx +++ b/src/fiatExchanges/SimplexScreen.tsx @@ -136,7 +136,7 @@ function SimplexScreen({ route, navigation }: Props) { onPress={onButtonPress} disabled={!simplexPaymentRequest?.paymentId} showLoading={asyncSimplexPaymentData.status === 'loading'} - loadingColor={colors.textInverse} + loadingColor={colors.contentInverse} /> ) : ( diff --git a/src/fiatExchanges/Spend.tsx b/src/fiatExchanges/Spend.tsx index 67cad89a96d..09eff2aef29 100644 --- a/src/fiatExchanges/Spend.tsx +++ b/src/fiatExchanges/Spend.tsx @@ -97,7 +97,7 @@ const styles = StyleSheet.create({ }, optionSubtitle: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/fiatExchanges/WithdrawSpend.tsx b/src/fiatExchanges/WithdrawSpend.tsx index 90561674dde..be1a2630888 100644 --- a/src/fiatExchanges/WithdrawSpend.tsx +++ b/src/fiatExchanges/WithdrawSpend.tsx @@ -122,7 +122,7 @@ const styles = StyleSheet.create({ optionSubtitle: { marginTop: 2, ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, moreWaysContainer: { flexGrow: 1, @@ -130,7 +130,7 @@ const styles = StyleSheet.create({ }, moreWays: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, margin: variables.contentPadding, }, fundingOptionsLink: { diff --git a/src/fiatconnect/FiatDetailsScreen.tsx b/src/fiatconnect/FiatDetailsScreen.tsx index 674517a9000..d19e1b75dd4 100644 --- a/src/fiatconnect/FiatDetailsScreen.tsx +++ b/src/fiatconnect/FiatDetailsScreen.tsx @@ -304,7 +304,7 @@ function FormField({ style={styles.infoIcon} hitSlop={variables.iconHitslop} > - + )} @@ -402,7 +402,7 @@ const styles = StyleSheet.create({ }, error: { fontSize: 12, - color: colors.error, + color: colors.errorPrimary, }, submitButton: { padding: variables.contentPadding, diff --git a/src/fiatconnect/KycLanding.tsx b/src/fiatconnect/KycLanding.tsx index fffbbddbf8c..1f0fec164f3 100644 --- a/src/fiatconnect/KycLanding.tsx +++ b/src/fiatconnect/KycLanding.tsx @@ -239,7 +239,7 @@ const styles = StyleSheet.create({ marginHorizontal: 24, }, disclaimer: { - color: Colors.textSecondary, + color: Colors.contentSecondary, textAlign: 'left', marginLeft: 11, fontSize: 13, diff --git a/src/fiatconnect/ReviewScreen.tsx b/src/fiatconnect/ReviewScreen.tsx index d7243380635..59ae623e865 100644 --- a/src/fiatconnect/ReviewScreen.tsx +++ b/src/fiatconnect/ReviewScreen.tsx @@ -625,7 +625,7 @@ const styles = StyleSheet.create({ }, sectionHeaderText: { ...typeScale.labelSemiBoldSmall, - color: colors.textSecondary, + color: colors.contentSecondary, marginBottom: 8, }, sectionMainTextContainer: { @@ -639,7 +639,7 @@ const styles = StyleSheet.create({ }, sectionSubText: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, submitBtn: { flexDirection: 'column', @@ -678,7 +678,7 @@ const styles = StyleSheet.create({ paddingHorizontal: variables.contentPadding, marginBottom: 20, textAlign: 'center', - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/fiatconnect/TransferStatusScreen.test.tsx b/src/fiatconnect/TransferStatusScreen.test.tsx index dab69c2bba2..ae6d6264de0 100644 --- a/src/fiatconnect/TransferStatusScreen.test.tsx +++ b/src/fiatconnect/TransferStatusScreen.test.tsx @@ -384,7 +384,9 @@ describe('TransferStatusScreen', () => { ) expect(getByTestId('loadingTransferStatus')).toBeTruthy() - expect(getByTestId('loadingDescription')).toHaveStyle({ color: appTheme.colors.background }) + expect(getByTestId('loadingDescription')).toHaveStyle({ + color: appTheme.colors.background, + }) await act(async () => { jest.runOnlyPendingTimers() }) diff --git a/src/fiatconnect/TransferStatusScreen.tsx b/src/fiatconnect/TransferStatusScreen.tsx index 8d671cd32d5..74d695181a1 100644 --- a/src/fiatconnect/TransferStatusScreen.tsx +++ b/src/fiatconnect/TransferStatusScreen.tsx @@ -148,7 +148,7 @@ function SuccessOrProcessingSection({ if (status === SendingTransferStatus.Completed) { icon = ( - + ) title = t('fiatConnectStatusScreen.success.title') @@ -158,7 +158,7 @@ function SuccessOrProcessingSection({ } else { icon = ( - + ) title = t('fiatConnectStatusScreen.txProcessing.title') diff --git a/src/fiatconnect/kyc/KycPending.tsx b/src/fiatconnect/kyc/KycPending.tsx index ce42b48277b..2b53fd21ff7 100644 --- a/src/fiatconnect/kyc/KycPending.tsx +++ b/src/fiatconnect/kyc/KycPending.tsx @@ -46,11 +46,11 @@ function KycPending({ route, navigation }: Props) { backgroundColor={colors.backgroundSecondary} style={styles.bankIcon} > - + - + - + diff --git a/src/home/ActionsCarousel.tsx b/src/home/ActionsCarousel.tsx index 3576013b8e4..c37a3b4a053 100644 --- a/src/home/ActionsCarousel.tsx +++ b/src/home/ActionsCarousel.tsx @@ -34,14 +34,14 @@ function ActionsCarousel() { const actions: Actions = { [HomeActionName.Send]: { title: t('homeActions.send'), - icon: , + icon: , onPress: () => { navigate(Screens.SendSelectRecipient) }, }, [HomeActionName.Receive]: { title: t('homeActions.receive'), - icon: , + icon: , onPress: () => { navigate(Screens.QRNavigator, { screen: Screens.QRCode, @@ -50,14 +50,14 @@ function ActionsCarousel() { }, [HomeActionName.Add]: { title: t('homeActions.add'), - icon: , + icon: , onPress: () => { navigate(Screens.FiatExchangeCurrencyBottomSheet, { flow: FiatExchangeFlow.CashIn }) }, }, [HomeActionName.Swap]: { title: t('homeActions.swap'), - icon: , + icon: , onPress: () => { navigate(Screens.SwapScreenWithBack) }, @@ -65,7 +65,7 @@ function ActionsCarousel() { }, [HomeActionName.Withdraw]: { title: t('homeActions.withdraw'), - icon: , + icon: , onPress: () => { navigate(Screens.WithdrawSpend) }, @@ -123,7 +123,7 @@ function ActionsCarousel() { const styles = StyleSheet.create({ viewContainer: { - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, }, carouselContainer: { padding: Spacing.Regular16, @@ -143,7 +143,7 @@ const styles = StyleSheet.create({ ...typeScale.labelSmall, lineHeight: 17, paddingTop: Spacing.Smallest8, - color: Colors.success, + color: Colors.successPrimary, }, }) diff --git a/src/home/GetStarted.tsx b/src/home/GetStarted.tsx index e91c991a00d..95ca32f6863 100644 --- a/src/home/GetStarted.tsx +++ b/src/home/GetStarted.tsx @@ -21,7 +21,7 @@ function EarnItem() { - + } title={t('earnFlow.entrypoint.title')} @@ -87,7 +87,7 @@ const styles = StyleSheet.create({ }, title: { ...typeScale.labelSemiBoldSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, touchable: { padding: Spacing.Regular16, @@ -104,7 +104,7 @@ const styles = StyleSheet.create({ }, itemBody: { ...typeScale.bodyXSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, touchableView: { gap: Spacing.Thick24, diff --git a/src/home/celebration/NftCelebration.tsx b/src/home/celebration/NftCelebration.tsx index 8abcfbc390e..b650ffa1500 100644 --- a/src/home/celebration/NftCelebration.tsx +++ b/src/home/celebration/NftCelebration.tsx @@ -196,7 +196,7 @@ const styles = StyleSheet.create({ }, description: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginTop: Spacing.Smallest8, }, button: { diff --git a/src/home/celebration/NftReward.test.tsx b/src/home/celebration/NftReward.test.tsx index a77150eecb2..f4e99e2b111 100644 --- a/src/home/celebration/NftReward.test.tsx +++ b/src/home/celebration/NftReward.test.tsx @@ -65,7 +65,7 @@ describe('NftReward', () => { expect(pillLabel).toHaveTextContent( 'nftCelebration.rewardBottomSheet.expirationLabel, {"expirationLabelText":"in about 100 years"}' ) - expect(StyleSheet.flatten(pillLabel.props.style)).toHaveProperty('color', Colors.textPrimary) + expect(StyleSheet.flatten(pillLabel.props.style)).toHaveProperty('color', Colors.contentPrimary) expect(StyleSheet.flatten(getByTestId('NftReward/Pill').props.style)).toHaveProperty( 'backgroundColor', Colors.info @@ -85,7 +85,7 @@ describe('NftReward', () => { expect(pillLabel).toHaveTextContent( 'nftCelebration.rewardReminderBottomSheet.expirationLabel, {"expirationLabelText":"in about 1 month"}' ) - expect(StyleSheet.flatten(pillLabel.props.style)).toHaveProperty('color', Colors.warning) + expect(StyleSheet.flatten(pillLabel.props.style)).toHaveProperty('color', Colors.warningPrimary) expect(StyleSheet.flatten(getByTestId('NftReward/Pill').props.style)).toHaveProperty( 'backgroundColor', Colors.warningSecondary diff --git a/src/home/celebration/NftReward.tsx b/src/home/celebration/NftReward.tsx index 8e0f1e03b3a..137c97a0863 100644 --- a/src/home/celebration/NftReward.tsx +++ b/src/home/celebration/NftReward.tsx @@ -51,11 +51,11 @@ export default function NftRewardBottomSheet() { const { pillStyle, labelStyle } = isReminder ? { pillStyle: { backgroundColor: Colors.warningSecondary }, - labelStyle: { color: Colors.warning }, + labelStyle: { color: Colors.warningPrimary }, } : { pillStyle: { backgroundColor: Colors.info }, - labelStyle: { color: Colors.textPrimary }, + labelStyle: { color: Colors.contentPrimary }, } const copyText = isReminder ? 'rewardReminderBottomSheet' : 'rewardBottomSheet' @@ -153,7 +153,7 @@ const styles = StyleSheet.create({ description: { marginTop: Spacing.Regular16, ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, button: { marginTop: Spacing.XLarge48, diff --git a/src/icons/Activity.tsx b/src/icons/Activity.tsx index 7d58dfd7e10..b416b1f2a18 100644 --- a/src/icons/Activity.tsx +++ b/src/icons/Activity.tsx @@ -7,7 +7,7 @@ interface Props { color?: colors } -function Activity({ color = colors.success, size = 24 }: Props) { +function Activity({ color = colors.successPrimary, size = 24 }: Props) { return ( ( +const AppleIcon = ({ color = Colors.contentPrimary }) => ( ( +const ArrowDown = ({ color = Colors.contentPrimary, size = 24 }: Props) => ( ( +const ArrowRightThick = ({ color = colors.contentPrimary, size = 24 }: Props) => ( diff --git a/src/icons/Attention.tsx b/src/icons/Attention.tsx index 7a8583e9e84..25df8587307 100644 --- a/src/icons/Attention.tsx +++ b/src/icons/Attention.tsx @@ -3,7 +3,7 @@ import Svg, { Path } from 'react-native-svg' import Colors from 'src/styles/colors' const AttentionIcon = ({ - color = Colors.warning, + color = Colors.warningPrimary, size = 16, testId, }: { diff --git a/src/icons/BackChevron.tsx b/src/icons/BackChevron.tsx index 8f25122f588..95483d37c28 100644 --- a/src/icons/BackChevron.tsx +++ b/src/icons/BackChevron.tsx @@ -23,7 +23,7 @@ function BackChevron({ color, height }: Props) { BackChevron.defaultProps = { height: 16, - color: Colors.textPrimary, + color: Colors.contentPrimary, } export default BackChevron diff --git a/src/icons/Backspace.tsx b/src/icons/Backspace.tsx index 9c960cfa9d0..c9f05a763b7 100644 --- a/src/icons/Backspace.tsx +++ b/src/icons/Backspace.tsx @@ -12,7 +12,7 @@ export default class Backspace extends React.PureComponent { static defaultProps = { height: 30, width: 30, - color: colors.textPrimary, + color: colors.contentPrimary, } render() { diff --git a/src/icons/Celebration.tsx b/src/icons/Celebration.tsx index f08b76d9dba..c4d003ffa90 100644 --- a/src/icons/Celebration.tsx +++ b/src/icons/Celebration.tsx @@ -7,7 +7,7 @@ interface Props { color?: string } -const Celebration = ({ size = 24, color = Colors.textPrimary }: Props) => ( +const Celebration = ({ size = 24, color = Colors.contentPrimary }: Props) => ( { if (checked) diff --git a/src/icons/CheckCircle.tsx b/src/icons/CheckCircle.tsx index 8cee6349a69..26507c66577 100644 --- a/src/icons/CheckCircle.tsx +++ b/src/icons/CheckCircle.tsx @@ -8,7 +8,7 @@ interface Props { testID?: string } -const CheckCircle = ({ size = 24, color = Colors.textPrimary, testID }: Props) => ( +const CheckCircle = ({ size = 24, color = Colors.contentPrimary, testID }: Props) => ( ( diff --git a/src/icons/ComingSoon.tsx b/src/icons/ComingSoon.tsx index c81cd63fa57..84dbca63574 100644 --- a/src/icons/ComingSoon.tsx +++ b/src/icons/ComingSoon.tsx @@ -7,7 +7,7 @@ interface Props { color?: string } -const ComingSoon = ({ size = 24, color = Colors.textPrimary }: Props) => ( +const ComingSoon = ({ size = 24, color = Colors.contentPrimary }: Props) => ( diff --git a/src/icons/DataDown.tsx b/src/icons/DataDown.tsx index b643ca5dad2..61149b999fe 100644 --- a/src/icons/DataDown.tsx +++ b/src/icons/DataDown.tsx @@ -7,7 +7,7 @@ interface Props { testID?: string } -const DataDown = ({ color = colors.textPrimary, testID }: Props) => ( +const DataDown = ({ color = colors.contentPrimary, testID }: Props) => ( diff --git a/src/icons/DownArrowIcon.tsx b/src/icons/DownArrowIcon.tsx index 63a57e35fa5..661f4789de5 100644 --- a/src/icons/DownArrowIcon.tsx +++ b/src/icons/DownArrowIcon.tsx @@ -13,7 +13,7 @@ interface Props { export default function DownArrowIcon({ height, - color = colors.textPrimary, + color = colors.contentPrimary, strokeWidth = 1, style = {}, }: Props) { diff --git a/src/icons/Envelope.tsx b/src/icons/Envelope.tsx index dd81f63aa3b..62bcbd0d62d 100644 --- a/src/icons/Envelope.tsx +++ b/src/icons/Envelope.tsx @@ -19,7 +19,7 @@ export function Envelope({ color, size }: Props) { } Envelope.defaultProps = { - color: Colors.textPrimary, + color: Colors.contentPrimary, size: 24, } diff --git a/src/icons/Error.tsx b/src/icons/Error.tsx index 3215bb4d7b6..4e1691cf527 100644 --- a/src/icons/Error.tsx +++ b/src/icons/Error.tsx @@ -12,7 +12,7 @@ interface Props { export default class Error extends React.PureComponent { static defaultProps = { - color: colors.textInverse, + color: colors.contentInverse, width: getSizing(), style: {}, } diff --git a/src/icons/ExploreTokens.tsx b/src/icons/ExploreTokens.tsx index 128c297726f..5cbd2be23b9 100644 --- a/src/icons/ExploreTokens.tsx +++ b/src/icons/ExploreTokens.tsx @@ -8,7 +8,7 @@ function AllTokens() { ) diff --git a/src/icons/EyeIcon.tsx b/src/icons/EyeIcon.tsx index bbef3da0cbc..9b646c84fda 100644 --- a/src/icons/EyeIcon.tsx +++ b/src/icons/EyeIcon.tsx @@ -21,7 +21,7 @@ function EyeIcon({ color, size }: Props) { EyeIcon.defaultProps = { size: 24, - color: Colors.textPrimary, + color: Colors.contentPrimary, } export default EyeIcon diff --git a/src/icons/ForwardChevron.tsx b/src/icons/ForwardChevron.tsx index 6e32e9b884f..940588f361d 100644 --- a/src/icons/ForwardChevron.tsx +++ b/src/icons/ForwardChevron.tsx @@ -29,7 +29,7 @@ function ForwardChevron({ color, height }: Props) { ForwardChevron.defaultProps = { height: 16, - color: colors.textPrimary, + color: colors.contentPrimary, } export default ForwardChevron diff --git a/src/icons/GearIcon.tsx b/src/icons/GearIcon.tsx index f38df69d45a..5c4702f10ff 100644 --- a/src/icons/GearIcon.tsx +++ b/src/icons/GearIcon.tsx @@ -7,7 +7,7 @@ interface Props { color?: string } -const GearIcon = ({ size = 24, color = colors.textPrimary }: Props) => ( +const GearIcon = ({ size = 24, color = colors.contentPrimary }: Props) => ( ( +const GoogleIcon = ({ color = Colors.contentPrimary }) => ( {borderWidth > 0 && ( )} - - + + diff --git a/src/icons/HamburgerCard.tsx b/src/icons/HamburgerCard.tsx index 021af4393e9..a59f626352b 100644 --- a/src/icons/HamburgerCard.tsx +++ b/src/icons/HamburgerCard.tsx @@ -13,7 +13,7 @@ function HamburgerCard() { y1="9.75" x2="24.75" y2="9.75" - stroke={Colors.textPrimary} + stroke={Colors.contentPrimary} strokeWidth="2.5" strokeLinecap="round" /> @@ -22,7 +22,7 @@ function HamburgerCard() { y1="15.75" x2="24.75" y2="15.75" - stroke={Colors.textPrimary} + stroke={Colors.contentPrimary} strokeWidth="2.5" strokeLinecap="round" /> @@ -31,7 +31,7 @@ function HamburgerCard() { y1="21.75" x2="24.75" y2="21.75" - stroke={Colors.textPrimary} + stroke={Colors.contentPrimary} strokeWidth="2.5" strokeLinecap="round" /> @@ -42,7 +42,7 @@ function HamburgerCard() { const styles = StyleSheet.create({ container: { - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, ...elevationShadowStyle(12), alignItems: 'center', justifyContent: 'center', diff --git a/src/icons/Help.tsx b/src/icons/Help.tsx index 16efa4bd48c..a96365ffc96 100644 --- a/src/icons/Help.tsx +++ b/src/icons/Help.tsx @@ -7,7 +7,7 @@ interface Props { size?: number } -export function Help({ color = colors.textPrimary, size = 32 }: Props) { +export function Help({ color = colors.contentPrimary, size = 32 }: Props) { return ( - + @@ -25,7 +25,7 @@ function HiddenEyeIcon({ color, size }: Props) { HiddenEyeIcon.defaultProps = { size: 24, - color: Colors.textPrimary, + color: Colors.contentPrimary, } export default HiddenEyeIcon diff --git a/src/icons/InfoIcon.tsx b/src/icons/InfoIcon.tsx index 8ce6b094e02..ff0da49f739 100644 --- a/src/icons/InfoIcon.tsx +++ b/src/icons/InfoIcon.tsx @@ -19,7 +19,7 @@ const getSizing = (baseSize: number = 16, maxSize: number = 28) => { function InfoIcon({ size = 16, scaledSize = getSizing(size), - color = colors.textPrimary, + color = colors.contentPrimary, testID, }: Props) { return ( diff --git a/src/icons/KeylessBackup.tsx b/src/icons/KeylessBackup.tsx index 025ecc50e01..09be977e9a0 100644 --- a/src/icons/KeylessBackup.tsx +++ b/src/icons/KeylessBackup.tsx @@ -11,7 +11,7 @@ export default function KeylessBackup({ style }: Props) { return ( - + diff --git a/src/icons/MagicWand.tsx b/src/icons/MagicWand.tsx index 914aaa65436..6cf8852cdc2 100644 --- a/src/icons/MagicWand.tsx +++ b/src/icons/MagicWand.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import Svg, { Path } from 'react-native-svg' import Colors from 'src/styles/colors' -const MagicWand = ({ size = 24, color = Colors.success }) => ( +const MagicWand = ({ size = 24, color = Colors.successPrimary }) => ( ( {notificationMark && ( ( +const OpenLinkIcon = ({ color = colors.contentInverse, size = 12 }: Props) => ( { static defaultProps = { width: 28, height: 28, - color: colors.textPrimary, + color: colors.contentPrimary, } render() { diff --git a/src/icons/Phone.tsx b/src/icons/Phone.tsx index 6f0eda68e39..9500e49afc8 100644 --- a/src/icons/Phone.tsx +++ b/src/icons/Phone.tsx @@ -8,7 +8,7 @@ interface Props { testID?: string } -export default function Phone({ color = Colors.textPrimary, size = 24, testID }: Props) { +export default function Phone({ color = Colors.contentPrimary, size = 24, testID }: Props) { return ( ( ) diff --git a/src/icons/Preferences.tsx b/src/icons/Preferences.tsx index 73b1641a93a..677f675a081 100644 --- a/src/icons/Preferences.tsx +++ b/src/icons/Preferences.tsx @@ -7,7 +7,7 @@ interface Props { color?: string } -function Preferences({ color = colors.textPrimary, size = 24 }: Props) { +function Preferences({ color = colors.contentPrimary, size = 24 }: Props) { return ( ( ) diff --git a/src/icons/QRCode.tsx b/src/icons/QRCode.tsx index 79b2f11c7bc..ed93f4ed633 100644 --- a/src/icons/QRCode.tsx +++ b/src/icons/QRCode.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import Svg, { Path } from 'react-native-svg' import Colors from 'src/styles/colors' -const QRCode = ({ color = Colors.textPrimary }: { color?: Colors }) => ( +const QRCode = ({ color = Colors.contentPrimary }: { color?: Colors }) => ( ( Refresh.defaultProps = { height: 16, - color: colors.textPrimary, + color: colors.contentPrimary, } export default Refresh diff --git a/src/icons/ScanIcon.tsx b/src/icons/ScanIcon.tsx index 5c5f46d3da2..693b0096955 100644 --- a/src/icons/ScanIcon.tsx +++ b/src/icons/ScanIcon.tsx @@ -7,7 +7,7 @@ interface Props { size?: number } -const ScanIcon = ({ color = colors.textPrimary, size = 24 }: Props) => ( +const ScanIcon = ({ color = colors.contentPrimary, size = 24 }: Props) => ( { static defaultProps = { width: 14, height: 15, - color: colors.textPrimary, + color: colors.contentPrimary, } render() { diff --git a/src/icons/Social.tsx b/src/icons/Social.tsx index dfd670e6018..0f6e2e72880 100644 --- a/src/icons/Social.tsx +++ b/src/icons/Social.tsx @@ -5,8 +5,8 @@ import Colors from 'src/styles/colors' const Social = () => ( diff --git a/src/icons/Stack.tsx b/src/icons/Stack.tsx index e8ca0fecdb7..4009e5975d3 100644 --- a/src/icons/Stack.tsx +++ b/src/icons/Stack.tsx @@ -7,7 +7,7 @@ interface Props { color?: string } -function Stack({ color = colors.textPrimary, size = 24 }: Props) { +function Stack({ color = colors.contentPrimary, size = 24 }: Props) { return ( ( +const StarOutline = ({ color = Colors.contentPrimary }: { color?: Colors }) => ( ( +const SwapArrows = ({ size = 24, color = Colors.contentPrimary, testID }: Props) => ( ( clip-rule="evenodd" /> diff --git a/src/icons/Times.tsx b/src/icons/Times.tsx index 098e35cfb7f..c5d5ac1b608 100644 --- a/src/icons/Times.tsx +++ b/src/icons/Times.tsx @@ -37,7 +37,7 @@ function Times({ color, height, strokeWidth }: Props) { Times.defaultProps = { height: 16, - color: colors.textPrimary, + color: colors.contentPrimary, strokeWidth: 2, } diff --git a/src/icons/TripleDotVertical.tsx b/src/icons/TripleDotVertical.tsx index b1d82737579..6fe5fe5f54f 100644 --- a/src/icons/TripleDotVertical.tsx +++ b/src/icons/TripleDotVertical.tsx @@ -6,7 +6,7 @@ interface Props { color?: string } -const TripleDotVertical = ({ color = Colors.textPrimary }: Props) => ( +const TripleDotVertical = ({ color = Colors.contentPrimary }: Props) => ( ) diff --git a/src/icons/biometry/FaceID.tsx b/src/icons/biometry/FaceID.tsx index e96d62f8d90..57c9ce565e8 100644 --- a/src/icons/biometry/FaceID.tsx +++ b/src/icons/biometry/FaceID.tsx @@ -9,7 +9,7 @@ export function FaceID() { fillRule="evenodd" clipRule="evenodd" d="M1.719 6.586V3.89A2.675 2.675 0 0 1 4.39 1.219h2.695a.61.61 0 0 0 0-1.219H4.39A3.895 3.895 0 0 0 .5 3.89v2.696a.61.61 0 0 0 1.219 0ZM7.086 22.78a.61.61 0 0 1 0 1.219H4.39A3.895 3.895 0 0 1 .5 20.11v-2.696a.61.61 0 1 1 1.219 0v2.695a2.675 2.675 0 0 0 2.672 2.672h2.695ZM24.5 17.414v2.695A3.895 3.895 0 0 1 20.61 24h-2.696a.61.61 0 1 1 0-1.219h2.695a2.675 2.675 0 0 0 2.672-2.672v-2.695a.61.61 0 0 1 1.219 0Zm0-13.523v2.695a.61.61 0 1 1-1.219 0V3.89a2.675 2.675 0 0 0-2.672-2.672h-2.695a.61.61 0 1 1 0-1.219h2.695A3.895 3.895 0 0 1 24.5 3.89Zm-7.795 13.847a.633.633 0 0 0-.858-.93 4.918 4.918 0 0 1-3.347 1.31 4.918 4.918 0 0 1-3.347-1.31.633.633 0 0 0-.858.93 6.18 6.18 0 0 0 4.205 1.645 6.18 6.18 0 0 0 4.205-1.645Zm-2.94-8.691v4.5c0 .892-.725 1.617-1.617 1.617h-.515a.633.633 0 0 1 0-1.266h.515a.352.352 0 0 0 .352-.351v-4.5a.633.633 0 1 1 1.266 0Zm4.36 1.77V9.011a.598.598 0 0 0-1.195 0v1.804a.598.598 0 1 0 1.195 0Zm-11.11 0a.598.598 0 1 0 1.196 0V9.011a.598.598 0 0 0-1.195 0v1.804Z" - fill={Colors.textInverse} + fill={Colors.contentInverse} /> ) diff --git a/src/icons/biometry/Fingerprint.tsx b/src/icons/biometry/Fingerprint.tsx index 21d36d46058..659d1e86205 100644 --- a/src/icons/biometry/Fingerprint.tsx +++ b/src/icons/biometry/Fingerprint.tsx @@ -7,7 +7,7 @@ export function Fingerprint() { ) diff --git a/src/icons/biometry/Iris.tsx b/src/icons/biometry/Iris.tsx index 9a45dae7629..a453e712f58 100644 --- a/src/icons/biometry/Iris.tsx +++ b/src/icons/biometry/Iris.tsx @@ -9,11 +9,11 @@ export function Iris() { fillRule="evenodd" clipRule="evenodd" d="M24 20.11v-2.696a.61.61 0 1 0-1.219 0v2.695a2.675 2.675 0 0 1-2.672 2.672h-2.695a.61.61 0 0 0 0 1.219h2.695A3.895 3.895 0 0 0 24 20.11ZM7.195 23.39a.61.61 0 0 0-.61-.609H3.892a2.675 2.675 0 0 1-2.672-2.672v-2.695a.61.61 0 1 0-1.219 0v2.695A3.895 3.895 0 0 0 3.89 24h2.696a.61.61 0 0 0 .61-.61ZM1.219 6.586V3.89A2.675 2.675 0 0 1 3.89 1.219h2.695a.61.61 0 0 0 0-1.219H3.89A3.895 3.895 0 0 0 0 3.89v2.696a.61.61 0 0 0 1.219 0ZM24 6.586V3.89A3.895 3.895 0 0 0 20.11 0h-2.696a.61.61 0 1 0 0 1.219h2.695a2.675 2.675 0 0 1 2.672 2.672v2.695a.61.61 0 0 0 1.219 0Z" - fill={Colors.textInverse} + fill={Colors.contentInverse} /> ) diff --git a/src/icons/biometry/TouchID.tsx b/src/icons/biometry/TouchID.tsx index 711c83cc8ef..f471846d1bd 100644 --- a/src/icons/biometry/TouchID.tsx +++ b/src/icons/biometry/TouchID.tsx @@ -7,35 +7,35 @@ export function TouchID() { ) diff --git a/src/images/Star.tsx b/src/images/Star.tsx index ec16600412c..3116ef49912 100644 --- a/src/images/Star.tsx +++ b/src/images/Star.tsx @@ -12,7 +12,7 @@ const Star = () => ( - + diff --git a/src/invite/InviteModal.tsx b/src/invite/InviteModal.tsx index d8c22e6771c..403a179a8b5 100644 --- a/src/invite/InviteModal.tsx +++ b/src/invite/InviteModal.tsx @@ -65,7 +65,7 @@ const InviteModal = ({ } + icon={} iconPositionLeft={false} size={BtnSizes.FULL} text={buttonLabel} @@ -90,7 +90,7 @@ const InviteModal = ({ const styles = StyleSheet.create({ container: { position: 'absolute', - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, paddingHorizontal: Spacing.Thick24, }, contentContainer: { @@ -107,14 +107,14 @@ const styles = StyleSheet.create({ ...typeScale.bodyMedium, textAlign: 'center', marginBottom: Spacing.Large32, - color: colors.textSecondary, + color: colors.contentSecondary, }, helpContainer: { marginBottom: Spacing.Regular16, }, helpText: { ...typeScale.bodyXSmall, - color: colors.textSecondary, + color: colors.contentSecondary, textAlign: 'center', }, helpLink: { diff --git a/src/jumpstart/JumpstartShareLink.tsx b/src/jumpstart/JumpstartShareLink.tsx index cb87c220b58..2da5f5beeb1 100644 --- a/src/jumpstart/JumpstartShareLink.tsx +++ b/src/jumpstart/JumpstartShareLink.tsx @@ -173,7 +173,7 @@ function JumpstartShareLink({ route }: Props) { text={t('jumpstartShareLinkScreen.ctaShare')} onPress={() => nativeShare.execute(JumpstartShareOrigin.MainScreen)} style={styles.button} - icon={} + icon={} iconPositionLeft={false} size={BtnSizes.FULL} /> @@ -181,7 +181,7 @@ function JumpstartShareLink({ route }: Props) { text={t('jumpstartShareLinkScreen.ctaScanQRCode')} onPress={handleShowQRBottomSheet} style={styles.button} - icon={} + icon={} iconPositionLeft={false} size={BtnSizes.FULL} /> @@ -226,7 +226,7 @@ function JumpstartShareLink({ route }: Props) { text={t('jumpstartShareLinkScreen.ctaShare')} onPress={() => nativeShare.execute(JumpstartShareOrigin.QrScreen)} style={styles.button} - icon={} + icon={} iconPositionLeft={false} size={BtnSizes.FULL} /> diff --git a/src/jumpstart/JumpstartTransactionDetailsScreen.tsx b/src/jumpstart/JumpstartTransactionDetailsScreen.tsx index e4bacfc85da..0bea8b726a5 100644 --- a/src/jumpstart/JumpstartTransactionDetailsScreen.tsx +++ b/src/jumpstart/JumpstartTransactionDetailsScreen.tsx @@ -233,7 +233,9 @@ function JumpstartTransactionDetailsScreen({ route }: Props) { text={isClaimed ? t('claimed') : t('reclaim')} size={BtnSizes.FULL} icon={ - isClaimed ? : null + isClaimed ? ( + + ) : null } iconPositionLeft={false} /> @@ -352,7 +354,7 @@ const styles = StyleSheet.create({ }, tokenFiatValueText: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, amountContainer: { backgroundColor: Colors.backgroundSecondary, @@ -406,7 +408,7 @@ const styles = StyleSheet.create({ height: 40, width: 40, borderRadius: 100, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, }, }) diff --git a/src/keylessBackup/EnvelopeIcon.tsx b/src/keylessBackup/EnvelopeIcon.tsx index eb1473023d5..37380b4b8ea 100644 --- a/src/keylessBackup/EnvelopeIcon.tsx +++ b/src/keylessBackup/EnvelopeIcon.tsx @@ -12,7 +12,7 @@ export default function EnvelopeIcon({ style }: Props) { ) diff --git a/src/keylessBackup/LinkPhoneNumber.tsx b/src/keylessBackup/LinkPhoneNumber.tsx index c60dfd1bbc2..dd649047d47 100644 --- a/src/keylessBackup/LinkPhoneNumber.tsx +++ b/src/keylessBackup/LinkPhoneNumber.tsx @@ -25,7 +25,7 @@ export default function LinkPhoneNumber({ navigation }: Props) { navigation.setOptions({ headerLeft: () => , headerStyle: { - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, }, }) }, [navigation]) @@ -77,7 +77,7 @@ export default function LinkPhoneNumber({ navigation }: Props) { const styles = StyleSheet.create({ safeArea: { alignItems: 'center', - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, flexGrow: 1, justifyContent: 'space-between', }, diff --git a/src/keylessBackup/SignInWithEmail.tsx b/src/keylessBackup/SignInWithEmail.tsx index 16198aaab08..9e18c85e8d6 100644 --- a/src/keylessBackup/SignInWithEmail.tsx +++ b/src/keylessBackup/SignInWithEmail.tsx @@ -247,7 +247,7 @@ function SignInWithEmail({ route, navigation }: Props) { text={t('signInWithEmail.google')} size={BtnSizes.FULL} type={BtnTypes.SECONDARY} - icon={} + icon={} iconMargin={10} showLoading={loading === 'google-oauth2'} disabled={!!loading} @@ -258,7 +258,7 @@ function SignInWithEmail({ route, navigation }: Props) { text={t('signInWithEmail.apple')} size={BtnSizes.FULL} type={BtnTypes.SECONDARY} - icon={} + icon={} iconMargin={10} showLoading={loading === 'apple'} disabled={!!loading} diff --git a/src/keylessBackup/SmartphoneIcon.tsx b/src/keylessBackup/SmartphoneIcon.tsx index 9e71153c732..85b974f486b 100644 --- a/src/keylessBackup/SmartphoneIcon.tsx +++ b/src/keylessBackup/SmartphoneIcon.tsx @@ -12,7 +12,7 @@ export default function SvgVectorsmartphone({ style }: Props) { ) diff --git a/src/navigator/Headers.tsx b/src/navigator/Headers.tsx index c493a92de15..f6a13613c7e 100644 --- a/src/navigator/Headers.tsx +++ b/src/navigator/Headers.tsx @@ -36,7 +36,7 @@ export const styles = StyleSheet.create({ maxWidth: Dimensions.get('window').width * 0.6, }, headerSubTitle: { - color: Colors.textSecondary, + color: Colors.contentSecondary, }, header: { alignItems: 'center', @@ -68,7 +68,7 @@ export const nuxNavigationOptions: NativeStackNavigationOptions = { export const nuxNavigationOptionsOnboarding: NativeStackNavigationOptions = { ...nuxNavigationOptions, headerLeft: ({ canGoBack }) => - canGoBack ? : , + canGoBack ? : , } export const nuxNavigationOptionsNoBackButton: NativeStackNavigationOptions = { @@ -85,7 +85,7 @@ export const emptyHeader: NativeStackNavigationOptions = { headerShadowVisible: false, headerTitleAlign: 'center', headerStyle: { - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, }, } @@ -237,7 +237,7 @@ export const tabHeader: NativeStackNavigationOptions = { }, headerLeft: () => ( - + ), } diff --git a/src/navigator/Navigator.tsx b/src/navigator/Navigator.tsx index ac36f1fe08e..0b254771419 100644 --- a/src/navigator/Navigator.tsx +++ b/src/navigator/Navigator.tsx @@ -114,6 +114,7 @@ import ValidateRecipientIntro, { } from 'src/send/ValidateRecipientIntro' import { getFeatureGate } from 'src/statsig' import { StatsigFeatureGates } from 'src/statsig/types' +import styles from 'src/styles/styles' import variables from 'src/styles/variables' import SwapScreen from 'src/swap/SwapScreen' import SwapScreenV2 from 'src/swap/SwapScreenV2' @@ -757,6 +758,8 @@ function RootStackScreen() { // take up the whole screen, it is no longer obvious that they are a bottom // sheet / how to navigate away maxDynamicContentSize: variables.height * 0.9, + backgroundStyle: styles.bottomSheetBackground, + handleIndicatorStyle: styles.bottomSheetHandleIndicator, }} > diff --git a/src/navigator/SettingsMenu.tsx b/src/navigator/SettingsMenu.tsx index 4657bfa8fc7..e7837107bfa 100644 --- a/src/navigator/SettingsMenu.tsx +++ b/src/navigator/SettingsMenu.tsx @@ -111,7 +111,7 @@ function ProfileMenuOption() { {renderContent()} - + ) @@ -167,19 +167,19 @@ export default function SettingsMenu({ route }: Props) { return ( - {`Session ID: ${sessionId}`} + {`Session ID: ${sessionId}`} - {`Statsig Stable ID: ${statsigStableId}`} + {`Statsig Stable ID: ${statsigStableId}`} - See App Assets + See App Assets - App Quick Reset + App Quick Reset @@ -192,7 +192,7 @@ export default function SettingsMenu({ route }: Props) { } + icon={} title={t('address')} onPress={() => navigate(Screens.QRNavigator, { @@ -205,7 +205,7 @@ export default function SettingsMenu({ route }: Props) { borderless /> } + icon={} title={t('invite')} onPress={() => navigate(Screens.Invite)} testID="SettingsMenu/Invite" @@ -224,7 +224,7 @@ export default function SettingsMenu({ route }: Props) { borderless /> } + icon={} title={t('securityPrivacy')} testID="SettingsMenu/Security" onPress={() => navigate(Screens.SecuritySubmenu)} @@ -233,7 +233,7 @@ export default function SettingsMenu({ route }: Props) { /> {walletConnectEnabled && ( } + icon={} title={t('connectedApplications')} testID="SettingsMenu/ConnectedDapps" value={connectedDapps.toString()} @@ -243,7 +243,7 @@ export default function SettingsMenu({ route }: Props) { /> )} } + icon={} title={t('help')} onPress={() => navigate(Screens.Support)} testID="SettingsMenu/Help" @@ -298,7 +298,7 @@ const styles = StyleSheet.create({ }, secondaryProfileLabel: { ...typeScale.bodyMedium, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, appVersionContainer: { flexDirection: 'row', @@ -309,7 +309,7 @@ const styles = StyleSheet.create({ }, appVersionText: { ...typeScale.bodyMedium, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, devSettings: { alignItems: 'flex-start', @@ -323,4 +323,7 @@ const styles = StyleSheet.create({ marginVertical: Spacing.Smallest8, marginHorizontal: Spacing.Regular16, }, + debugInfoText: { + ...typeScale.bodySmall, + }, }) diff --git a/src/navigator/TabNavigator.tsx b/src/navigator/TabNavigator.tsx index e0f867439f0..dd10969afc2 100644 --- a/src/navigator/TabNavigator.tsx +++ b/src/navigator/TabNavigator.tsx @@ -33,13 +33,14 @@ export default function TabNavigator({ route }: Props) { headerShown: true, headerShadowVisible: false, headerTitleAllowFontScaling: false, - tabBarActiveTintColor: Colors.navigationBottom, + tabBarActiveTintColor: Colors.navigationBottomPrimary, tabBarInactiveTintColor: Colors.navigationBottomSecondary, tabBarLabelStyle: styles.label, tabBarItemStyle: styles.tabBarItem, tabBarAllowFontScaling: false, tabBarStyle: { height: variables.height * 0.1, + backgroundColor: Colors.backgroundPrimary, }, ...(tabHeader as NativeStackHeaderProps), }} diff --git a/src/nfts/NftsInfoCarousel.tsx b/src/nfts/NftsInfoCarousel.tsx index ed3c612beea..b8fb1167644 100644 --- a/src/nfts/NftsInfoCarousel.tsx +++ b/src/nfts/NftsInfoCarousel.tsx @@ -230,7 +230,7 @@ export default function NftsInfoCarousel({ route }: Props) { {networkIdToExplorerString[networkId]} - + @@ -257,7 +257,7 @@ const styles = StyleSheet.create({ }, attributeTitle: { ...typeScale.labelSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, attributesContainer: { paddingBottom: Spacing.Thick24, @@ -276,11 +276,11 @@ const styles = StyleSheet.create({ errorImageText: { marginTop: Spacing.Regular16, ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, }, explorerLink: { ...typeScale.labelSmall, - color: colors.success, + color: colors.successPrimary, paddingRight: Spacing.Smallest8, }, explorerLinkContainer: { diff --git a/src/nfts/NftsLoadError.tsx b/src/nfts/NftsLoadError.tsx index 6fc405f4e6c..9e65bd80dea 100644 --- a/src/nfts/NftsLoadError.tsx +++ b/src/nfts/NftsLoadError.tsx @@ -101,7 +101,7 @@ const styles = StyleSheet.create({ subTitle: { ...typeScale.bodyMedium, textAlign: 'center', - color: colors.textSecondary, + color: colors.contentSecondary, }, title: { ...typeScale.titleSmall, diff --git a/src/onboarding/ChooseYourAdventure.tsx b/src/onboarding/ChooseYourAdventure.tsx index e6172618201..f458a9bcffb 100644 --- a/src/onboarding/ChooseYourAdventure.tsx +++ b/src/onboarding/ChooseYourAdventure.tsx @@ -80,7 +80,7 @@ function ChooseYourAdventure() { goToNextScreen: () => { navigateHomeAndThenToScreen(Screens.EarnInfoScreen) }, - icon: , + icon: , name: AdventureCardName.Earn, }, { @@ -96,7 +96,7 @@ function ChooseYourAdventure() { goToNextScreen: () => { navigateHomeAndThenToScreen(Screens.PointsIntro) }, - icon: , + icon: , name: AdventureCardName.LearnPoints, }, ] @@ -196,7 +196,7 @@ const styles = StyleSheet.create({ alignItems: 'center', }, skip: { - color: colors.textPrimary, + color: colors.contentPrimary, }, cardText: { ...typeScale.bodySmall, diff --git a/src/onboarding/registration/ImportSelect.tsx b/src/onboarding/registration/ImportSelect.tsx index 9c1f2d10f62..4f20599bbe4 100644 --- a/src/onboarding/registration/ImportSelect.tsx +++ b/src/onboarding/registration/ImportSelect.tsx @@ -89,7 +89,7 @@ export default function ImportSelect({ navigation }: Props) { } + icon={} onPress={() => navigate(Screens.SignInWithEmail, { keylessBackupFlow: KeylessBackupFlow.Restore, @@ -101,7 +101,7 @@ export default function ImportSelect({ navigation }: Props) { } + icon={} onPress={() => navigate(Screens.ImportWallet, { clean: true })} testID="ImportSelect/Mnemonic" /> @@ -129,11 +129,11 @@ const styles = StyleSheet.create({ }, cardTitle: { ...typeScale.labelMedium, - color: colors.success, + color: colors.successPrimary, flex: 1, }, safeArea: { - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, flex: 1, }, screenDescription: { diff --git a/src/onboarding/registration/RegulatoryTerms.tsx b/src/onboarding/registration/RegulatoryTerms.tsx index 2666b85a229..81174e2234c 100644 --- a/src/onboarding/registration/RegulatoryTerms.tsx +++ b/src/onboarding/registration/RegulatoryTerms.tsx @@ -85,7 +85,7 @@ export class RegulatoryTerms extends React.Component { contentContainerStyle={styles.scrollContent} testID="scrollView" > - + {t('terms.title')} diff --git a/src/onboarding/registration/SelectCountry.tsx b/src/onboarding/registration/SelectCountry.tsx index 63c181498ae..01e91ce6672 100644 --- a/src/onboarding/registration/SelectCountry.tsx +++ b/src/onboarding/registration/SelectCountry.tsx @@ -83,6 +83,6 @@ const styles = StyleSheet.create({ searchInputContainer: { paddingHorizontal: 16, paddingVertical: 16, - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, }, }) diff --git a/src/onboarding/registration/SelectCountryItem.tsx b/src/onboarding/registration/SelectCountryItem.tsx index 1c548ff45c5..e3af988f1e1 100644 --- a/src/onboarding/registration/SelectCountryItem.tsx +++ b/src/onboarding/registration/SelectCountryItem.tsx @@ -54,6 +54,6 @@ const styles = StyleSheet.create({ code: { ...typeScale.bodyMedium, marginRight: 16, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/onboarding/success/OnboardingSuccessScreen.tsx b/src/onboarding/success/OnboardingSuccessScreen.tsx index 8333fad78b6..75bbdb44964 100644 --- a/src/onboarding/success/OnboardingSuccessScreen.tsx +++ b/src/onboarding/success/OnboardingSuccessScreen.tsx @@ -22,7 +22,7 @@ function OnboardingSuccessScreen() { return ( - + {t('success.message')} ) @@ -46,7 +46,7 @@ const styles = StyleSheet.create({ ...typeScale.titleSmall, fontSize: 30, lineHeight: 36, - color: colors.textInverse, + color: colors.contentInverse, marginTop: Spacing.Regular16, marginBottom: 30, shadowOffset: { width: 0, height: 1 }, diff --git a/src/pincode/Pincode.tsx b/src/pincode/Pincode.tsx index 42217f0ad30..2fa34b5d260 100644 --- a/src/pincode/Pincode.tsx +++ b/src/pincode/Pincode.tsx @@ -81,7 +81,7 @@ const styles = StyleSheet.create({ }, error: { ...typeScale.labelMedium, - color: colors.error, + color: colors.errorPrimary, textAlign: 'center', marginBottom: Spacing.Thick24, }, diff --git a/src/pincode/PincodeDisplay.tsx b/src/pincode/PincodeDisplay.tsx index 2d822e73b6e..ef5ed4ba26f 100644 --- a/src/pincode/PincodeDisplay.tsx +++ b/src/pincode/PincodeDisplay.tsx @@ -84,9 +84,9 @@ const styles = StyleSheet.create({ height: DOT_SIZE, borderRadius: DOT_SIZE / 2, borderWidth: 1, - borderColor: colors.textPrimary, + borderColor: colors.contentPrimary, }, dotFilled: { - backgroundColor: colors.textPrimary, + backgroundColor: colors.contentPrimary, }, }) diff --git a/src/pincode/PincodeLock.tsx b/src/pincode/PincodeLock.tsx index 19dbfe78baa..49ce12f72d1 100644 --- a/src/pincode/PincodeLock.tsx +++ b/src/pincode/PincodeLock.tsx @@ -96,7 +96,7 @@ const styles = StyleSheet.create({ container: { paddingTop: 20, flex: 1, - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, }, loadingContainer: { flex: 1, diff --git a/src/pincode/PincodeSet.tsx b/src/pincode/PincodeSet.tsx index a8ad4102051..1e06eb3f791 100644 --- a/src/pincode/PincodeSet.tsx +++ b/src/pincode/PincodeSet.tsx @@ -268,7 +268,7 @@ const styles = StyleSheet.create({ }, changePinContainer: { flex: 1, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, justifyContent: 'space-between', }, }) diff --git a/src/points/ActivityCard.tsx b/src/points/ActivityCard.tsx index 4ef7b0dc555..a7ff76e65b1 100644 --- a/src/points/ActivityCard.tsx +++ b/src/points/ActivityCard.tsx @@ -95,7 +95,7 @@ const styles = StyleSheet.create({ }, previousPointsAmount: { ...typeScale.labelXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, textDecorationLine: 'line-through', }, }) diff --git a/src/points/ActivityCardSection.tsx b/src/points/ActivityCardSection.tsx index 3cf94b89631..808ba03f168 100644 --- a/src/points/ActivityCardSection.tsx +++ b/src/points/ActivityCardSection.tsx @@ -54,7 +54,7 @@ export default function ActivityCardSection({ pointsActivities, onCardPress }: P return { ...activity, title: t('points.activityCards.createLiveLink.title'), - icon: , + icon: , onPress: () => onCardPress({ ...activity, @@ -74,7 +74,7 @@ export default function ActivityCardSection({ pointsActivities, onCardPress }: P return { ...activity, title: t('points.activityCards.depositEarn.title'), - icon: , + icon: , onPress: () => onCardPress({ ...activity, @@ -141,7 +141,7 @@ const styles = StyleSheet.create({ }, body: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginTop: Spacing.Tiny4, }, }) diff --git a/src/points/PointsDiscoverCard.tsx b/src/points/PointsDiscoverCard.tsx index a4594a47d95..dff8a98dcb0 100644 --- a/src/points/PointsDiscoverCard.tsx +++ b/src/points/PointsDiscoverCard.tsx @@ -58,7 +58,7 @@ export default function PointsDiscoverCard() { {t('points.discoverCard.title')} {t('points.discoverCard.description')} - + {t('points.history.error.title')} {t('points.history.error.subtitle')} @@ -188,7 +188,7 @@ function PointsHistoryBottomSheet({ forwardedRef }: Props) { ctaLabel={t('points.history.pageError.refresh')} onPressCta={() => onPressTryAgain(true)} style={styles.errorNotification} - customIcon={} + customIcon={} testID={'PointsHistoryBottomSheet/ErrorBanner'} /> @@ -249,11 +249,11 @@ const styles = StyleSheet.create({ }, cardSubtitle: { ...typeScale.labelSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, cardPointsAmount: { ...typeScale.labelMedium, - color: colors.success, + color: colors.successPrimary, }, cardPointsAmountContainer: { flexDirection: 'row', diff --git a/src/points/PointsHome.tsx b/src/points/PointsHome.tsx index b7c8efbb8de..77ee16d4906 100644 --- a/src/points/PointsHome.tsx +++ b/src/points/PointsHome.tsx @@ -124,7 +124,7 @@ export default function PointsHome({ route, navigation }: Props) { {pointsConfigStatus === 'error' && ( - + {t('points.error.title')} {t('points.error.description')} - + ), title: t('points.history.cards.createWallet.title'), @@ -83,7 +83,7 @@ export function useGetHistoryDefinition(): ( return { icon: ( - + ), title: t('points.history.cards.swap.title'), @@ -121,7 +121,7 @@ export function useGetHistoryDefinition(): ( icon: ( - + ), diff --git a/src/positions/HooksPreviewModeBanner.tsx b/src/positions/HooksPreviewModeBanner.tsx index b974f15e38d..d0159dfab47 100644 --- a/src/positions/HooksPreviewModeBanner.tsx +++ b/src/positions/HooksPreviewModeBanner.tsx @@ -18,7 +18,7 @@ const STATUS_COLORS = { idle: colors.inactive, loading: colors.inactive, success: colors.accent, - error: colors.error, + error: colors.errorPrimary, } export default function HooksPreviewModeBanner() { @@ -58,11 +58,11 @@ const styles = StyleSheet.create({ top: -10, left: 0, right: 0, - backgroundColor: colors.warning, + backgroundColor: colors.warningPrimary, }, text: { ...typeScale.labelXSmall, - color: colors.textInverse, + color: colors.contentInverse, textAlign: 'center', paddingHorizontal: 10, }, diff --git a/src/priceHistory/PriceHistoryChart.tsx b/src/priceHistory/PriceHistoryChart.tsx index b4520cdd080..506e8bf798b 100644 --- a/src/priceHistory/PriceHistoryChart.tsx +++ b/src/priceHistory/PriceHistoryChart.tsx @@ -81,7 +81,7 @@ function ChartAwareSvgText({ /* // @ts-ignore */ onLayout={onLayout} - fill={colors.textSecondary} + fill={colors.contentSecondary} fontSize="14" fontFamily="Inter-Regular" x={adjustedX} @@ -211,7 +211,7 @@ export default function PriceHistoryChart({ containerStyle, testID, chartPadding, - color = colors.textPrimary, + color = colors.contentPrimary, step = CHART_STEP_IN_HOURS, }: PriceHistoryChartProps) { const dispatch = useDispatch() @@ -320,7 +320,7 @@ const styles = StyleSheet.create({ justifyContent: 'center', }, timeframe: { - color: colors.textSecondary, + color: colors.contentSecondary, fontSize: 16, flexGrow: 1, }, diff --git a/src/qrcode/NotAuthorizedView.tsx b/src/qrcode/NotAuthorizedView.tsx index 105174c662b..dcfd0d642d4 100644 --- a/src/qrcode/NotAuthorizedView.tsx +++ b/src/qrcode/NotAuthorizedView.tsx @@ -36,11 +36,11 @@ const styles = StyleSheet.create({ title: { ...typeScale.titleSmall, marginBottom: 8, - color: colors.textInverse, + color: colors.contentInverse, }, description: { ...typeScale.bodyMedium, - color: colors.textInverse, + color: colors.contentInverse, textAlign: 'center', marginBottom: 16, }, diff --git a/src/qrcode/QRCode.tsx b/src/qrcode/QRCode.tsx index 87a8c99f38f..4a6776e758d 100644 --- a/src/qrcode/QRCode.tsx +++ b/src/qrcode/QRCode.tsx @@ -99,7 +99,7 @@ export default function QRCodeDisplay(props: Props) { } + icon={} iconMargin={12} iconPositionLeft={false} testID="copyButton" @@ -157,7 +157,7 @@ const styles = StyleSheet.create({ flex: 1, flexDirection: 'column', alignItems: 'center', - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, }, link: { ...typeScale.labelSemiBoldMedium, @@ -176,14 +176,14 @@ const styles = StyleSheet.create({ }, address: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, marginHorizontal: variables.width / 5, marginBottom: 8, textAlign: 'center', }, exchangeText: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, textAlign: 'center', }, }) diff --git a/src/qrcode/QRScanner.tsx b/src/qrcode/QRScanner.tsx index 5c223ce0787..4be1a7484e1 100644 --- a/src/qrcode/QRScanner.tsx +++ b/src/qrcode/QRScanner.tsx @@ -29,7 +29,7 @@ const SeeThroughOverlay = () => { - + { @@ -87,7 +87,7 @@ export default function QRTabBar({ testID="HeaderTitle" style={{ ...styles.headerTitle, - color: state.index === 0 ? colors.textPrimary : colors.textInverse, + color: state.index === 0 ? colors.contentPrimary : colors.contentInverse, }} numberOfLines={1} allowFontScaling={false} @@ -100,7 +100,7 @@ export default function QRTabBar({ style={[styles.rightContainer, { opacity: shareOpacity }]} pointerEvents={state.index > 0 ? 'none' : undefined} > - } onPress={onPressShare} /> + } onPress={onPressShare} /> ) diff --git a/src/qrcode/StyledQRGen.tsx b/src/qrcode/StyledQRGen.tsx index 47d682020cf..3e093fc2be8 100644 --- a/src/qrcode/StyledQRGen.tsx +++ b/src/qrcode/StyledQRGen.tsx @@ -1,6 +1,7 @@ -import QRCode from 'react-native-qrcode-svg' import React from 'react' +import QRCode from 'react-native-qrcode-svg' import { SVG } from 'src/send/actions' +import Colors from 'src/styles/colors' function StyledQRCode({ value, @@ -11,7 +12,15 @@ function StyledQRCode({ size: number svgRef: React.MutableRefObject }) { - return (svgRef.current = ref)} /> + return ( + (svgRef.current = ref)} + backgroundColor="transparent" + color={Colors.contentPrimary} + /> + ) } export default React.memo(StyledQRCode) diff --git a/src/recipients/RecipientItemV2.tsx b/src/recipients/RecipientItemV2.tsx index f50111e09f1..d7fa4428563 100644 --- a/src/recipients/RecipientItemV2.tsx +++ b/src/recipients/RecipientItemV2.tsx @@ -58,13 +58,13 @@ function RecipientItem({ recipient, onSelectRecipient, loading, selected }: Prop style={styles.avatar} recipient={recipient} backgroundColor={Colors.backgroundSecondary} - foregroundColor={Colors.textPrimary} + foregroundColor={Colors.contentPrimary} borderColor={Colors.border} DefaultIcon={() => renderDefaultIcon(recipient)} // no need to honor color props here since the color we need match the defaults /> {!!showAppIcon && ( + return } else { - return + return } } @@ -118,7 +118,7 @@ const styles = StyleSheet.create({ name: { ...typeScale.labelMedium }, phone: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, rightIconContainer: { justifyContent: 'center', diff --git a/src/recipients/RecipientPickerV2.tsx b/src/recipients/RecipientPickerV2.tsx index 6e048d15f7f..1056cbfe19c 100644 --- a/src/recipients/RecipientPickerV2.tsx +++ b/src/recipients/RecipientPickerV2.tsx @@ -54,7 +54,7 @@ const styles = StyleSheet.create({ ...typeScale.labelSmall, marginBottom: Spacing.Smallest8, marginHorizontal: Spacing.Regular16, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, }) diff --git a/src/send/EnterAmount.tsx b/src/send/EnterAmount.tsx index bc4e1021915..5b4db55dbf0 100644 --- a/src/send/EnterAmount.tsx +++ b/src/send/EnterAmount.tsx @@ -234,7 +234,7 @@ export default function EnterAmount({ @@ -377,7 +377,7 @@ const styles = StyleSheet.create({ }, feeValue: { ...typeScale.bodyMedium, - color: Colors.textSecondary, + color: Colors.contentSecondary, flexWrap: 'wrap', textAlign: 'right', }, diff --git a/src/send/EnterAmountOptions.tsx b/src/send/EnterAmountOptions.tsx index 4434f06efe5..aab5e06f426 100644 --- a/src/send/EnterAmountOptions.tsx +++ b/src/send/EnterAmountOptions.tsx @@ -111,7 +111,10 @@ export default function EnterAmountOptions({ {label} @@ -149,7 +152,7 @@ const styles = StyleSheet.create({ chip: { borderWidth: 1, borderRadius: 100, - borderColor: Colors.textPrimary, + borderColor: Colors.contentPrimary, paddingVertical: Spacing.Smallest8, paddingHorizontal: Spacing.Regular16, }, diff --git a/src/send/PasteAddressButton.tsx b/src/send/PasteAddressButton.tsx index 70622994fcd..b60cc5bd8a3 100644 --- a/src/send/PasteAddressButton.tsx +++ b/src/send/PasteAddressButton.tsx @@ -70,7 +70,7 @@ const styles = StyleSheet.create({ }, address: { ...typeScale.bodyXSmall, - color: colors.textSecondary, + color: colors.contentSecondary, flexWrap: 'wrap', flexShrink: 1, maxWidth: '100%', diff --git a/src/send/SelectRecipientButtons.tsx b/src/send/SelectRecipientButtons.tsx index 7269820e1c0..ca520cd42b7 100644 --- a/src/send/SelectRecipientButtons.tsx +++ b/src/send/SelectRecipientButtons.tsx @@ -166,7 +166,7 @@ export default function SelectRecipientButtons({ title={t('sendSelectRecipient.jumpstart.title')} subtitle={t('sendSelectRecipient.jumpstart.subtitle')} onPress={onPressJumpstart} - icon={} + icon={} gradientBackground /> )} diff --git a/src/send/SendConfirmation.tsx b/src/send/SendConfirmation.tsx index c49310fe85b..6447ee98e42 100644 --- a/src/send/SendConfirmation.tsx +++ b/src/send/SendConfirmation.tsx @@ -263,7 +263,7 @@ const styles = StyleSheet.create({ }, headerText: { ...typeScale.labelMedium, - color: colors.textSecondary, + color: colors.contentSecondary, }, displayName: { ...typeScale.labelMedium, @@ -273,7 +273,7 @@ const styles = StyleSheet.create({ }, address: { ...typeScale.labelSmall, - color: colors.textSecondary, + color: colors.contentSecondary, paddingRight: 4, }, amount: { @@ -282,7 +282,7 @@ const styles = StyleSheet.create({ }, amountSubscript: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, paddingBottom: 16, }, subHeading: { @@ -290,7 +290,7 @@ const styles = StyleSheet.create({ }, subHeadingText: { ...typeScale.labelSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/send/SendSelectRecipient.tsx b/src/send/SendSelectRecipient.tsx index c7e1bfb4c17..051f7e25b63 100644 --- a/src/send/SendSelectRecipient.tsx +++ b/src/send/SendSelectRecipient.tsx @@ -62,7 +62,7 @@ function GetStartedSection() { {optionNum} @@ -113,7 +113,7 @@ const getStartedStyles = StyleSheet.create({ }, subtitle: { ...typeScale.labelXXSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, title: { ...typeScale.labelMedium, @@ -138,7 +138,7 @@ const getStartedStyles = StyleSheet.create({ }, optionSubtitle: { ...typeScale.bodyXSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) @@ -433,7 +433,7 @@ const styles = StyleSheet.create({ }, searchResultsHeader: { ...typeScale.labelXSmall, - color: colors.textSecondary, + color: colors.contentSecondary, paddingHorizontal: Spacing.Regular16, paddingVertical: Spacing.Smallest8, }, @@ -444,12 +444,12 @@ const styles = StyleSheet.create({ }, noResultsTitle: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, textAlign: 'center', }, noResultsSubtitle: { ...typeScale.labelXSmall, - color: colors.textSecondary, + color: colors.contentSecondary, justifyContent: 'center', padding: Spacing.Regular16, textAlign: 'center', diff --git a/src/send/SendSelectRecipientSearchInput.tsx b/src/send/SendSelectRecipientSearchInput.tsx index 1afe66eff69..12644c90165 100644 --- a/src/send/SendSelectRecipientSearchInput.tsx +++ b/src/send/SendSelectRecipientSearchInput.tsx @@ -60,6 +60,6 @@ const styles = StyleSheet.create({ }, label: { ...typeScale.labelSemiBoldSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/send/ValidateRecipientAccount.tsx b/src/send/ValidateRecipientAccount.tsx index 73246fc7b90..cc429da6459 100644 --- a/src/send/ValidateRecipientAccount.tsx +++ b/src/send/ValidateRecipientAccount.tsx @@ -350,7 +350,7 @@ const styles = StyleSheet.create({ modalBody2: { ...typeScale.bodySmall, textAlign: 'center', - color: colors.textSecondary, + color: colors.contentSecondary, paddingVertical: 16, paddingTop: 16, }, @@ -365,7 +365,7 @@ const styles = StyleSheet.create({ }, menuText: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, paddingHorizontal: 8, }, addressContainer: { diff --git a/src/send/__snapshots__/ValidateRecipientAccount.test.tsx.snap b/src/send/__snapshots__/ValidateRecipientAccount.test.tsx.snap index 0ccdc6969b9..bc8a37313cd 100644 --- a/src/send/__snapshots__/ValidateRecipientAccount.test.tsx.snap +++ b/src/send/__snapshots__/ValidateRecipientAccount.test.tsx.snap @@ -97,6 +97,7 @@ exports[`ValidateRecipientAccount renders correctly when full validation require onChangeText={[Function]} onFocus={[Function]} placeholder="0xf1b1d5a6e7728g309c4a025k122d71ad75a61976" + selectionColor="#757575" shouldShowClipboard={[Function]} style={ [ @@ -414,6 +415,7 @@ exports[`ValidateRecipientAccount renders correctly when partial validation requ onChangeText={[Function]} onFocus={[Function]} placeholder="a" + selectionColor="#757575" style={ [ { @@ -474,6 +476,7 @@ exports[`ValidateRecipientAccount renders correctly when partial validation requ onChangeText={[Function]} onFocus={[Function]} placeholder="0" + selectionColor="#757575" style={ [ { @@ -534,6 +537,7 @@ exports[`ValidateRecipientAccount renders correctly when partial validation requ onChangeText={[Function]} onFocus={[Function]} placeholder="F" + selectionColor="#757575" style={ [ { @@ -594,6 +598,7 @@ exports[`ValidateRecipientAccount renders correctly when partial validation requ onChangeText={[Function]} onFocus={[Function]} placeholder="4" + selectionColor="#757575" style={ [ { diff --git a/src/shared/DisconnectBanner.tsx b/src/shared/DisconnectBanner.tsx index f29bef57350..fbac14dc8af 100644 --- a/src/shared/DisconnectBanner.tsx +++ b/src/shared/DisconnectBanner.tsx @@ -69,10 +69,10 @@ const styles = StyleSheet.create({ lineHeight: undefined, }, textGrey: { - color: colors.textSecondary, + color: colors.contentSecondary, }, textRed: { - color: colors.error, + color: colors.errorPrimary, }, }) diff --git a/src/styles/appTheme.ts b/src/styles/appTheme.ts index f0088f2bdf4..c27aba0e75c 100644 --- a/src/styles/appTheme.ts +++ b/src/styles/appTheme.ts @@ -6,7 +6,7 @@ const appTheme = { ...DefaultTheme, colors: { ...DefaultTheme.colors, - background: colors.background, + background: colors.backgroundPrimary, }, } diff --git a/src/styles/colors.tsx b/src/styles/colors.tsx index bc2d0b5273e..28e9b3f8c3e 100644 --- a/src/styles/colors.tsx +++ b/src/styles/colors.tsx @@ -2,51 +2,52 @@ // from https://www.figma.com/design/erFfzHvSTm5g1sjK6jWyEH/Working-Design-System?node-id=2100-4881&node-type=frame&t=vKGGXrs3Torz7kFE-0 enum Colors { // backgrounds - background = '#FFFFFF', // primary background - backgroundInverse = '#2E3338', // inverse background (e.g. high contrast to primary) - backgroundSecondary = '#F8F9F9', // secondary background (e.g. cards, input fields) - backgroundTertiary = '#E6E6E6', // tertiary background (e.g. used on top of secondary background) + backgroundPrimary = '#FFFFFF', // Main background color for the app, used for primary surfaces (screens, navigation). + backgroundInverse = '#2E3338', // High-contrast background color for the app. + backgroundSecondary = '#F8F9F9', // Subtle contrast background for secondary surfaces like cards, panels, or inputs. + backgroundTertiary = '#E6E6E6', // Low-emphasis background for subtle supporting areas, typically used when both primary and secondary backgrounds are present, and an additional layer of distinction is needed. - // text - textPrimary = '#2E3338', // text on primary background - textSecondary = '#757575', // supporting, placeholder, or less important text - textInverse = '#FFFFFF', // text on inverse background + // text, icons, and other content + contentPrimary = '#2E3338', // main content on primary background + contentSecondary = '#757575', // supporting context on primary background + contentInverse = '#FFFFFF', // content on inverse backgrounds + textLink = '#757575', // underlined text links on primary background - // borders, shadows, highlights - shadow = '#2E3338', + // borders, shadows, highlights, visual effects + border = '#E6E6E6', + shadow = '#2E3338', // shadow base color softShadow = 'rgba(156, 164, 169, 0.4)', lightShadow = 'rgba(48, 46, 37, 0.15)', barShadow = 'rgba(129, 134, 139, 0.5)', - skeletonPlaceholderHighlight = '#FFFFFF', - skeletonPlaceholderBackground = '#E6E6E6', - border = '#E6E6E6', + skeletonPlaceholderHighlight = '#FFFFFF', // animated highlight color on skeleton loaders + skeletonPlaceholderBackground = '#E6E6E6', // background color on skeleton loaders loadingIndicator = '#1AB775', // spinner or loading indicator // interactive elements - navigationTop = '#2E3338', - navigationTopSecondary = '#757575', - navigationBottom = '#2E3338', - navigationBottomSecondary = '#757575', - buttonPrimary = '#2E3338', - buttonSecondary = '#F8F9F9', - accent = '#1AB775', - textLink = '#757575', // similar to secondary text but for interactive links - bottomSheetHandle = '#E6E6E6', + navigationTopPrimary = '#2E3338', // color for text and icons on top navigation + navigationTopSecondary = '#757575', // secondary color for text and icons on top navigation + navigationBottomPrimary = '#2E3338', // color for text and icons on bottom navigation + navigationBottomSecondary = '#757575', // secondary color for text and icons on bottom navigation + bottomSheetHandle = '#757575', // color for bottom sheet handle + buttonPrimary = '#2E3338', // Primary button background, used for high-priority actions. + buttonSecondary = '#F8F9F9', // Secondary button background, for less emphasized actions or alternative options. + buttonTertiary = '#FFFFFF', // Tertiary button background, typically used for minimal or low-emphasis actions. - // states - disabled = '#E6E6E6', - inactive = '#757575', // disabled, inactive, or placeholder - info = '#F8F9F9', // neutral or informative - success = '#137211', - successSecondary = '#F1FDF1', - warning = '#9C6E00', - warningSecondary = '#FFF9EA', - error = '#C93717', - errorSecondary = '#FBF2F0', + // statuses and UI feedback colors + disabled = '#E6E6E6', // Used for disabled elements that are non-interactive or visually de-emphasized. + inactive = '#757575', // Represents inactive or placeholder elements, often less prominent but still visible. + info = '#F8F9F9', // Background for neutral or informational states, typically non-critical. + successPrimary = '#137211', // Indicates successful actions or positive states, often used for icons or highlights. + successSecondary = '#F1FDF1', // Subtle background for success states, such as notifications or banners. + warningPrimary = '#9C6E00', // Highlights warning states, used to draw attention to cautionary information. + warningSecondary = '#FFF9EA', // Subtle background for warning states, providing gentle emphasis without overpowering. + errorPrimary = '#C93717', // Represents error or failure states, used for critical feedback or alerts. + errorSecondary = '#FBF2F0', // Subtle background for error states, providing softer emphasis in contexts like modals or notifications. - // brand - gradientBorderLeft = '#26d98a', - gradientBorderRight = '#ffd52c', + // brand colors for decorative elements + accent = '#1AB775', // Accent color for emphasizing key elements, such as highlights, icons, or decorative details. + brandGradientLeft = '#26d98a', // Starting color for the brand gradient, used in backgrounds or borders to reinforce brand identity. + brandGradientRight = '#ffd52c', // Ending color for the brand gradient, used in backgrounds or borders to reinforce brand identity. } export default Colors diff --git a/src/styles/fonts.tsx b/src/styles/fonts.tsx index f89324c7205..3cdfb682e31 100644 --- a/src/styles/fonts.tsx +++ b/src/styles/fonts.tsx @@ -17,127 +17,127 @@ export const typeScale = StyleSheet.create({ fontSize: 80, lineHeight: 80, letterSpacing: -2.4, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, displayMedium: { fontFamily: Inter.Bold, fontSize: 56, lineHeight: 64, letterSpacing: -1.12, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, displaySmall: { fontFamily: Inter.Bold, fontSize: 40, lineHeight: 48, letterSpacing: -0.8, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, titleLarge: { fontFamily: Inter.Bold, fontSize: 32, lineHeight: 40, letterSpacing: -0.32, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, titleMedium: { fontFamily: Inter.Bold, fontSize: 24, lineHeight: 32, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, titleSmall: { fontFamily: Inter.Bold, fontSize: 20, lineHeight: 28, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelSemiBoldLarge: { fontFamily: Inter.SemiBold, fontSize: 18, lineHeight: 28, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelSemiBoldMedium: { fontFamily: Inter.SemiBold, fontSize: 16, lineHeight: 24, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelSemiBoldSmall: { fontFamily: Inter.SemiBold, fontSize: 14, lineHeight: 20, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelSemiBoldXSmall: { fontFamily: Inter.SemiBold, fontSize: 12, lineHeight: 16, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelLarge: { fontFamily: Inter.Medium, fontSize: 18, lineHeight: 28, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelMedium: { fontFamily: Inter.Medium, fontSize: 16, lineHeight: 24, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelSmall: { fontFamily: Inter.Medium, fontSize: 14, lineHeight: 20, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelXSmall: { fontFamily: Inter.Medium, fontSize: 12, lineHeight: 16, letterSpacing: 0.12, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelXXSmall: { fontFamily: Inter.Medium, fontSize: 10, lineHeight: 12, letterSpacing: 0.2, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, bodyLarge: { fontFamily: Inter.Regular, fontSize: 18, lineHeight: 28, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, bodyMedium: { fontFamily: Inter.Regular, fontSize: 16, lineHeight: 24, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, bodySmall: { fontFamily: Inter.Regular, fontSize: 14, lineHeight: 20, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, bodyXSmall: { fontFamily: Inter.Regular, fontSize: 12, lineHeight: 16, letterSpacing: 0.12, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, bodyXXSmall: { fontFamily: Inter.Regular, fontSize: 10, lineHeight: 12, letterSpacing: 0.2, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, }) diff --git a/src/styles/styles.ts b/src/styles/styles.ts index 96add7c471b..737478a63cf 100644 --- a/src/styles/styles.ts +++ b/src/styles/styles.ts @@ -62,6 +62,13 @@ const styles = StyleSheet.create({ shadowRadius: 1.5, shadowColor: Colors.barShadow, }, + bottomSheetHandleIndicator: { + backgroundColor: Colors.bottomSheetHandle, + width: 40, + }, + bottomSheetBackground: { + backgroundColor: Colors.backgroundPrimary, + }, }) export default styles diff --git a/src/swap/FeeInfoBottomSheet.tsx b/src/swap/FeeInfoBottomSheet.tsx index dfc5e5d399b..24f610b6cbf 100644 --- a/src/swap/FeeInfoBottomSheet.tsx +++ b/src/swap/FeeInfoBottomSheet.tsx @@ -180,7 +180,7 @@ const styles = StyleSheet.create({ }, infoText: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, moreInfoContainer: { marginTop: Spacing.Large32, diff --git a/src/swap/SwapAmountInput.tsx b/src/swap/SwapAmountInput.tsx index 923956b535d..c686e17525d 100644 --- a/src/swap/SwapAmountInput.tsx +++ b/src/swap/SwapAmountInput.tsx @@ -94,7 +94,7 @@ const SwapAmountInput = ({ ) : ( {buttonPlaceholder} )} - + {token && ( @@ -189,7 +189,7 @@ const styles = StyleSheet.create({ flex: 1, }, inputError: { - color: Colors.error, + color: Colors.errorPrimary, }, inputText: { ...typeScale.titleSmall, @@ -210,7 +210,7 @@ const styles = StyleSheet.create({ }, tokenNetwork: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, paddingHorizontal: 4, }, tokenInfoText: { @@ -219,13 +219,13 @@ const styles = StyleSheet.create({ tokenNamePlaceholder: { ...typeScale.labelMedium, paddingHorizontal: 4, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, fiatValue: { ...typeScale.bodyXSmall, paddingLeft: Spacing.Smallest8, maxWidth: '40%', - color: Colors.textSecondary, + color: Colors.contentSecondary, paddingVertical: Spacing.Smallest8, }, }) diff --git a/src/swap/SwapScreen.tsx b/src/swap/SwapScreen.tsx index 902fd493564..dd69f7acfe3 100644 --- a/src/swap/SwapScreen.tsx +++ b/src/swap/SwapScreen.tsx @@ -811,8 +811,8 @@ export function SwapScreen({ route }: Props) { onPress={handleSwitchTokens} testID="SwapScreen/SwitchTokens" > - - + + @@ -830,7 +830,7 @@ export function SwapScreen({ route }: Props) { {showCrossChainSwapNotification && ( - + {t('swapScreen.crossChainNotification')} @@ -1124,7 +1124,7 @@ const styles = StyleSheet.create({ ...typeScale.labelXXSmall, paddingBottom: Spacing.Smallest8, flexWrap: 'wrap', - color: colors.textSecondary, + color: colors.contentSecondary, textAlign: 'center', }, disclaimerLink: { @@ -1155,7 +1155,7 @@ const styles = StyleSheet.create({ crossChainNotification: { ...typeScale.labelXSmall, paddingLeft: Spacing.Tiny4, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/swap/SwapScreenV2.tsx b/src/swap/SwapScreenV2.tsx index b4d7ac64246..faa1a609dad 100644 --- a/src/swap/SwapScreenV2.tsx +++ b/src/swap/SwapScreenV2.tsx @@ -719,8 +719,8 @@ export default function SwapScreenV2({ route }: Props) { onPress={handleSwitchTokens} testID="SwapScreen/SwitchTokens" > - - + + @@ -739,7 +739,7 @@ export default function SwapScreenV2({ route }: Props) { {showCrossChainSwapNotification && ( - + {t('swapScreen.crossChainNotification')} @@ -1070,7 +1070,7 @@ const styles = StyleSheet.create({ ...typeScale.labelXXSmall, paddingBottom: Spacing.Smallest8, flexWrap: 'wrap', - color: colors.textSecondary, + color: colors.contentSecondary, textAlign: 'center', }, disclaimerLink: { @@ -1101,6 +1101,6 @@ const styles = StyleSheet.create({ crossChainNotification: { ...typeScale.labelXSmall, paddingLeft: Spacing.Tiny4, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/swap/SwapTransactionDetails.tsx b/src/swap/SwapTransactionDetails.tsx index dc75bcb471a..27ef50fbf11 100644 --- a/src/swap/SwapTransactionDetails.tsx +++ b/src/swap/SwapTransactionDetails.tsx @@ -107,7 +107,7 @@ function LabelWithInfo({ <> {label} - + > ) @@ -268,7 +268,7 @@ const styles = StyleSheet.create({ }, label: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, marginRight: Spacing.Tiny4, }, loaderContainer: { diff --git a/src/tokens/AssetList.tsx b/src/tokens/AssetList.tsx index f64f71a8305..c4daf3cf25d 100644 --- a/src/tokens/AssetList.tsx +++ b/src/tokens/AssetList.tsx @@ -324,7 +324,7 @@ function ImportTokensItem() { > - + {t('assets.importTokens')} @@ -370,7 +370,7 @@ const styles = StyleSheet.create({ }, noNftsText: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, textAlign: 'center', }, noNftsTextContainer: { diff --git a/src/tokens/AssetTabBar.test.tsx b/src/tokens/AssetTabBar.test.tsx index 16ba63a526b..5c9c3ee6666 100644 --- a/src/tokens/AssetTabBar.test.tsx +++ b/src/tokens/AssetTabBar.test.tsx @@ -21,11 +21,11 @@ describe('AssetTabBar', () => { const tabItems = getAllByTestId('Assets/TabBarItem') expect(tabItems).toHaveLength(3) expect(tabItems[0]).toHaveTextContent('tokens') - expect(tabItems[0].children[0]).toHaveStyle({ color: Colors.textPrimary }) + expect(tabItems[0].children[0]).toHaveStyle({ color: Colors.contentPrimary }) expect(tabItems[1]).toHaveTextContent('collectibles') - expect(tabItems[1].children[0]).toHaveStyle({ color: Colors.textSecondary }) + expect(tabItems[1].children[0]).toHaveStyle({ color: Colors.contentSecondary }) expect(tabItems[2]).toHaveTextContent('dappPositions') - expect(tabItems[2].children[0]).toHaveStyle({ color: Colors.textSecondary }) + expect(tabItems[2].children[0]).toHaveStyle({ color: Colors.contentSecondary }) }) it('does not render positions if disabled', () => { @@ -40,9 +40,9 @@ describe('AssetTabBar', () => { const tabItems = getAllByTestId('Assets/TabBarItem') expect(tabItems).toHaveLength(2) expect(tabItems[0]).toHaveTextContent('tokens') - expect(tabItems[0].children[0]).toHaveStyle({ color: Colors.textSecondary }) + expect(tabItems[0].children[0]).toHaveStyle({ color: Colors.contentSecondary }) expect(tabItems[1]).toHaveTextContent('collectibles') - expect(tabItems[1].children[0]).toHaveStyle({ color: Colors.textPrimary }) + expect(tabItems[1].children[0]).toHaveStyle({ color: Colors.contentPrimary }) }) it.each([ diff --git a/src/tokens/AssetTabBar.tsx b/src/tokens/AssetTabBar.tsx index 9a8d1013886..39762e6fbad 100644 --- a/src/tokens/AssetTabBar.tsx +++ b/src/tokens/AssetTabBar.tsx @@ -86,7 +86,7 @@ const styles = StyleSheet.create({ }, item: { ...typeScale.bodyMedium, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, itemSelected: { ...typeScale.labelMedium, diff --git a/src/tokens/PositionItem.tsx b/src/tokens/PositionItem.tsx index 648d48fe2fe..419c562027d 100644 --- a/src/tokens/PositionItem.tsx +++ b/src/tokens/PositionItem.tsx @@ -123,7 +123,7 @@ const styles = StyleSheet.create({ }, subtext: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, tokenAmt: { ...typeScale.labelSemiBoldLarge, diff --git a/src/tokens/TabWallet.tsx b/src/tokens/TabWallet.tsx index 709bcc3edb1..3ce6b6e504b 100644 --- a/src/tokens/TabWallet.tsx +++ b/src/tokens/TabWallet.tsx @@ -202,7 +202,7 @@ const styles = StyleSheet.create({ ...getShadowStyle(Shadow.SoftLight), paddingBottom: Spacing.Regular16, paddingHorizontal: Spacing.Regular16, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, position: 'absolute', width: '100%', zIndex: 1, @@ -212,7 +212,7 @@ const styles = StyleSheet.create({ paddingBottom: Spacing.Thick24, }, footerContainer: { - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, position: 'absolute', bottom: 0, left: 10, // so the scroll bar is still visible diff --git a/src/tokens/TokenBalanceItem.tsx b/src/tokens/TokenBalanceItem.tsx index fc6c8a1a9fd..2f49182f51b 100644 --- a/src/tokens/TokenBalanceItem.tsx +++ b/src/tokens/TokenBalanceItem.tsx @@ -111,7 +111,7 @@ const styles = StyleSheet.create({ }, subAmount: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, label: { ...typeScale.labelMedium, @@ -123,11 +123,11 @@ const styles = StyleSheet.create({ ...typeScale.bodySmall, overflow: 'hidden', flexShrink: 1, - color: colors.textSecondary, + color: colors.contentSecondary, }, bridgeLabel: { ...typeScale.labelSmall, - color: colors.textSecondary, + color: colors.contentSecondary, overflow: 'hidden', flexShrink: 1, }, diff --git a/src/tokens/TokenDetails.tsx b/src/tokens/TokenDetails.tsx index 7e2254c9063..486402c808a 100644 --- a/src/tokens/TokenDetails.tsx +++ b/src/tokens/TokenDetails.tsx @@ -276,7 +276,7 @@ function Actions({ }) action.onPress() }} - icon={} + icon={} style={styles.actionButton} size={BtnSizes.FULL} touchableStyle={styles.actionTouchable} @@ -386,6 +386,6 @@ const styles = StyleSheet.create({ }, priceInfoUnavailable: { ...typeScale.labelSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, }) diff --git a/src/tokens/TokenDetailsMoreActions.tsx b/src/tokens/TokenDetailsMoreActions.tsx index 21d5bcf6824..7292826adbb 100644 --- a/src/tokens/TokenDetailsMoreActions.tsx +++ b/src/tokens/TokenDetailsMoreActions.tsx @@ -47,7 +47,7 @@ export default function TokenDetailsMoreActions({ testID={`TokenDetailsMoreActions/${action.name}`} > <> - + {action.title} {action.details} diff --git a/src/tokens/TokenImport.tsx b/src/tokens/TokenImport.tsx index 0903addcef1..7741e6abf11 100644 --- a/src/tokens/TokenImport.tsx +++ b/src/tokens/TokenImport.tsx @@ -375,6 +375,6 @@ const styles = StyleSheet.create({ }, errorLabel: { ...typeScale.labelSmall, - color: Colors.error, + color: Colors.errorPrimary, }, }) diff --git a/src/transactions/NoActivity.tsx b/src/transactions/NoActivity.tsx index 715f4ff2141..610dad4f068 100644 --- a/src/transactions/NoActivity.tsx +++ b/src/transactions/NoActivity.tsx @@ -57,7 +57,7 @@ const styles = StyleSheet.create({ }, text: { ...typeScale.bodyLarge, - color: colors.textSecondary, + color: colors.contentSecondary, }, noTransactionsContainer: { padding: Spacing.Regular16, diff --git a/src/transactions/UserSection.tsx b/src/transactions/UserSection.tsx index 3ccd1da6371..e7614f5c0dc 100644 --- a/src/transactions/UserSection.tsx +++ b/src/transactions/UserSection.tsx @@ -94,7 +94,7 @@ const styles = StyleSheet.create({ }, sectionLabel: { ...typeScale.labelSemiBoldSmall, - color: colors.textSecondary, + color: colors.contentSecondary, marginBottom: 4, }, userContainer: { @@ -106,7 +106,7 @@ const styles = StyleSheet.create({ }, phoneNumber: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, avatarContainer: { flex: 1, @@ -117,7 +117,7 @@ const styles = StyleSheet.create({ }, addressHasChanged: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, marginBottom: 8, }, accountBox: { @@ -128,6 +128,6 @@ const styles = StyleSheet.create({ }, accountLabel: { ...typeScale.labelSemiBoldSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/transactions/feed/ClaimRewardFeedItem.tsx b/src/transactions/feed/ClaimRewardFeedItem.tsx index ae9b0a355f4..4e75dd3c904 100644 --- a/src/transactions/feed/ClaimRewardFeedItem.tsx +++ b/src/transactions/feed/ClaimRewardFeedItem.tsx @@ -123,7 +123,7 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, amountContainer: { maxWidth: '50%', @@ -135,7 +135,7 @@ const styles = StyleSheet.create({ }, amountSubtitle: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, flexWrap: 'wrap', textAlign: 'right', }, diff --git a/src/transactions/feed/DepositOrWithdrawFeedItem.tsx b/src/transactions/feed/DepositOrWithdrawFeedItem.tsx index aab944f7eae..6adc5c470bf 100644 --- a/src/transactions/feed/DepositOrWithdrawFeedItem.tsx +++ b/src/transactions/feed/DepositOrWithdrawFeedItem.tsx @@ -159,7 +159,7 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, amountContainer: { maxWidth: '50%', @@ -171,7 +171,7 @@ const styles = StyleSheet.create({ }, amountSubtitle: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, flexWrap: 'wrap', textAlign: 'right', }, diff --git a/src/transactions/feed/EarnFeedItem.tsx b/src/transactions/feed/EarnFeedItem.tsx index 8eda9166de8..160f0b79908 100644 --- a/src/transactions/feed/EarnFeedItem.tsx +++ b/src/transactions/feed/EarnFeedItem.tsx @@ -171,7 +171,7 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, amountContainer: { maxWidth: '50%', @@ -183,7 +183,7 @@ const styles = StyleSheet.create({ }, amountSubtitle: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, flexWrap: 'wrap', textAlign: 'right', }, diff --git a/src/transactions/feed/SwapFeedItem.tsx b/src/transactions/feed/SwapFeedItem.tsx index 17c2aa2685f..b704b4feb42 100644 --- a/src/transactions/feed/SwapFeedItem.tsx +++ b/src/transactions/feed/SwapFeedItem.tsx @@ -106,7 +106,7 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, tokenAmountContainer: { maxWidth: '50%', @@ -119,7 +119,7 @@ const styles = StyleSheet.create({ }, tokenAmount: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, flexWrap: 'wrap', textAlign: 'right', }, diff --git a/src/transactions/feed/TransactionDetails.tsx b/src/transactions/feed/TransactionDetails.tsx index cb3ba281299..4989246b14a 100644 --- a/src/transactions/feed/TransactionDetails.tsx +++ b/src/transactions/feed/TransactionDetails.tsx @@ -136,7 +136,7 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginTop: 2, }, status: { diff --git a/src/transactions/feed/TransactionFeedItemImage.tsx b/src/transactions/feed/TransactionFeedItemImage.tsx index 6622617fe93..2a27a63a31f 100644 --- a/src/transactions/feed/TransactionFeedItemImage.tsx +++ b/src/transactions/feed/TransactionFeedItemImage.tsx @@ -35,7 +35,7 @@ function TransactionFeedItemBaseImage(props: Props) { if (status === TransactionStatus.Failed) { return ( - + ) } @@ -48,7 +48,7 @@ function TransactionFeedItemBaseImage(props: Props) { ) { return ( - + ) } @@ -87,7 +87,7 @@ function TransactionFeedItemBaseImage(props: Props) { ) { return ( - + ) } diff --git a/src/transactions/feed/TransactionFeedV2.tsx b/src/transactions/feed/TransactionFeedV2.tsx index 897784eee50..7234d9bcb0b 100644 --- a/src/transactions/feed/TransactionFeedV2.tsx +++ b/src/transactions/feed/TransactionFeedV2.tsx @@ -568,7 +568,7 @@ const styles = StyleSheet.create({ }, allTransactionsText: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, textAlign: 'center', marginHorizontal: Spacing.Regular16, marginVertical: Spacing.Thick24, diff --git a/src/transactions/feed/TransactionPrimaryAction.tsx b/src/transactions/feed/TransactionPrimaryAction.tsx index 956d0eaa6ac..86c16db279f 100644 --- a/src/transactions/feed/TransactionPrimaryAction.tsx +++ b/src/transactions/feed/TransactionPrimaryAction.tsx @@ -27,9 +27,9 @@ function TransactionPrimaryAction({ status, type, onPress, testID }: Props) { }[status] const [color, backgroundColor] = { - [TransactionStatus.Complete]: [Colors.success, Colors.successSecondary], - [TransactionStatus.Pending]: [Colors.warning, Colors.warningSecondary], - [TransactionStatus.Failed]: [Colors.error, Colors.errorSecondary], + [TransactionStatus.Complete]: [Colors.successPrimary, Colors.successSecondary], + [TransactionStatus.Pending]: [Colors.warningPrimary, Colors.warningSecondary], + [TransactionStatus.Failed]: [Colors.errorPrimary, Colors.errorSecondary], }[status] const icon = { diff --git a/src/transactions/feed/TransactionStatusIndicator.tsx b/src/transactions/feed/TransactionStatusIndicator.tsx index 25a894f2ec8..3bf7c4175f2 100644 --- a/src/transactions/feed/TransactionStatusIndicator.tsx +++ b/src/transactions/feed/TransactionStatusIndicator.tsx @@ -25,9 +25,9 @@ function TransactionStatusIndicator({ status, testID }: Props) { }[status] const [color, backgroundColor] = { - [TransactionStatus.Complete]: [Colors.success, Colors.successSecondary], - [TransactionStatus.Pending]: [Colors.warning, Colors.warningSecondary], - [TransactionStatus.Failed]: [Colors.error, Colors.errorSecondary], + [TransactionStatus.Complete]: [Colors.successPrimary, Colors.successSecondary], + [TransactionStatus.Pending]: [Colors.warningPrimary, Colors.warningSecondary], + [TransactionStatus.Failed]: [Colors.errorPrimary, Colors.errorSecondary], }[status] const icon = { diff --git a/src/transactions/feed/TransferFeedItem.tsx b/src/transactions/feed/TransferFeedItem.tsx index 1dd8410fe36..237c40b144b 100644 --- a/src/transactions/feed/TransferFeedItem.tsx +++ b/src/transactions/feed/TransferFeedItem.tsx @@ -130,7 +130,7 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, amount: { ...typeScale.labelMedium, @@ -139,7 +139,7 @@ const styles = StyleSheet.create({ }, tokenAmount: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, flexWrap: 'wrap', textAlign: 'right', }, diff --git a/src/transactions/feed/detailContent/ClaimRewardContent.tsx b/src/transactions/feed/detailContent/ClaimRewardContent.tsx index ce2c43658f3..db6974fccb4 100644 --- a/src/transactions/feed/detailContent/ClaimRewardContent.tsx +++ b/src/transactions/feed/detailContent/ClaimRewardContent.tsx @@ -78,7 +78,7 @@ const styles = StyleSheet.create({ }, amountSubtitle: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginLeft: 'auto', }, }) diff --git a/src/transactions/feed/detailContent/DepositOrWithdrawContent.tsx b/src/transactions/feed/detailContent/DepositOrWithdrawContent.tsx index b3281d98dfa..d1dc3f6de5c 100644 --- a/src/transactions/feed/detailContent/DepositOrWithdrawContent.tsx +++ b/src/transactions/feed/detailContent/DepositOrWithdrawContent.tsx @@ -79,7 +79,7 @@ export function DepositOrWithdrawContent({ transaction }: DepositOrWithdrawConte showLocalAmount={false} style={styles.bodyText} /> - + - + ), - headerLeft: () => , + headerLeft: () => , headerTransparent: true, }) }, [navigation, route.params]) diff --git a/src/verify/VerificationStartScreen.tsx b/src/verify/VerificationStartScreen.tsx index 878fd2958ba..a4aae2c1c0a 100644 --- a/src/verify/VerificationStartScreen.tsx +++ b/src/verify/VerificationStartScreen.tsx @@ -122,7 +122,7 @@ function VerificationStartScreen({ title={t('skip')} testID="PhoneVerificationSkipHeader" onPress={onPressSkip} - titleStyle={{ color: colors.navigationTop }} + titleStyle={{ color: colors.navigationTopPrimary }} /> ), headerLeft: () => route.params?.hasOnboarded && , diff --git a/src/walletConnect/screens/ConnectionTimedOut.tsx b/src/walletConnect/screens/ConnectionTimedOut.tsx index 4710c426f68..ac495239a21 100644 --- a/src/walletConnect/screens/ConnectionTimedOut.tsx +++ b/src/walletConnect/screens/ConnectionTimedOut.tsx @@ -24,7 +24,7 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, textAlign: 'center', marginTop: 16, marginBottom: 24, diff --git a/src/walletConnect/screens/DappsDisclaimer.tsx b/src/walletConnect/screens/DappsDisclaimer.tsx index 79fb22d0c1e..e7019e167db 100644 --- a/src/walletConnect/screens/DappsDisclaimer.tsx +++ b/src/walletConnect/screens/DappsDisclaimer.tsx @@ -22,7 +22,7 @@ const DappsDisclaimer = ({ isDappListed }: Props) => { const styles = StyleSheet.create({ dappNotListedDisclaimer: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginBottom: Spacing.Thick24, textAlign: 'center', }, diff --git a/src/walletConnect/screens/EstimatedNetworkFee.tsx b/src/walletConnect/screens/EstimatedNetworkFee.tsx index dc80599a42c..e91fcc1a74e 100644 --- a/src/walletConnect/screens/EstimatedNetworkFee.tsx +++ b/src/walletConnect/screens/EstimatedNetworkFee.tsx @@ -119,7 +119,7 @@ const styles = StyleSheet.create({ }, labelText: { ...typeScale.labelXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginBottom: Spacing.Tiny4, }, amountPrimaryText: { @@ -127,7 +127,7 @@ const styles = StyleSheet.create({ }, amountSecondaryText: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, contentLoading: { opacity: 0, diff --git a/src/walletConnect/screens/Logos.tsx b/src/walletConnect/screens/Logos.tsx index 1fecb1afd0b..ec2a1316e0f 100644 --- a/src/walletConnect/screens/Logos.tsx +++ b/src/walletConnect/screens/Logos.tsx @@ -66,17 +66,17 @@ const styles = StyleSheet.create({ height: DAPP_IMAGE_SIZE, width: DAPP_IMAGE_SIZE, borderRadius: 100, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, }, dappImage: { height: DAPP_IMAGE_SIZE, width: DAPP_IMAGE_SIZE, borderRadius: 100, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, marginLeft: -4, }, placeholderLogoBackground: { - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, marginRight: -Spacing.Small12, borderColor: Colors.border, borderWidth: 1, @@ -84,6 +84,6 @@ const styles = StyleSheet.create({ placeholderLogoText: { ...typeScale.titleMedium, lineHeight: undefined, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, }) diff --git a/src/walletConnect/screens/RequestContent.tsx b/src/walletConnect/screens/RequestContent.tsx index beeef05c376..b50db70f91e 100644 --- a/src/walletConnect/screens/RequestContent.tsx +++ b/src/walletConnect/screens/RequestContent.tsx @@ -214,7 +214,7 @@ const styles = StyleSheet.create({ }, requestDetailLabel: { ...typeScale.labelXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginBottom: 4, }, requestDetailValue: { diff --git a/src/walletConnect/screens/Sessions.tsx b/src/walletConnect/screens/Sessions.tsx index 104352aa16c..01571158575 100644 --- a/src/walletConnect/screens/Sessions.tsx +++ b/src/walletConnect/screens/Sessions.tsx @@ -135,7 +135,7 @@ const styles = StyleSheet.create({ }, disconnectButton: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/walletConnect/screens/WalletConnectRequest.tsx b/src/walletConnect/screens/WalletConnectRequest.tsx index 7c42d98ffd0..319a89fc476 100644 --- a/src/walletConnect/screens/WalletConnectRequest.tsx +++ b/src/walletConnect/screens/WalletConnectRequest.tsx @@ -55,7 +55,7 @@ const styles = StyleSheet.create({ }, connecting: { ...typeScale.labelSemiBoldSmall, - color: colors.textSecondary, + color: colors.contentSecondary, marginTop: Spacing.Thick24, }, }) diff --git a/src/webview/WebViewAndroidBottomSheet.tsx b/src/webview/WebViewAndroidBottomSheet.tsx index 4f858302074..91a42c2dbcc 100644 --- a/src/webview/WebViewAndroidBottomSheet.tsx +++ b/src/webview/WebViewAndroidBottomSheet.tsx @@ -66,7 +66,7 @@ const styles = StyleSheet.create({ margin: 0, }, centerContainer: { - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, }, // Needed to add icons in the pressable buttons pressable: { diff --git a/src/webview/WebViewScreen.tsx b/src/webview/WebViewScreen.tsx index ee56e7d8ed0..42ccbc730f2 100644 --- a/src/webview/WebViewScreen.tsx +++ b/src/webview/WebViewScreen.tsx @@ -242,7 +242,7 @@ function WebViewScreen({ route, navigation }: Props) { disabled={!canGoBack} testID="WebViewScreen/GoBack" > - + - + - + - +
( onPress={onPressPaste} hitSlop={iconHitslop} > - + )} @@ -39,7 +39,7 @@ const styles = StyleSheet.create({ position: 'relative', }, pasteIconContainer: { - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, position: 'absolute', right: 11, top: 13, diff --git a/src/components/__snapshots__/CodeRow.test.tsx.snap b/src/components/__snapshots__/CodeRow.test.tsx.snap index b4800b79f60..d12c1d4eebe 100644 --- a/src/components/__snapshots__/CodeRow.test.tsx.snap +++ b/src/components/__snapshots__/CodeRow.test.tsx.snap @@ -58,6 +58,7 @@ exports[`CodeRow renders correctly for all CodeRowStatus states 2`] = ` onChangeText={[MockFunction]} onFocus={[Function]} placeholder="placeholder" + selectionColor="#757575" shouldShowClipboard={[MockFunction]} style={ [ diff --git a/src/components/__snapshots__/PhoneNumberInput.test.tsx.snap b/src/components/__snapshots__/PhoneNumberInput.test.tsx.snap index 6c70522f110..9312ae73387 100644 --- a/src/components/__snapshots__/PhoneNumberInput.test.tsx.snap +++ b/src/components/__snapshots__/PhoneNumberInput.test.tsx.snap @@ -176,6 +176,7 @@ exports[`PhoneNumberInput renders and behaves correctly 1`] = ` onFocus={[Function]} placeholder="00 00 00 00 00" placeholderTextColor="#757575" + selectionColor="#757575" style={ [ { diff --git a/src/components/multiSelect/MultiSelectBottomSheet.tsx b/src/components/multiSelect/MultiSelectBottomSheet.tsx index cc385b666b1..b2dbf29a1db 100644 --- a/src/components/multiSelect/MultiSelectBottomSheet.tsx +++ b/src/components/multiSelect/MultiSelectBottomSheet.tsx @@ -155,7 +155,7 @@ function OptionLineItem({ onPress, text, iconUrl, isSelected }: OptionLineItemPr {isSelected && ( @@ -171,7 +171,7 @@ function OptionLineItem({ onPress, text, iconUrl, isSelected }: OptionLineItemPr const styles = StyleSheet.create({ doneButton: { borderRadius: Spacing.Regular16, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, height: 56, flexGrow: 1, alignItems: 'center', @@ -225,12 +225,12 @@ const styles = StyleSheet.create({ borderRadiusTop: { borderTopLeftRadius: Spacing.Regular16, borderTopRightRadius: Spacing.Regular16, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, }, optionsContainer: { flexDirection: 'column', marginBottom: Spacing.Smallest8, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, borderBottomLeftRadius: Spacing.Regular16, borderBottomRightRadius: Spacing.Regular16, }, diff --git a/src/dapps/DappShortcutsRewards.tsx b/src/dapps/DappShortcutsRewards.tsx index 5a0440182d8..3b851e98b62 100644 --- a/src/dapps/DappShortcutsRewards.tsx +++ b/src/dapps/DappShortcutsRewards.tsx @@ -221,7 +221,7 @@ const styles = StyleSheet.create({ }, rewardLabel: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, rewardAmount: { ...typeScale.labelSemiBoldLarge, @@ -243,7 +243,7 @@ const styles = StyleSheet.create({ width: 18, height: 18, marginRight: Spacing.Smallest8, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, borderRadius: 100, }, dappName: { @@ -261,7 +261,7 @@ const styles = StyleSheet.create({ }, subHeading: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, claimButton: { minWidth: 72, diff --git a/src/dapps/DappsScreen.tsx b/src/dapps/DappsScreen.tsx index 0a6fd8fa265..9189ec4dee4 100644 --- a/src/dapps/DappsScreen.tsx +++ b/src/dapps/DappsScreen.tsx @@ -332,19 +332,19 @@ const styles = StyleSheet.create({ flexGrow: 1, }, refreshControl: { - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, }, sectionList: { flex: 1, }, sectionTitle: { ...typeScale.labelSemiBoldSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginTop: Spacing.Large32, }, disclaimer: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, listFooterComponent: { marginTop: Spacing.Large32, diff --git a/src/dappsExplorer/DappCard.tsx b/src/dappsExplorer/DappCard.tsx index fc5b83248ab..390debb0f7f 100644 --- a/src/dappsExplorer/DappCard.tsx +++ b/src/dappsExplorer/DappCard.tsx @@ -133,7 +133,7 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, }) diff --git a/src/dappsExplorer/DappFeaturedActions.tsx b/src/dappsExplorer/DappFeaturedActions.tsx index 48785b7c71f..9826742f4e2 100644 --- a/src/dappsExplorer/DappFeaturedActions.tsx +++ b/src/dappsExplorer/DappFeaturedActions.tsx @@ -116,6 +116,6 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, }) diff --git a/src/dappsExplorer/DiscoverDappsCard.tsx b/src/dappsExplorer/DiscoverDappsCard.tsx index 5df387cd63c..c190c81bbcd 100644 --- a/src/dappsExplorer/DiscoverDappsCard.tsx +++ b/src/dappsExplorer/DiscoverDappsCard.tsx @@ -149,7 +149,7 @@ const styles = StyleSheet.create({ }, sectionTitle: { ...typeScale.labelXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginTop: Spacing.Smallest8, }, listFooterComponent: { @@ -169,7 +169,7 @@ const styles = StyleSheet.create({ }, disclaimer: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, }) diff --git a/src/dappsExplorer/NoResults.tsx b/src/dappsExplorer/NoResults.tsx index b8deaeb5679..9fc04947ce1 100644 --- a/src/dappsExplorer/NoResults.tsx +++ b/src/dappsExplorer/NoResults.tsx @@ -34,7 +34,7 @@ function NoResults({ selectedFilter, removeFilter, testID, searchTerm }: Props) {searchTerm !== '' && ( - + @@ -101,11 +101,11 @@ const styles = StyleSheet.create({ }, filterText: { ...typeScale.labelSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, filterAppliedText: { ...typeScale.labelSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, paddingRight: 4, }, removeFilterTouchableContainer: { diff --git a/src/earn/ActionCard.tsx b/src/earn/ActionCard.tsx index 278d708e934..7bfc50114ff 100644 --- a/src/earn/ActionCard.tsx +++ b/src/earn/ActionCard.tsx @@ -16,7 +16,7 @@ export function ActionCard({ action }: { action: BeforeDepositAction | WithdrawA testID={`Earn/ActionCard/${action.name}`} > <> - + {action.title} {action.details} diff --git a/src/earn/EarnConfirmationScreen.tsx b/src/earn/EarnConfirmationScreen.tsx index 8e4a2c2b31c..4a5f57a03e5 100644 --- a/src/earn/EarnConfirmationScreen.tsx +++ b/src/earn/EarnConfirmationScreen.tsx @@ -372,7 +372,7 @@ const styles = StyleSheet.create({ }, fiatText: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, collectItemTitle: { ...typeScale.labelSemiBoldXSmall, @@ -385,7 +385,7 @@ const styles = StyleSheet.create({ }, rateText: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginBottom: Spacing.Tiny4, }, iconContainer: { @@ -397,7 +397,7 @@ const styles = StyleSheet.create({ }, gasFeeFiat: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, button: { padding: Spacing.Thick24, diff --git a/src/earn/EarnDepositBottomSheet.tsx b/src/earn/EarnDepositBottomSheet.tsx index 8d301634430..d6a333d52b8 100644 --- a/src/earn/EarnDepositBottomSheet.tsx +++ b/src/earn/EarnDepositBottomSheet.tsx @@ -185,7 +185,7 @@ export default function EarnDepositBottomSheet({ showLocalAmount={false} style={styles.valueSecondary} /> - + - + {errorLoadingPools && ( - + {t('earnFlow.home.errorTitle')} {t('earnFlow.home.errorDescription')} @@ -356,7 +356,7 @@ const styles = StyleSheet.create({ ...getShadowStyle(Shadow.SoftLight), paddingBottom: Spacing.Regular16, paddingHorizontal: Spacing.Regular16, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, position: 'absolute', width: '100%', zIndex: 1, diff --git a/src/earn/EarnInfoScreen.tsx b/src/earn/EarnInfoScreen.tsx index 414edaaabd9..7d3951ffaa4 100644 --- a/src/earn/EarnInfoScreen.tsx +++ b/src/earn/EarnInfoScreen.tsx @@ -74,17 +74,17 @@ export default function EarnInfoScreen() { } + icon={} title={t('earnFlow.earnInfo.details.work.title')} subtitle={t('earnFlow.earnInfo.details.work.subtitle')} /> } + icon={} title={t('earnFlow.earnInfo.details.manage.titleV1_94')} subtitle={t('earnFlow.earnInfo.details.manage.subtitleV1_94')} /> } + icon={} title={t('earnFlow.earnInfo.details.access.title')} subtitle={t('earnFlow.earnInfo.details.access.subtitle')} /> diff --git a/src/earn/EarnTabBar.test.tsx b/src/earn/EarnTabBar.test.tsx index 8c0aeb0b14e..4ce5560bf81 100644 --- a/src/earn/EarnTabBar.test.tsx +++ b/src/earn/EarnTabBar.test.tsx @@ -19,9 +19,9 @@ describe('EarnTabBar', () => { const tabItems = getAllByTestId('Earn/TabBarItem') expect(tabItems).toHaveLength(2) expect(tabItems[0]).toHaveTextContent('earnFlow.poolFilters.allPools') - expect(tabItems[0].children[0]).toHaveStyle({ color: Colors.textPrimary }) + expect(tabItems[0].children[0]).toHaveStyle({ color: Colors.contentPrimary }) expect(tabItems[1]).toHaveTextContent('earnFlow.poolFilters.myPools') - expect(tabItems[1].children[0]).toHaveStyle({ color: Colors.textSecondary }) + expect(tabItems[1].children[0]).toHaveStyle({ color: Colors.contentSecondary }) }) it.each([{ tab: EarnTabType.AllPools }, { tab: EarnTabType.MyPools }])( diff --git a/src/earn/EarnTabBar.tsx b/src/earn/EarnTabBar.tsx index ec23703e27b..9b2bebc1532 100644 --- a/src/earn/EarnTabBar.tsx +++ b/src/earn/EarnTabBar.tsx @@ -65,7 +65,7 @@ const styles = StyleSheet.create({ }, item: { ...typeScale.bodyMedium, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, itemSelected: { ...typeScale.labelMedium, diff --git a/src/earn/PoolCard.tsx b/src/earn/PoolCard.tsx index b86c8caecd6..1811c9128bc 100644 --- a/src/earn/PoolCard.tsx +++ b/src/earn/PoolCard.tsx @@ -170,7 +170,7 @@ const styles = StyleSheet.create({ }, keyText: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, valueText: { ...typeScale.bodySmall, @@ -181,7 +181,7 @@ const styles = StyleSheet.create({ poweredByText: { ...typeScale.bodyXSmall, alignSelf: 'center', - color: Colors.textSecondary, + color: Colors.contentSecondary, }, withBalanceContainer: { borderTopWidth: 1, diff --git a/src/earn/poolInfoScreen/Cards.tsx b/src/earn/poolInfoScreen/Cards.tsx index 4271520d125..3b67399597c 100644 --- a/src/earn/poolInfoScreen/Cards.tsx +++ b/src/earn/poolInfoScreen/Cards.tsx @@ -346,7 +346,7 @@ export const styles = StyleSheet.create({ }, cardLabelText: { ...typeScale.bodyMedium, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, depositAndEarningCard: { backgroundColor: Colors.backgroundSecondary, @@ -362,7 +362,7 @@ export const styles = StyleSheet.create({ ...typeScale.titleMedium, }, depositAndEarningCardSubtitleContainer: { - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, padding: Spacing.Regular16, borderBottomLeftRadius: 16, borderBottomRightRadius: 16, diff --git a/src/earn/poolInfoScreen/EarnPoolInfoScreen.tsx b/src/earn/poolInfoScreen/EarnPoolInfoScreen.tsx index 8f764a0399e..07e95061379 100644 --- a/src/earn/poolInfoScreen/EarnPoolInfoScreen.tsx +++ b/src/earn/poolInfoScreen/EarnPoolInfoScreen.tsx @@ -123,7 +123,7 @@ function LearnMoreTouchable({ {t('earnFlow.poolInfoScreen.learnMoreOnProvider', { providerName })} - + @@ -496,7 +496,7 @@ function InfoBottomSheet({ - + @@ -533,7 +533,7 @@ const styles = StyleSheet.create({ }, subtitleLabel: { ...typeScale.bodyMedium, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, subtitleInfo: { ...typeScale.labelMedium, diff --git a/src/earn/poolInfoScreen/SafetyCard.tsx b/src/earn/poolInfoScreen/SafetyCard.tsx index 2c86e8fcbf0..0013e2d650e 100644 --- a/src/earn/poolInfoScreen/SafetyCard.tsx +++ b/src/earn/poolInfoScreen/SafetyCard.tsx @@ -29,7 +29,7 @@ function Risk({ risk }: { risk: SafetyRisk }) { {risk.isPositive ? ( ) : ( - + )} @@ -123,7 +123,7 @@ const styles = StyleSheet.create({ }, viewDetailsText: { ...typeScale.labelSemiBoldSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, textAlign: 'center', flex: 1, }, @@ -148,6 +148,6 @@ const styles = StyleSheet.create({ }, riskCategory: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, }) diff --git a/src/fiatExchanges/PaymentMethodSection.tsx b/src/fiatExchanges/PaymentMethodSection.tsx index d19d76a7fe4..89a14afc756 100644 --- a/src/fiatExchanges/PaymentMethodSection.tsx +++ b/src/fiatExchanges/PaymentMethodSection.tsx @@ -149,7 +149,7 @@ export function PaymentMethodSection({ > <> {t('selectProviderScreen.newLabel')} - + > )} @@ -342,7 +342,7 @@ const styles = StyleSheet.create({ }, newLabelText: { ...typeScale.labelSemiBoldSmall, - color: colors.textInverse, + color: colors.contentInverse, marginRight: 5, }, category: { @@ -354,16 +354,16 @@ const styles = StyleSheet.create({ }, providerDropdown: { ...typeScale.labelSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, expandedInfo: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, marginTop: 2, }, topInfo: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, marginTop: 4, }, expandedFee: { diff --git a/src/fiatExchanges/ReviewFees.tsx b/src/fiatExchanges/ReviewFees.tsx index b3e5c115325..34713614193 100644 --- a/src/fiatExchanges/ReviewFees.tsx +++ b/src/fiatExchanges/ReviewFees.tsx @@ -129,7 +129,7 @@ export default function ReviewFees({ onPress={openFeeExplanation} hitSlop={variables.iconHitslop} > - + {showAmount(fiat.total - fiat.subTotal, false, [styles.reviewLineText])} @@ -143,7 +143,7 @@ export default function ReviewFees({ onPress={openFeeDiscountExplanation} hitSlop={variables.iconHitslop} > - + {t('free')} @@ -183,7 +183,7 @@ const styles = StyleSheet.create({ color: colors.accent, }, reviewLineTextAlt: { - color: colors.textSecondary, + color: colors.contentSecondary, }, reviewLineTextTotal: { ...typeScale.labelSemiBoldMedium, diff --git a/src/fiatExchanges/SelectProvider.tsx b/src/fiatExchanges/SelectProvider.tsx index 1d0b0cc2b8b..10022b19c42 100644 --- a/src/fiatExchanges/SelectProvider.tsx +++ b/src/fiatExchanges/SelectProvider.tsx @@ -595,7 +595,7 @@ const styles = StyleSheet.create({ }, linkToOtherScreen: { ...typeScale.labelSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, disclaimerContainer: { padding: Spacing.Regular16, @@ -606,7 +606,7 @@ const styles = StyleSheet.create({ }, disclaimerText: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, underline: { textDecorationLine: 'underline', diff --git a/src/fiatExchanges/SimplexScreen.tsx b/src/fiatExchanges/SimplexScreen.tsx index 5699ff29dd0..3f809ff9dec 100644 --- a/src/fiatExchanges/SimplexScreen.tsx +++ b/src/fiatExchanges/SimplexScreen.tsx @@ -136,7 +136,7 @@ function SimplexScreen({ route, navigation }: Props) { onPress={onButtonPress} disabled={!simplexPaymentRequest?.paymentId} showLoading={asyncSimplexPaymentData.status === 'loading'} - loadingColor={colors.textInverse} + loadingColor={colors.contentInverse} /> ) : ( diff --git a/src/fiatExchanges/Spend.tsx b/src/fiatExchanges/Spend.tsx index 67cad89a96d..09eff2aef29 100644 --- a/src/fiatExchanges/Spend.tsx +++ b/src/fiatExchanges/Spend.tsx @@ -97,7 +97,7 @@ const styles = StyleSheet.create({ }, optionSubtitle: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/fiatExchanges/WithdrawSpend.tsx b/src/fiatExchanges/WithdrawSpend.tsx index 90561674dde..be1a2630888 100644 --- a/src/fiatExchanges/WithdrawSpend.tsx +++ b/src/fiatExchanges/WithdrawSpend.tsx @@ -122,7 +122,7 @@ const styles = StyleSheet.create({ optionSubtitle: { marginTop: 2, ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, moreWaysContainer: { flexGrow: 1, @@ -130,7 +130,7 @@ const styles = StyleSheet.create({ }, moreWays: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, margin: variables.contentPadding, }, fundingOptionsLink: { diff --git a/src/fiatconnect/FiatDetailsScreen.tsx b/src/fiatconnect/FiatDetailsScreen.tsx index 674517a9000..d19e1b75dd4 100644 --- a/src/fiatconnect/FiatDetailsScreen.tsx +++ b/src/fiatconnect/FiatDetailsScreen.tsx @@ -304,7 +304,7 @@ function FormField({ style={styles.infoIcon} hitSlop={variables.iconHitslop} > - + )} @@ -402,7 +402,7 @@ const styles = StyleSheet.create({ }, error: { fontSize: 12, - color: colors.error, + color: colors.errorPrimary, }, submitButton: { padding: variables.contentPadding, diff --git a/src/fiatconnect/KycLanding.tsx b/src/fiatconnect/KycLanding.tsx index fffbbddbf8c..1f0fec164f3 100644 --- a/src/fiatconnect/KycLanding.tsx +++ b/src/fiatconnect/KycLanding.tsx @@ -239,7 +239,7 @@ const styles = StyleSheet.create({ marginHorizontal: 24, }, disclaimer: { - color: Colors.textSecondary, + color: Colors.contentSecondary, textAlign: 'left', marginLeft: 11, fontSize: 13, diff --git a/src/fiatconnect/ReviewScreen.tsx b/src/fiatconnect/ReviewScreen.tsx index d7243380635..59ae623e865 100644 --- a/src/fiatconnect/ReviewScreen.tsx +++ b/src/fiatconnect/ReviewScreen.tsx @@ -625,7 +625,7 @@ const styles = StyleSheet.create({ }, sectionHeaderText: { ...typeScale.labelSemiBoldSmall, - color: colors.textSecondary, + color: colors.contentSecondary, marginBottom: 8, }, sectionMainTextContainer: { @@ -639,7 +639,7 @@ const styles = StyleSheet.create({ }, sectionSubText: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, submitBtn: { flexDirection: 'column', @@ -678,7 +678,7 @@ const styles = StyleSheet.create({ paddingHorizontal: variables.contentPadding, marginBottom: 20, textAlign: 'center', - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/fiatconnect/TransferStatusScreen.test.tsx b/src/fiatconnect/TransferStatusScreen.test.tsx index dab69c2bba2..ae6d6264de0 100644 --- a/src/fiatconnect/TransferStatusScreen.test.tsx +++ b/src/fiatconnect/TransferStatusScreen.test.tsx @@ -384,7 +384,9 @@ describe('TransferStatusScreen', () => { ) expect(getByTestId('loadingTransferStatus')).toBeTruthy() - expect(getByTestId('loadingDescription')).toHaveStyle({ color: appTheme.colors.background }) + expect(getByTestId('loadingDescription')).toHaveStyle({ + color: appTheme.colors.background, + }) await act(async () => { jest.runOnlyPendingTimers() }) diff --git a/src/fiatconnect/TransferStatusScreen.tsx b/src/fiatconnect/TransferStatusScreen.tsx index 8d671cd32d5..74d695181a1 100644 --- a/src/fiatconnect/TransferStatusScreen.tsx +++ b/src/fiatconnect/TransferStatusScreen.tsx @@ -148,7 +148,7 @@ function SuccessOrProcessingSection({ if (status === SendingTransferStatus.Completed) { icon = ( - + ) title = t('fiatConnectStatusScreen.success.title') @@ -158,7 +158,7 @@ function SuccessOrProcessingSection({ } else { icon = ( - + ) title = t('fiatConnectStatusScreen.txProcessing.title') diff --git a/src/fiatconnect/kyc/KycPending.tsx b/src/fiatconnect/kyc/KycPending.tsx index ce42b48277b..2b53fd21ff7 100644 --- a/src/fiatconnect/kyc/KycPending.tsx +++ b/src/fiatconnect/kyc/KycPending.tsx @@ -46,11 +46,11 @@ function KycPending({ route, navigation }: Props) { backgroundColor={colors.backgroundSecondary} style={styles.bankIcon} > - + - + - + diff --git a/src/home/ActionsCarousel.tsx b/src/home/ActionsCarousel.tsx index 3576013b8e4..c37a3b4a053 100644 --- a/src/home/ActionsCarousel.tsx +++ b/src/home/ActionsCarousel.tsx @@ -34,14 +34,14 @@ function ActionsCarousel() { const actions: Actions = { [HomeActionName.Send]: { title: t('homeActions.send'), - icon: , + icon: , onPress: () => { navigate(Screens.SendSelectRecipient) }, }, [HomeActionName.Receive]: { title: t('homeActions.receive'), - icon: , + icon: , onPress: () => { navigate(Screens.QRNavigator, { screen: Screens.QRCode, @@ -50,14 +50,14 @@ function ActionsCarousel() { }, [HomeActionName.Add]: { title: t('homeActions.add'), - icon: , + icon: , onPress: () => { navigate(Screens.FiatExchangeCurrencyBottomSheet, { flow: FiatExchangeFlow.CashIn }) }, }, [HomeActionName.Swap]: { title: t('homeActions.swap'), - icon: , + icon: , onPress: () => { navigate(Screens.SwapScreenWithBack) }, @@ -65,7 +65,7 @@ function ActionsCarousel() { }, [HomeActionName.Withdraw]: { title: t('homeActions.withdraw'), - icon: , + icon: , onPress: () => { navigate(Screens.WithdrawSpend) }, @@ -123,7 +123,7 @@ function ActionsCarousel() { const styles = StyleSheet.create({ viewContainer: { - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, }, carouselContainer: { padding: Spacing.Regular16, @@ -143,7 +143,7 @@ const styles = StyleSheet.create({ ...typeScale.labelSmall, lineHeight: 17, paddingTop: Spacing.Smallest8, - color: Colors.success, + color: Colors.successPrimary, }, }) diff --git a/src/home/GetStarted.tsx b/src/home/GetStarted.tsx index e91c991a00d..95ca32f6863 100644 --- a/src/home/GetStarted.tsx +++ b/src/home/GetStarted.tsx @@ -21,7 +21,7 @@ function EarnItem() { - + } title={t('earnFlow.entrypoint.title')} @@ -87,7 +87,7 @@ const styles = StyleSheet.create({ }, title: { ...typeScale.labelSemiBoldSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, touchable: { padding: Spacing.Regular16, @@ -104,7 +104,7 @@ const styles = StyleSheet.create({ }, itemBody: { ...typeScale.bodyXSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, touchableView: { gap: Spacing.Thick24, diff --git a/src/home/celebration/NftCelebration.tsx b/src/home/celebration/NftCelebration.tsx index 8abcfbc390e..b650ffa1500 100644 --- a/src/home/celebration/NftCelebration.tsx +++ b/src/home/celebration/NftCelebration.tsx @@ -196,7 +196,7 @@ const styles = StyleSheet.create({ }, description: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginTop: Spacing.Smallest8, }, button: { diff --git a/src/home/celebration/NftReward.test.tsx b/src/home/celebration/NftReward.test.tsx index a77150eecb2..f4e99e2b111 100644 --- a/src/home/celebration/NftReward.test.tsx +++ b/src/home/celebration/NftReward.test.tsx @@ -65,7 +65,7 @@ describe('NftReward', () => { expect(pillLabel).toHaveTextContent( 'nftCelebration.rewardBottomSheet.expirationLabel, {"expirationLabelText":"in about 100 years"}' ) - expect(StyleSheet.flatten(pillLabel.props.style)).toHaveProperty('color', Colors.textPrimary) + expect(StyleSheet.flatten(pillLabel.props.style)).toHaveProperty('color', Colors.contentPrimary) expect(StyleSheet.flatten(getByTestId('NftReward/Pill').props.style)).toHaveProperty( 'backgroundColor', Colors.info @@ -85,7 +85,7 @@ describe('NftReward', () => { expect(pillLabel).toHaveTextContent( 'nftCelebration.rewardReminderBottomSheet.expirationLabel, {"expirationLabelText":"in about 1 month"}' ) - expect(StyleSheet.flatten(pillLabel.props.style)).toHaveProperty('color', Colors.warning) + expect(StyleSheet.flatten(pillLabel.props.style)).toHaveProperty('color', Colors.warningPrimary) expect(StyleSheet.flatten(getByTestId('NftReward/Pill').props.style)).toHaveProperty( 'backgroundColor', Colors.warningSecondary diff --git a/src/home/celebration/NftReward.tsx b/src/home/celebration/NftReward.tsx index 8e0f1e03b3a..137c97a0863 100644 --- a/src/home/celebration/NftReward.tsx +++ b/src/home/celebration/NftReward.tsx @@ -51,11 +51,11 @@ export default function NftRewardBottomSheet() { const { pillStyle, labelStyle } = isReminder ? { pillStyle: { backgroundColor: Colors.warningSecondary }, - labelStyle: { color: Colors.warning }, + labelStyle: { color: Colors.warningPrimary }, } : { pillStyle: { backgroundColor: Colors.info }, - labelStyle: { color: Colors.textPrimary }, + labelStyle: { color: Colors.contentPrimary }, } const copyText = isReminder ? 'rewardReminderBottomSheet' : 'rewardBottomSheet' @@ -153,7 +153,7 @@ const styles = StyleSheet.create({ description: { marginTop: Spacing.Regular16, ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, button: { marginTop: Spacing.XLarge48, diff --git a/src/icons/Activity.tsx b/src/icons/Activity.tsx index 7d58dfd7e10..b416b1f2a18 100644 --- a/src/icons/Activity.tsx +++ b/src/icons/Activity.tsx @@ -7,7 +7,7 @@ interface Props { color?: colors } -function Activity({ color = colors.success, size = 24 }: Props) { +function Activity({ color = colors.successPrimary, size = 24 }: Props) { return ( ( +const AppleIcon = ({ color = Colors.contentPrimary }) => ( ( +const ArrowDown = ({ color = Colors.contentPrimary, size = 24 }: Props) => ( ( +const ArrowRightThick = ({ color = colors.contentPrimary, size = 24 }: Props) => ( diff --git a/src/icons/Attention.tsx b/src/icons/Attention.tsx index 7a8583e9e84..25df8587307 100644 --- a/src/icons/Attention.tsx +++ b/src/icons/Attention.tsx @@ -3,7 +3,7 @@ import Svg, { Path } from 'react-native-svg' import Colors from 'src/styles/colors' const AttentionIcon = ({ - color = Colors.warning, + color = Colors.warningPrimary, size = 16, testId, }: { diff --git a/src/icons/BackChevron.tsx b/src/icons/BackChevron.tsx index 8f25122f588..95483d37c28 100644 --- a/src/icons/BackChevron.tsx +++ b/src/icons/BackChevron.tsx @@ -23,7 +23,7 @@ function BackChevron({ color, height }: Props) { BackChevron.defaultProps = { height: 16, - color: Colors.textPrimary, + color: Colors.contentPrimary, } export default BackChevron diff --git a/src/icons/Backspace.tsx b/src/icons/Backspace.tsx index 9c960cfa9d0..c9f05a763b7 100644 --- a/src/icons/Backspace.tsx +++ b/src/icons/Backspace.tsx @@ -12,7 +12,7 @@ export default class Backspace extends React.PureComponent { static defaultProps = { height: 30, width: 30, - color: colors.textPrimary, + color: colors.contentPrimary, } render() { diff --git a/src/icons/Celebration.tsx b/src/icons/Celebration.tsx index f08b76d9dba..c4d003ffa90 100644 --- a/src/icons/Celebration.tsx +++ b/src/icons/Celebration.tsx @@ -7,7 +7,7 @@ interface Props { color?: string } -const Celebration = ({ size = 24, color = Colors.textPrimary }: Props) => ( +const Celebration = ({ size = 24, color = Colors.contentPrimary }: Props) => ( { if (checked) diff --git a/src/icons/CheckCircle.tsx b/src/icons/CheckCircle.tsx index 8cee6349a69..26507c66577 100644 --- a/src/icons/CheckCircle.tsx +++ b/src/icons/CheckCircle.tsx @@ -8,7 +8,7 @@ interface Props { testID?: string } -const CheckCircle = ({ size = 24, color = Colors.textPrimary, testID }: Props) => ( +const CheckCircle = ({ size = 24, color = Colors.contentPrimary, testID }: Props) => ( ( diff --git a/src/icons/ComingSoon.tsx b/src/icons/ComingSoon.tsx index c81cd63fa57..84dbca63574 100644 --- a/src/icons/ComingSoon.tsx +++ b/src/icons/ComingSoon.tsx @@ -7,7 +7,7 @@ interface Props { color?: string } -const ComingSoon = ({ size = 24, color = Colors.textPrimary }: Props) => ( +const ComingSoon = ({ size = 24, color = Colors.contentPrimary }: Props) => ( diff --git a/src/icons/DataDown.tsx b/src/icons/DataDown.tsx index b643ca5dad2..61149b999fe 100644 --- a/src/icons/DataDown.tsx +++ b/src/icons/DataDown.tsx @@ -7,7 +7,7 @@ interface Props { testID?: string } -const DataDown = ({ color = colors.textPrimary, testID }: Props) => ( +const DataDown = ({ color = colors.contentPrimary, testID }: Props) => ( diff --git a/src/icons/DownArrowIcon.tsx b/src/icons/DownArrowIcon.tsx index 63a57e35fa5..661f4789de5 100644 --- a/src/icons/DownArrowIcon.tsx +++ b/src/icons/DownArrowIcon.tsx @@ -13,7 +13,7 @@ interface Props { export default function DownArrowIcon({ height, - color = colors.textPrimary, + color = colors.contentPrimary, strokeWidth = 1, style = {}, }: Props) { diff --git a/src/icons/Envelope.tsx b/src/icons/Envelope.tsx index dd81f63aa3b..62bcbd0d62d 100644 --- a/src/icons/Envelope.tsx +++ b/src/icons/Envelope.tsx @@ -19,7 +19,7 @@ export function Envelope({ color, size }: Props) { } Envelope.defaultProps = { - color: Colors.textPrimary, + color: Colors.contentPrimary, size: 24, } diff --git a/src/icons/Error.tsx b/src/icons/Error.tsx index 3215bb4d7b6..4e1691cf527 100644 --- a/src/icons/Error.tsx +++ b/src/icons/Error.tsx @@ -12,7 +12,7 @@ interface Props { export default class Error extends React.PureComponent { static defaultProps = { - color: colors.textInverse, + color: colors.contentInverse, width: getSizing(), style: {}, } diff --git a/src/icons/ExploreTokens.tsx b/src/icons/ExploreTokens.tsx index 128c297726f..5cbd2be23b9 100644 --- a/src/icons/ExploreTokens.tsx +++ b/src/icons/ExploreTokens.tsx @@ -8,7 +8,7 @@ function AllTokens() { ) diff --git a/src/icons/EyeIcon.tsx b/src/icons/EyeIcon.tsx index bbef3da0cbc..9b646c84fda 100644 --- a/src/icons/EyeIcon.tsx +++ b/src/icons/EyeIcon.tsx @@ -21,7 +21,7 @@ function EyeIcon({ color, size }: Props) { EyeIcon.defaultProps = { size: 24, - color: Colors.textPrimary, + color: Colors.contentPrimary, } export default EyeIcon diff --git a/src/icons/ForwardChevron.tsx b/src/icons/ForwardChevron.tsx index 6e32e9b884f..940588f361d 100644 --- a/src/icons/ForwardChevron.tsx +++ b/src/icons/ForwardChevron.tsx @@ -29,7 +29,7 @@ function ForwardChevron({ color, height }: Props) { ForwardChevron.defaultProps = { height: 16, - color: colors.textPrimary, + color: colors.contentPrimary, } export default ForwardChevron diff --git a/src/icons/GearIcon.tsx b/src/icons/GearIcon.tsx index f38df69d45a..5c4702f10ff 100644 --- a/src/icons/GearIcon.tsx +++ b/src/icons/GearIcon.tsx @@ -7,7 +7,7 @@ interface Props { color?: string } -const GearIcon = ({ size = 24, color = colors.textPrimary }: Props) => ( +const GearIcon = ({ size = 24, color = colors.contentPrimary }: Props) => ( ( +const GoogleIcon = ({ color = Colors.contentPrimary }) => ( {borderWidth > 0 && ( )} - - + + diff --git a/src/icons/HamburgerCard.tsx b/src/icons/HamburgerCard.tsx index 021af4393e9..a59f626352b 100644 --- a/src/icons/HamburgerCard.tsx +++ b/src/icons/HamburgerCard.tsx @@ -13,7 +13,7 @@ function HamburgerCard() { y1="9.75" x2="24.75" y2="9.75" - stroke={Colors.textPrimary} + stroke={Colors.contentPrimary} strokeWidth="2.5" strokeLinecap="round" /> @@ -22,7 +22,7 @@ function HamburgerCard() { y1="15.75" x2="24.75" y2="15.75" - stroke={Colors.textPrimary} + stroke={Colors.contentPrimary} strokeWidth="2.5" strokeLinecap="round" /> @@ -31,7 +31,7 @@ function HamburgerCard() { y1="21.75" x2="24.75" y2="21.75" - stroke={Colors.textPrimary} + stroke={Colors.contentPrimary} strokeWidth="2.5" strokeLinecap="round" /> @@ -42,7 +42,7 @@ function HamburgerCard() { const styles = StyleSheet.create({ container: { - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, ...elevationShadowStyle(12), alignItems: 'center', justifyContent: 'center', diff --git a/src/icons/Help.tsx b/src/icons/Help.tsx index 16efa4bd48c..a96365ffc96 100644 --- a/src/icons/Help.tsx +++ b/src/icons/Help.tsx @@ -7,7 +7,7 @@ interface Props { size?: number } -export function Help({ color = colors.textPrimary, size = 32 }: Props) { +export function Help({ color = colors.contentPrimary, size = 32 }: Props) { return ( - + @@ -25,7 +25,7 @@ function HiddenEyeIcon({ color, size }: Props) { HiddenEyeIcon.defaultProps = { size: 24, - color: Colors.textPrimary, + color: Colors.contentPrimary, } export default HiddenEyeIcon diff --git a/src/icons/InfoIcon.tsx b/src/icons/InfoIcon.tsx index 8ce6b094e02..ff0da49f739 100644 --- a/src/icons/InfoIcon.tsx +++ b/src/icons/InfoIcon.tsx @@ -19,7 +19,7 @@ const getSizing = (baseSize: number = 16, maxSize: number = 28) => { function InfoIcon({ size = 16, scaledSize = getSizing(size), - color = colors.textPrimary, + color = colors.contentPrimary, testID, }: Props) { return ( diff --git a/src/icons/KeylessBackup.tsx b/src/icons/KeylessBackup.tsx index 025ecc50e01..09be977e9a0 100644 --- a/src/icons/KeylessBackup.tsx +++ b/src/icons/KeylessBackup.tsx @@ -11,7 +11,7 @@ export default function KeylessBackup({ style }: Props) { return ( - + diff --git a/src/icons/MagicWand.tsx b/src/icons/MagicWand.tsx index 914aaa65436..6cf8852cdc2 100644 --- a/src/icons/MagicWand.tsx +++ b/src/icons/MagicWand.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import Svg, { Path } from 'react-native-svg' import Colors from 'src/styles/colors' -const MagicWand = ({ size = 24, color = Colors.success }) => ( +const MagicWand = ({ size = 24, color = Colors.successPrimary }) => ( ( {notificationMark && ( ( +const OpenLinkIcon = ({ color = colors.contentInverse, size = 12 }: Props) => ( { static defaultProps = { width: 28, height: 28, - color: colors.textPrimary, + color: colors.contentPrimary, } render() { diff --git a/src/icons/Phone.tsx b/src/icons/Phone.tsx index 6f0eda68e39..9500e49afc8 100644 --- a/src/icons/Phone.tsx +++ b/src/icons/Phone.tsx @@ -8,7 +8,7 @@ interface Props { testID?: string } -export default function Phone({ color = Colors.textPrimary, size = 24, testID }: Props) { +export default function Phone({ color = Colors.contentPrimary, size = 24, testID }: Props) { return ( ( ) diff --git a/src/icons/Preferences.tsx b/src/icons/Preferences.tsx index 73b1641a93a..677f675a081 100644 --- a/src/icons/Preferences.tsx +++ b/src/icons/Preferences.tsx @@ -7,7 +7,7 @@ interface Props { color?: string } -function Preferences({ color = colors.textPrimary, size = 24 }: Props) { +function Preferences({ color = colors.contentPrimary, size = 24 }: Props) { return ( ( ) diff --git a/src/icons/QRCode.tsx b/src/icons/QRCode.tsx index 79b2f11c7bc..ed93f4ed633 100644 --- a/src/icons/QRCode.tsx +++ b/src/icons/QRCode.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import Svg, { Path } from 'react-native-svg' import Colors from 'src/styles/colors' -const QRCode = ({ color = Colors.textPrimary }: { color?: Colors }) => ( +const QRCode = ({ color = Colors.contentPrimary }: { color?: Colors }) => ( ( Refresh.defaultProps = { height: 16, - color: colors.textPrimary, + color: colors.contentPrimary, } export default Refresh diff --git a/src/icons/ScanIcon.tsx b/src/icons/ScanIcon.tsx index 5c5f46d3da2..693b0096955 100644 --- a/src/icons/ScanIcon.tsx +++ b/src/icons/ScanIcon.tsx @@ -7,7 +7,7 @@ interface Props { size?: number } -const ScanIcon = ({ color = colors.textPrimary, size = 24 }: Props) => ( +const ScanIcon = ({ color = colors.contentPrimary, size = 24 }: Props) => ( { static defaultProps = { width: 14, height: 15, - color: colors.textPrimary, + color: colors.contentPrimary, } render() { diff --git a/src/icons/Social.tsx b/src/icons/Social.tsx index dfd670e6018..0f6e2e72880 100644 --- a/src/icons/Social.tsx +++ b/src/icons/Social.tsx @@ -5,8 +5,8 @@ import Colors from 'src/styles/colors' const Social = () => ( diff --git a/src/icons/Stack.tsx b/src/icons/Stack.tsx index e8ca0fecdb7..4009e5975d3 100644 --- a/src/icons/Stack.tsx +++ b/src/icons/Stack.tsx @@ -7,7 +7,7 @@ interface Props { color?: string } -function Stack({ color = colors.textPrimary, size = 24 }: Props) { +function Stack({ color = colors.contentPrimary, size = 24 }: Props) { return ( ( +const StarOutline = ({ color = Colors.contentPrimary }: { color?: Colors }) => ( ( +const SwapArrows = ({ size = 24, color = Colors.contentPrimary, testID }: Props) => ( ( clip-rule="evenodd" /> diff --git a/src/icons/Times.tsx b/src/icons/Times.tsx index 098e35cfb7f..c5d5ac1b608 100644 --- a/src/icons/Times.tsx +++ b/src/icons/Times.tsx @@ -37,7 +37,7 @@ function Times({ color, height, strokeWidth }: Props) { Times.defaultProps = { height: 16, - color: colors.textPrimary, + color: colors.contentPrimary, strokeWidth: 2, } diff --git a/src/icons/TripleDotVertical.tsx b/src/icons/TripleDotVertical.tsx index b1d82737579..6fe5fe5f54f 100644 --- a/src/icons/TripleDotVertical.tsx +++ b/src/icons/TripleDotVertical.tsx @@ -6,7 +6,7 @@ interface Props { color?: string } -const TripleDotVertical = ({ color = Colors.textPrimary }: Props) => ( +const TripleDotVertical = ({ color = Colors.contentPrimary }: Props) => ( ) diff --git a/src/icons/biometry/FaceID.tsx b/src/icons/biometry/FaceID.tsx index e96d62f8d90..57c9ce565e8 100644 --- a/src/icons/biometry/FaceID.tsx +++ b/src/icons/biometry/FaceID.tsx @@ -9,7 +9,7 @@ export function FaceID() { fillRule="evenodd" clipRule="evenodd" d="M1.719 6.586V3.89A2.675 2.675 0 0 1 4.39 1.219h2.695a.61.61 0 0 0 0-1.219H4.39A3.895 3.895 0 0 0 .5 3.89v2.696a.61.61 0 0 0 1.219 0ZM7.086 22.78a.61.61 0 0 1 0 1.219H4.39A3.895 3.895 0 0 1 .5 20.11v-2.696a.61.61 0 1 1 1.219 0v2.695a2.675 2.675 0 0 0 2.672 2.672h2.695ZM24.5 17.414v2.695A3.895 3.895 0 0 1 20.61 24h-2.696a.61.61 0 1 1 0-1.219h2.695a2.675 2.675 0 0 0 2.672-2.672v-2.695a.61.61 0 0 1 1.219 0Zm0-13.523v2.695a.61.61 0 1 1-1.219 0V3.89a2.675 2.675 0 0 0-2.672-2.672h-2.695a.61.61 0 1 1 0-1.219h2.695A3.895 3.895 0 0 1 24.5 3.89Zm-7.795 13.847a.633.633 0 0 0-.858-.93 4.918 4.918 0 0 1-3.347 1.31 4.918 4.918 0 0 1-3.347-1.31.633.633 0 0 0-.858.93 6.18 6.18 0 0 0 4.205 1.645 6.18 6.18 0 0 0 4.205-1.645Zm-2.94-8.691v4.5c0 .892-.725 1.617-1.617 1.617h-.515a.633.633 0 0 1 0-1.266h.515a.352.352 0 0 0 .352-.351v-4.5a.633.633 0 1 1 1.266 0Zm4.36 1.77V9.011a.598.598 0 0 0-1.195 0v1.804a.598.598 0 1 0 1.195 0Zm-11.11 0a.598.598 0 1 0 1.196 0V9.011a.598.598 0 0 0-1.195 0v1.804Z" - fill={Colors.textInverse} + fill={Colors.contentInverse} /> ) diff --git a/src/icons/biometry/Fingerprint.tsx b/src/icons/biometry/Fingerprint.tsx index 21d36d46058..659d1e86205 100644 --- a/src/icons/biometry/Fingerprint.tsx +++ b/src/icons/biometry/Fingerprint.tsx @@ -7,7 +7,7 @@ export function Fingerprint() { ) diff --git a/src/icons/biometry/Iris.tsx b/src/icons/biometry/Iris.tsx index 9a45dae7629..a453e712f58 100644 --- a/src/icons/biometry/Iris.tsx +++ b/src/icons/biometry/Iris.tsx @@ -9,11 +9,11 @@ export function Iris() { fillRule="evenodd" clipRule="evenodd" d="M24 20.11v-2.696a.61.61 0 1 0-1.219 0v2.695a2.675 2.675 0 0 1-2.672 2.672h-2.695a.61.61 0 0 0 0 1.219h2.695A3.895 3.895 0 0 0 24 20.11ZM7.195 23.39a.61.61 0 0 0-.61-.609H3.892a2.675 2.675 0 0 1-2.672-2.672v-2.695a.61.61 0 1 0-1.219 0v2.695A3.895 3.895 0 0 0 3.89 24h2.696a.61.61 0 0 0 .61-.61ZM1.219 6.586V3.89A2.675 2.675 0 0 1 3.89 1.219h2.695a.61.61 0 0 0 0-1.219H3.89A3.895 3.895 0 0 0 0 3.89v2.696a.61.61 0 0 0 1.219 0ZM24 6.586V3.89A3.895 3.895 0 0 0 20.11 0h-2.696a.61.61 0 1 0 0 1.219h2.695a2.675 2.675 0 0 1 2.672 2.672v2.695a.61.61 0 0 0 1.219 0Z" - fill={Colors.textInverse} + fill={Colors.contentInverse} /> ) diff --git a/src/icons/biometry/TouchID.tsx b/src/icons/biometry/TouchID.tsx index 711c83cc8ef..f471846d1bd 100644 --- a/src/icons/biometry/TouchID.tsx +++ b/src/icons/biometry/TouchID.tsx @@ -7,35 +7,35 @@ export function TouchID() { ) diff --git a/src/images/Star.tsx b/src/images/Star.tsx index ec16600412c..3116ef49912 100644 --- a/src/images/Star.tsx +++ b/src/images/Star.tsx @@ -12,7 +12,7 @@ const Star = () => ( - + diff --git a/src/invite/InviteModal.tsx b/src/invite/InviteModal.tsx index d8c22e6771c..403a179a8b5 100644 --- a/src/invite/InviteModal.tsx +++ b/src/invite/InviteModal.tsx @@ -65,7 +65,7 @@ const InviteModal = ({ } + icon={} iconPositionLeft={false} size={BtnSizes.FULL} text={buttonLabel} @@ -90,7 +90,7 @@ const InviteModal = ({ const styles = StyleSheet.create({ container: { position: 'absolute', - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, paddingHorizontal: Spacing.Thick24, }, contentContainer: { @@ -107,14 +107,14 @@ const styles = StyleSheet.create({ ...typeScale.bodyMedium, textAlign: 'center', marginBottom: Spacing.Large32, - color: colors.textSecondary, + color: colors.contentSecondary, }, helpContainer: { marginBottom: Spacing.Regular16, }, helpText: { ...typeScale.bodyXSmall, - color: colors.textSecondary, + color: colors.contentSecondary, textAlign: 'center', }, helpLink: { diff --git a/src/jumpstart/JumpstartShareLink.tsx b/src/jumpstart/JumpstartShareLink.tsx index cb87c220b58..2da5f5beeb1 100644 --- a/src/jumpstart/JumpstartShareLink.tsx +++ b/src/jumpstart/JumpstartShareLink.tsx @@ -173,7 +173,7 @@ function JumpstartShareLink({ route }: Props) { text={t('jumpstartShareLinkScreen.ctaShare')} onPress={() => nativeShare.execute(JumpstartShareOrigin.MainScreen)} style={styles.button} - icon={} + icon={} iconPositionLeft={false} size={BtnSizes.FULL} /> @@ -181,7 +181,7 @@ function JumpstartShareLink({ route }: Props) { text={t('jumpstartShareLinkScreen.ctaScanQRCode')} onPress={handleShowQRBottomSheet} style={styles.button} - icon={} + icon={} iconPositionLeft={false} size={BtnSizes.FULL} /> @@ -226,7 +226,7 @@ function JumpstartShareLink({ route }: Props) { text={t('jumpstartShareLinkScreen.ctaShare')} onPress={() => nativeShare.execute(JumpstartShareOrigin.QrScreen)} style={styles.button} - icon={} + icon={} iconPositionLeft={false} size={BtnSizes.FULL} /> diff --git a/src/jumpstart/JumpstartTransactionDetailsScreen.tsx b/src/jumpstart/JumpstartTransactionDetailsScreen.tsx index e4bacfc85da..0bea8b726a5 100644 --- a/src/jumpstart/JumpstartTransactionDetailsScreen.tsx +++ b/src/jumpstart/JumpstartTransactionDetailsScreen.tsx @@ -233,7 +233,9 @@ function JumpstartTransactionDetailsScreen({ route }: Props) { text={isClaimed ? t('claimed') : t('reclaim')} size={BtnSizes.FULL} icon={ - isClaimed ? : null + isClaimed ? ( + + ) : null } iconPositionLeft={false} /> @@ -352,7 +354,7 @@ const styles = StyleSheet.create({ }, tokenFiatValueText: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, amountContainer: { backgroundColor: Colors.backgroundSecondary, @@ -406,7 +408,7 @@ const styles = StyleSheet.create({ height: 40, width: 40, borderRadius: 100, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, }, }) diff --git a/src/keylessBackup/EnvelopeIcon.tsx b/src/keylessBackup/EnvelopeIcon.tsx index eb1473023d5..37380b4b8ea 100644 --- a/src/keylessBackup/EnvelopeIcon.tsx +++ b/src/keylessBackup/EnvelopeIcon.tsx @@ -12,7 +12,7 @@ export default function EnvelopeIcon({ style }: Props) { ) diff --git a/src/keylessBackup/LinkPhoneNumber.tsx b/src/keylessBackup/LinkPhoneNumber.tsx index c60dfd1bbc2..dd649047d47 100644 --- a/src/keylessBackup/LinkPhoneNumber.tsx +++ b/src/keylessBackup/LinkPhoneNumber.tsx @@ -25,7 +25,7 @@ export default function LinkPhoneNumber({ navigation }: Props) { navigation.setOptions({ headerLeft: () => , headerStyle: { - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, }, }) }, [navigation]) @@ -77,7 +77,7 @@ export default function LinkPhoneNumber({ navigation }: Props) { const styles = StyleSheet.create({ safeArea: { alignItems: 'center', - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, flexGrow: 1, justifyContent: 'space-between', }, diff --git a/src/keylessBackup/SignInWithEmail.tsx b/src/keylessBackup/SignInWithEmail.tsx index 16198aaab08..9e18c85e8d6 100644 --- a/src/keylessBackup/SignInWithEmail.tsx +++ b/src/keylessBackup/SignInWithEmail.tsx @@ -247,7 +247,7 @@ function SignInWithEmail({ route, navigation }: Props) { text={t('signInWithEmail.google')} size={BtnSizes.FULL} type={BtnTypes.SECONDARY} - icon={} + icon={} iconMargin={10} showLoading={loading === 'google-oauth2'} disabled={!!loading} @@ -258,7 +258,7 @@ function SignInWithEmail({ route, navigation }: Props) { text={t('signInWithEmail.apple')} size={BtnSizes.FULL} type={BtnTypes.SECONDARY} - icon={} + icon={} iconMargin={10} showLoading={loading === 'apple'} disabled={!!loading} diff --git a/src/keylessBackup/SmartphoneIcon.tsx b/src/keylessBackup/SmartphoneIcon.tsx index 9e71153c732..85b974f486b 100644 --- a/src/keylessBackup/SmartphoneIcon.tsx +++ b/src/keylessBackup/SmartphoneIcon.tsx @@ -12,7 +12,7 @@ export default function SvgVectorsmartphone({ style }: Props) { ) diff --git a/src/navigator/Headers.tsx b/src/navigator/Headers.tsx index c493a92de15..f6a13613c7e 100644 --- a/src/navigator/Headers.tsx +++ b/src/navigator/Headers.tsx @@ -36,7 +36,7 @@ export const styles = StyleSheet.create({ maxWidth: Dimensions.get('window').width * 0.6, }, headerSubTitle: { - color: Colors.textSecondary, + color: Colors.contentSecondary, }, header: { alignItems: 'center', @@ -68,7 +68,7 @@ export const nuxNavigationOptions: NativeStackNavigationOptions = { export const nuxNavigationOptionsOnboarding: NativeStackNavigationOptions = { ...nuxNavigationOptions, headerLeft: ({ canGoBack }) => - canGoBack ? : , + canGoBack ? : , } export const nuxNavigationOptionsNoBackButton: NativeStackNavigationOptions = { @@ -85,7 +85,7 @@ export const emptyHeader: NativeStackNavigationOptions = { headerShadowVisible: false, headerTitleAlign: 'center', headerStyle: { - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, }, } @@ -237,7 +237,7 @@ export const tabHeader: NativeStackNavigationOptions = { }, headerLeft: () => ( - + ), } diff --git a/src/navigator/Navigator.tsx b/src/navigator/Navigator.tsx index ac36f1fe08e..0b254771419 100644 --- a/src/navigator/Navigator.tsx +++ b/src/navigator/Navigator.tsx @@ -114,6 +114,7 @@ import ValidateRecipientIntro, { } from 'src/send/ValidateRecipientIntro' import { getFeatureGate } from 'src/statsig' import { StatsigFeatureGates } from 'src/statsig/types' +import styles from 'src/styles/styles' import variables from 'src/styles/variables' import SwapScreen from 'src/swap/SwapScreen' import SwapScreenV2 from 'src/swap/SwapScreenV2' @@ -757,6 +758,8 @@ function RootStackScreen() { // take up the whole screen, it is no longer obvious that they are a bottom // sheet / how to navigate away maxDynamicContentSize: variables.height * 0.9, + backgroundStyle: styles.bottomSheetBackground, + handleIndicatorStyle: styles.bottomSheetHandleIndicator, }} > diff --git a/src/navigator/SettingsMenu.tsx b/src/navigator/SettingsMenu.tsx index 4657bfa8fc7..e7837107bfa 100644 --- a/src/navigator/SettingsMenu.tsx +++ b/src/navigator/SettingsMenu.tsx @@ -111,7 +111,7 @@ function ProfileMenuOption() { {renderContent()} - + ) @@ -167,19 +167,19 @@ export default function SettingsMenu({ route }: Props) { return ( - {`Session ID: ${sessionId}`} + {`Session ID: ${sessionId}`} - {`Statsig Stable ID: ${statsigStableId}`} + {`Statsig Stable ID: ${statsigStableId}`} - See App Assets + See App Assets - App Quick Reset + App Quick Reset @@ -192,7 +192,7 @@ export default function SettingsMenu({ route }: Props) { } + icon={} title={t('address')} onPress={() => navigate(Screens.QRNavigator, { @@ -205,7 +205,7 @@ export default function SettingsMenu({ route }: Props) { borderless /> } + icon={} title={t('invite')} onPress={() => navigate(Screens.Invite)} testID="SettingsMenu/Invite" @@ -224,7 +224,7 @@ export default function SettingsMenu({ route }: Props) { borderless /> } + icon={} title={t('securityPrivacy')} testID="SettingsMenu/Security" onPress={() => navigate(Screens.SecuritySubmenu)} @@ -233,7 +233,7 @@ export default function SettingsMenu({ route }: Props) { /> {walletConnectEnabled && ( } + icon={} title={t('connectedApplications')} testID="SettingsMenu/ConnectedDapps" value={connectedDapps.toString()} @@ -243,7 +243,7 @@ export default function SettingsMenu({ route }: Props) { /> )} } + icon={} title={t('help')} onPress={() => navigate(Screens.Support)} testID="SettingsMenu/Help" @@ -298,7 +298,7 @@ const styles = StyleSheet.create({ }, secondaryProfileLabel: { ...typeScale.bodyMedium, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, appVersionContainer: { flexDirection: 'row', @@ -309,7 +309,7 @@ const styles = StyleSheet.create({ }, appVersionText: { ...typeScale.bodyMedium, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, devSettings: { alignItems: 'flex-start', @@ -323,4 +323,7 @@ const styles = StyleSheet.create({ marginVertical: Spacing.Smallest8, marginHorizontal: Spacing.Regular16, }, + debugInfoText: { + ...typeScale.bodySmall, + }, }) diff --git a/src/navigator/TabNavigator.tsx b/src/navigator/TabNavigator.tsx index e0f867439f0..dd10969afc2 100644 --- a/src/navigator/TabNavigator.tsx +++ b/src/navigator/TabNavigator.tsx @@ -33,13 +33,14 @@ export default function TabNavigator({ route }: Props) { headerShown: true, headerShadowVisible: false, headerTitleAllowFontScaling: false, - tabBarActiveTintColor: Colors.navigationBottom, + tabBarActiveTintColor: Colors.navigationBottomPrimary, tabBarInactiveTintColor: Colors.navigationBottomSecondary, tabBarLabelStyle: styles.label, tabBarItemStyle: styles.tabBarItem, tabBarAllowFontScaling: false, tabBarStyle: { height: variables.height * 0.1, + backgroundColor: Colors.backgroundPrimary, }, ...(tabHeader as NativeStackHeaderProps), }} diff --git a/src/nfts/NftsInfoCarousel.tsx b/src/nfts/NftsInfoCarousel.tsx index ed3c612beea..b8fb1167644 100644 --- a/src/nfts/NftsInfoCarousel.tsx +++ b/src/nfts/NftsInfoCarousel.tsx @@ -230,7 +230,7 @@ export default function NftsInfoCarousel({ route }: Props) { {networkIdToExplorerString[networkId]} - + @@ -257,7 +257,7 @@ const styles = StyleSheet.create({ }, attributeTitle: { ...typeScale.labelSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, attributesContainer: { paddingBottom: Spacing.Thick24, @@ -276,11 +276,11 @@ const styles = StyleSheet.create({ errorImageText: { marginTop: Spacing.Regular16, ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, }, explorerLink: { ...typeScale.labelSmall, - color: colors.success, + color: colors.successPrimary, paddingRight: Spacing.Smallest8, }, explorerLinkContainer: { diff --git a/src/nfts/NftsLoadError.tsx b/src/nfts/NftsLoadError.tsx index 6fc405f4e6c..9e65bd80dea 100644 --- a/src/nfts/NftsLoadError.tsx +++ b/src/nfts/NftsLoadError.tsx @@ -101,7 +101,7 @@ const styles = StyleSheet.create({ subTitle: { ...typeScale.bodyMedium, textAlign: 'center', - color: colors.textSecondary, + color: colors.contentSecondary, }, title: { ...typeScale.titleSmall, diff --git a/src/onboarding/ChooseYourAdventure.tsx b/src/onboarding/ChooseYourAdventure.tsx index e6172618201..f458a9bcffb 100644 --- a/src/onboarding/ChooseYourAdventure.tsx +++ b/src/onboarding/ChooseYourAdventure.tsx @@ -80,7 +80,7 @@ function ChooseYourAdventure() { goToNextScreen: () => { navigateHomeAndThenToScreen(Screens.EarnInfoScreen) }, - icon: , + icon: , name: AdventureCardName.Earn, }, { @@ -96,7 +96,7 @@ function ChooseYourAdventure() { goToNextScreen: () => { navigateHomeAndThenToScreen(Screens.PointsIntro) }, - icon: , + icon: , name: AdventureCardName.LearnPoints, }, ] @@ -196,7 +196,7 @@ const styles = StyleSheet.create({ alignItems: 'center', }, skip: { - color: colors.textPrimary, + color: colors.contentPrimary, }, cardText: { ...typeScale.bodySmall, diff --git a/src/onboarding/registration/ImportSelect.tsx b/src/onboarding/registration/ImportSelect.tsx index 9c1f2d10f62..4f20599bbe4 100644 --- a/src/onboarding/registration/ImportSelect.tsx +++ b/src/onboarding/registration/ImportSelect.tsx @@ -89,7 +89,7 @@ export default function ImportSelect({ navigation }: Props) { } + icon={} onPress={() => navigate(Screens.SignInWithEmail, { keylessBackupFlow: KeylessBackupFlow.Restore, @@ -101,7 +101,7 @@ export default function ImportSelect({ navigation }: Props) { } + icon={} onPress={() => navigate(Screens.ImportWallet, { clean: true })} testID="ImportSelect/Mnemonic" /> @@ -129,11 +129,11 @@ const styles = StyleSheet.create({ }, cardTitle: { ...typeScale.labelMedium, - color: colors.success, + color: colors.successPrimary, flex: 1, }, safeArea: { - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, flex: 1, }, screenDescription: { diff --git a/src/onboarding/registration/RegulatoryTerms.tsx b/src/onboarding/registration/RegulatoryTerms.tsx index 2666b85a229..81174e2234c 100644 --- a/src/onboarding/registration/RegulatoryTerms.tsx +++ b/src/onboarding/registration/RegulatoryTerms.tsx @@ -85,7 +85,7 @@ export class RegulatoryTerms extends React.Component { contentContainerStyle={styles.scrollContent} testID="scrollView" > - + {t('terms.title')} diff --git a/src/onboarding/registration/SelectCountry.tsx b/src/onboarding/registration/SelectCountry.tsx index 63c181498ae..01e91ce6672 100644 --- a/src/onboarding/registration/SelectCountry.tsx +++ b/src/onboarding/registration/SelectCountry.tsx @@ -83,6 +83,6 @@ const styles = StyleSheet.create({ searchInputContainer: { paddingHorizontal: 16, paddingVertical: 16, - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, }, }) diff --git a/src/onboarding/registration/SelectCountryItem.tsx b/src/onboarding/registration/SelectCountryItem.tsx index 1c548ff45c5..e3af988f1e1 100644 --- a/src/onboarding/registration/SelectCountryItem.tsx +++ b/src/onboarding/registration/SelectCountryItem.tsx @@ -54,6 +54,6 @@ const styles = StyleSheet.create({ code: { ...typeScale.bodyMedium, marginRight: 16, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/onboarding/success/OnboardingSuccessScreen.tsx b/src/onboarding/success/OnboardingSuccessScreen.tsx index 8333fad78b6..75bbdb44964 100644 --- a/src/onboarding/success/OnboardingSuccessScreen.tsx +++ b/src/onboarding/success/OnboardingSuccessScreen.tsx @@ -22,7 +22,7 @@ function OnboardingSuccessScreen() { return ( - + {t('success.message')} ) @@ -46,7 +46,7 @@ const styles = StyleSheet.create({ ...typeScale.titleSmall, fontSize: 30, lineHeight: 36, - color: colors.textInverse, + color: colors.contentInverse, marginTop: Spacing.Regular16, marginBottom: 30, shadowOffset: { width: 0, height: 1 }, diff --git a/src/pincode/Pincode.tsx b/src/pincode/Pincode.tsx index 42217f0ad30..2fa34b5d260 100644 --- a/src/pincode/Pincode.tsx +++ b/src/pincode/Pincode.tsx @@ -81,7 +81,7 @@ const styles = StyleSheet.create({ }, error: { ...typeScale.labelMedium, - color: colors.error, + color: colors.errorPrimary, textAlign: 'center', marginBottom: Spacing.Thick24, }, diff --git a/src/pincode/PincodeDisplay.tsx b/src/pincode/PincodeDisplay.tsx index 2d822e73b6e..ef5ed4ba26f 100644 --- a/src/pincode/PincodeDisplay.tsx +++ b/src/pincode/PincodeDisplay.tsx @@ -84,9 +84,9 @@ const styles = StyleSheet.create({ height: DOT_SIZE, borderRadius: DOT_SIZE / 2, borderWidth: 1, - borderColor: colors.textPrimary, + borderColor: colors.contentPrimary, }, dotFilled: { - backgroundColor: colors.textPrimary, + backgroundColor: colors.contentPrimary, }, }) diff --git a/src/pincode/PincodeLock.tsx b/src/pincode/PincodeLock.tsx index 19dbfe78baa..49ce12f72d1 100644 --- a/src/pincode/PincodeLock.tsx +++ b/src/pincode/PincodeLock.tsx @@ -96,7 +96,7 @@ const styles = StyleSheet.create({ container: { paddingTop: 20, flex: 1, - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, }, loadingContainer: { flex: 1, diff --git a/src/pincode/PincodeSet.tsx b/src/pincode/PincodeSet.tsx index a8ad4102051..1e06eb3f791 100644 --- a/src/pincode/PincodeSet.tsx +++ b/src/pincode/PincodeSet.tsx @@ -268,7 +268,7 @@ const styles = StyleSheet.create({ }, changePinContainer: { flex: 1, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, justifyContent: 'space-between', }, }) diff --git a/src/points/ActivityCard.tsx b/src/points/ActivityCard.tsx index 4ef7b0dc555..a7ff76e65b1 100644 --- a/src/points/ActivityCard.tsx +++ b/src/points/ActivityCard.tsx @@ -95,7 +95,7 @@ const styles = StyleSheet.create({ }, previousPointsAmount: { ...typeScale.labelXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, textDecorationLine: 'line-through', }, }) diff --git a/src/points/ActivityCardSection.tsx b/src/points/ActivityCardSection.tsx index 3cf94b89631..808ba03f168 100644 --- a/src/points/ActivityCardSection.tsx +++ b/src/points/ActivityCardSection.tsx @@ -54,7 +54,7 @@ export default function ActivityCardSection({ pointsActivities, onCardPress }: P return { ...activity, title: t('points.activityCards.createLiveLink.title'), - icon: , + icon: , onPress: () => onCardPress({ ...activity, @@ -74,7 +74,7 @@ export default function ActivityCardSection({ pointsActivities, onCardPress }: P return { ...activity, title: t('points.activityCards.depositEarn.title'), - icon: , + icon: , onPress: () => onCardPress({ ...activity, @@ -141,7 +141,7 @@ const styles = StyleSheet.create({ }, body: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginTop: Spacing.Tiny4, }, }) diff --git a/src/points/PointsDiscoverCard.tsx b/src/points/PointsDiscoverCard.tsx index a4594a47d95..dff8a98dcb0 100644 --- a/src/points/PointsDiscoverCard.tsx +++ b/src/points/PointsDiscoverCard.tsx @@ -58,7 +58,7 @@ export default function PointsDiscoverCard() { {t('points.discoverCard.title')} {t('points.discoverCard.description')} - + {t('points.history.error.title')} {t('points.history.error.subtitle')} @@ -188,7 +188,7 @@ function PointsHistoryBottomSheet({ forwardedRef }: Props) { ctaLabel={t('points.history.pageError.refresh')} onPressCta={() => onPressTryAgain(true)} style={styles.errorNotification} - customIcon={} + customIcon={} testID={'PointsHistoryBottomSheet/ErrorBanner'} /> @@ -249,11 +249,11 @@ const styles = StyleSheet.create({ }, cardSubtitle: { ...typeScale.labelSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, cardPointsAmount: { ...typeScale.labelMedium, - color: colors.success, + color: colors.successPrimary, }, cardPointsAmountContainer: { flexDirection: 'row', diff --git a/src/points/PointsHome.tsx b/src/points/PointsHome.tsx index b7c8efbb8de..77ee16d4906 100644 --- a/src/points/PointsHome.tsx +++ b/src/points/PointsHome.tsx @@ -124,7 +124,7 @@ export default function PointsHome({ route, navigation }: Props) { {pointsConfigStatus === 'error' && ( - + {t('points.error.title')} {t('points.error.description')} - + ), title: t('points.history.cards.createWallet.title'), @@ -83,7 +83,7 @@ export function useGetHistoryDefinition(): ( return { icon: ( - + ), title: t('points.history.cards.swap.title'), @@ -121,7 +121,7 @@ export function useGetHistoryDefinition(): ( icon: ( - + ), diff --git a/src/positions/HooksPreviewModeBanner.tsx b/src/positions/HooksPreviewModeBanner.tsx index b974f15e38d..d0159dfab47 100644 --- a/src/positions/HooksPreviewModeBanner.tsx +++ b/src/positions/HooksPreviewModeBanner.tsx @@ -18,7 +18,7 @@ const STATUS_COLORS = { idle: colors.inactive, loading: colors.inactive, success: colors.accent, - error: colors.error, + error: colors.errorPrimary, } export default function HooksPreviewModeBanner() { @@ -58,11 +58,11 @@ const styles = StyleSheet.create({ top: -10, left: 0, right: 0, - backgroundColor: colors.warning, + backgroundColor: colors.warningPrimary, }, text: { ...typeScale.labelXSmall, - color: colors.textInverse, + color: colors.contentInverse, textAlign: 'center', paddingHorizontal: 10, }, diff --git a/src/priceHistory/PriceHistoryChart.tsx b/src/priceHistory/PriceHistoryChart.tsx index b4520cdd080..506e8bf798b 100644 --- a/src/priceHistory/PriceHistoryChart.tsx +++ b/src/priceHistory/PriceHistoryChart.tsx @@ -81,7 +81,7 @@ function ChartAwareSvgText({ /* // @ts-ignore */ onLayout={onLayout} - fill={colors.textSecondary} + fill={colors.contentSecondary} fontSize="14" fontFamily="Inter-Regular" x={adjustedX} @@ -211,7 +211,7 @@ export default function PriceHistoryChart({ containerStyle, testID, chartPadding, - color = colors.textPrimary, + color = colors.contentPrimary, step = CHART_STEP_IN_HOURS, }: PriceHistoryChartProps) { const dispatch = useDispatch() @@ -320,7 +320,7 @@ const styles = StyleSheet.create({ justifyContent: 'center', }, timeframe: { - color: colors.textSecondary, + color: colors.contentSecondary, fontSize: 16, flexGrow: 1, }, diff --git a/src/qrcode/NotAuthorizedView.tsx b/src/qrcode/NotAuthorizedView.tsx index 105174c662b..dcfd0d642d4 100644 --- a/src/qrcode/NotAuthorizedView.tsx +++ b/src/qrcode/NotAuthorizedView.tsx @@ -36,11 +36,11 @@ const styles = StyleSheet.create({ title: { ...typeScale.titleSmall, marginBottom: 8, - color: colors.textInverse, + color: colors.contentInverse, }, description: { ...typeScale.bodyMedium, - color: colors.textInverse, + color: colors.contentInverse, textAlign: 'center', marginBottom: 16, }, diff --git a/src/qrcode/QRCode.tsx b/src/qrcode/QRCode.tsx index 87a8c99f38f..4a6776e758d 100644 --- a/src/qrcode/QRCode.tsx +++ b/src/qrcode/QRCode.tsx @@ -99,7 +99,7 @@ export default function QRCodeDisplay(props: Props) { } + icon={} iconMargin={12} iconPositionLeft={false} testID="copyButton" @@ -157,7 +157,7 @@ const styles = StyleSheet.create({ flex: 1, flexDirection: 'column', alignItems: 'center', - backgroundColor: colors.background, + backgroundColor: colors.backgroundPrimary, }, link: { ...typeScale.labelSemiBoldMedium, @@ -176,14 +176,14 @@ const styles = StyleSheet.create({ }, address: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, marginHorizontal: variables.width / 5, marginBottom: 8, textAlign: 'center', }, exchangeText: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, textAlign: 'center', }, }) diff --git a/src/qrcode/QRScanner.tsx b/src/qrcode/QRScanner.tsx index 5c223ce0787..4be1a7484e1 100644 --- a/src/qrcode/QRScanner.tsx +++ b/src/qrcode/QRScanner.tsx @@ -29,7 +29,7 @@ const SeeThroughOverlay = () => { - + { @@ -87,7 +87,7 @@ export default function QRTabBar({ testID="HeaderTitle" style={{ ...styles.headerTitle, - color: state.index === 0 ? colors.textPrimary : colors.textInverse, + color: state.index === 0 ? colors.contentPrimary : colors.contentInverse, }} numberOfLines={1} allowFontScaling={false} @@ -100,7 +100,7 @@ export default function QRTabBar({ style={[styles.rightContainer, { opacity: shareOpacity }]} pointerEvents={state.index > 0 ? 'none' : undefined} > - } onPress={onPressShare} /> + } onPress={onPressShare} /> ) diff --git a/src/qrcode/StyledQRGen.tsx b/src/qrcode/StyledQRGen.tsx index 47d682020cf..3e093fc2be8 100644 --- a/src/qrcode/StyledQRGen.tsx +++ b/src/qrcode/StyledQRGen.tsx @@ -1,6 +1,7 @@ -import QRCode from 'react-native-qrcode-svg' import React from 'react' +import QRCode from 'react-native-qrcode-svg' import { SVG } from 'src/send/actions' +import Colors from 'src/styles/colors' function StyledQRCode({ value, @@ -11,7 +12,15 @@ function StyledQRCode({ size: number svgRef: React.MutableRefObject }) { - return (svgRef.current = ref)} /> + return ( + (svgRef.current = ref)} + backgroundColor="transparent" + color={Colors.contentPrimary} + /> + ) } export default React.memo(StyledQRCode) diff --git a/src/recipients/RecipientItemV2.tsx b/src/recipients/RecipientItemV2.tsx index f50111e09f1..d7fa4428563 100644 --- a/src/recipients/RecipientItemV2.tsx +++ b/src/recipients/RecipientItemV2.tsx @@ -58,13 +58,13 @@ function RecipientItem({ recipient, onSelectRecipient, loading, selected }: Prop style={styles.avatar} recipient={recipient} backgroundColor={Colors.backgroundSecondary} - foregroundColor={Colors.textPrimary} + foregroundColor={Colors.contentPrimary} borderColor={Colors.border} DefaultIcon={() => renderDefaultIcon(recipient)} // no need to honor color props here since the color we need match the defaults /> {!!showAppIcon && ( + return } else { - return + return } } @@ -118,7 +118,7 @@ const styles = StyleSheet.create({ name: { ...typeScale.labelMedium }, phone: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, rightIconContainer: { justifyContent: 'center', diff --git a/src/recipients/RecipientPickerV2.tsx b/src/recipients/RecipientPickerV2.tsx index 6e048d15f7f..1056cbfe19c 100644 --- a/src/recipients/RecipientPickerV2.tsx +++ b/src/recipients/RecipientPickerV2.tsx @@ -54,7 +54,7 @@ const styles = StyleSheet.create({ ...typeScale.labelSmall, marginBottom: Spacing.Smallest8, marginHorizontal: Spacing.Regular16, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, }) diff --git a/src/send/EnterAmount.tsx b/src/send/EnterAmount.tsx index bc4e1021915..5b4db55dbf0 100644 --- a/src/send/EnterAmount.tsx +++ b/src/send/EnterAmount.tsx @@ -234,7 +234,7 @@ export default function EnterAmount({ @@ -377,7 +377,7 @@ const styles = StyleSheet.create({ }, feeValue: { ...typeScale.bodyMedium, - color: Colors.textSecondary, + color: Colors.contentSecondary, flexWrap: 'wrap', textAlign: 'right', }, diff --git a/src/send/EnterAmountOptions.tsx b/src/send/EnterAmountOptions.tsx index 4434f06efe5..aab5e06f426 100644 --- a/src/send/EnterAmountOptions.tsx +++ b/src/send/EnterAmountOptions.tsx @@ -111,7 +111,10 @@ export default function EnterAmountOptions({ {label} @@ -149,7 +152,7 @@ const styles = StyleSheet.create({ chip: { borderWidth: 1, borderRadius: 100, - borderColor: Colors.textPrimary, + borderColor: Colors.contentPrimary, paddingVertical: Spacing.Smallest8, paddingHorizontal: Spacing.Regular16, }, diff --git a/src/send/PasteAddressButton.tsx b/src/send/PasteAddressButton.tsx index 70622994fcd..b60cc5bd8a3 100644 --- a/src/send/PasteAddressButton.tsx +++ b/src/send/PasteAddressButton.tsx @@ -70,7 +70,7 @@ const styles = StyleSheet.create({ }, address: { ...typeScale.bodyXSmall, - color: colors.textSecondary, + color: colors.contentSecondary, flexWrap: 'wrap', flexShrink: 1, maxWidth: '100%', diff --git a/src/send/SelectRecipientButtons.tsx b/src/send/SelectRecipientButtons.tsx index 7269820e1c0..ca520cd42b7 100644 --- a/src/send/SelectRecipientButtons.tsx +++ b/src/send/SelectRecipientButtons.tsx @@ -166,7 +166,7 @@ export default function SelectRecipientButtons({ title={t('sendSelectRecipient.jumpstart.title')} subtitle={t('sendSelectRecipient.jumpstart.subtitle')} onPress={onPressJumpstart} - icon={} + icon={} gradientBackground /> )} diff --git a/src/send/SendConfirmation.tsx b/src/send/SendConfirmation.tsx index c49310fe85b..6447ee98e42 100644 --- a/src/send/SendConfirmation.tsx +++ b/src/send/SendConfirmation.tsx @@ -263,7 +263,7 @@ const styles = StyleSheet.create({ }, headerText: { ...typeScale.labelMedium, - color: colors.textSecondary, + color: colors.contentSecondary, }, displayName: { ...typeScale.labelMedium, @@ -273,7 +273,7 @@ const styles = StyleSheet.create({ }, address: { ...typeScale.labelSmall, - color: colors.textSecondary, + color: colors.contentSecondary, paddingRight: 4, }, amount: { @@ -282,7 +282,7 @@ const styles = StyleSheet.create({ }, amountSubscript: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, paddingBottom: 16, }, subHeading: { @@ -290,7 +290,7 @@ const styles = StyleSheet.create({ }, subHeadingText: { ...typeScale.labelSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/send/SendSelectRecipient.tsx b/src/send/SendSelectRecipient.tsx index c7e1bfb4c17..051f7e25b63 100644 --- a/src/send/SendSelectRecipient.tsx +++ b/src/send/SendSelectRecipient.tsx @@ -62,7 +62,7 @@ function GetStartedSection() { {optionNum} @@ -113,7 +113,7 @@ const getStartedStyles = StyleSheet.create({ }, subtitle: { ...typeScale.labelXXSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, title: { ...typeScale.labelMedium, @@ -138,7 +138,7 @@ const getStartedStyles = StyleSheet.create({ }, optionSubtitle: { ...typeScale.bodyXSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) @@ -433,7 +433,7 @@ const styles = StyleSheet.create({ }, searchResultsHeader: { ...typeScale.labelXSmall, - color: colors.textSecondary, + color: colors.contentSecondary, paddingHorizontal: Spacing.Regular16, paddingVertical: Spacing.Smallest8, }, @@ -444,12 +444,12 @@ const styles = StyleSheet.create({ }, noResultsTitle: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, textAlign: 'center', }, noResultsSubtitle: { ...typeScale.labelXSmall, - color: colors.textSecondary, + color: colors.contentSecondary, justifyContent: 'center', padding: Spacing.Regular16, textAlign: 'center', diff --git a/src/send/SendSelectRecipientSearchInput.tsx b/src/send/SendSelectRecipientSearchInput.tsx index 1afe66eff69..12644c90165 100644 --- a/src/send/SendSelectRecipientSearchInput.tsx +++ b/src/send/SendSelectRecipientSearchInput.tsx @@ -60,6 +60,6 @@ const styles = StyleSheet.create({ }, label: { ...typeScale.labelSemiBoldSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/send/ValidateRecipientAccount.tsx b/src/send/ValidateRecipientAccount.tsx index 73246fc7b90..cc429da6459 100644 --- a/src/send/ValidateRecipientAccount.tsx +++ b/src/send/ValidateRecipientAccount.tsx @@ -350,7 +350,7 @@ const styles = StyleSheet.create({ modalBody2: { ...typeScale.bodySmall, textAlign: 'center', - color: colors.textSecondary, + color: colors.contentSecondary, paddingVertical: 16, paddingTop: 16, }, @@ -365,7 +365,7 @@ const styles = StyleSheet.create({ }, menuText: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, paddingHorizontal: 8, }, addressContainer: { diff --git a/src/send/__snapshots__/ValidateRecipientAccount.test.tsx.snap b/src/send/__snapshots__/ValidateRecipientAccount.test.tsx.snap index 0ccdc6969b9..bc8a37313cd 100644 --- a/src/send/__snapshots__/ValidateRecipientAccount.test.tsx.snap +++ b/src/send/__snapshots__/ValidateRecipientAccount.test.tsx.snap @@ -97,6 +97,7 @@ exports[`ValidateRecipientAccount renders correctly when full validation require onChangeText={[Function]} onFocus={[Function]} placeholder="0xf1b1d5a6e7728g309c4a025k122d71ad75a61976" + selectionColor="#757575" shouldShowClipboard={[Function]} style={ [ @@ -414,6 +415,7 @@ exports[`ValidateRecipientAccount renders correctly when partial validation requ onChangeText={[Function]} onFocus={[Function]} placeholder="a" + selectionColor="#757575" style={ [ { @@ -474,6 +476,7 @@ exports[`ValidateRecipientAccount renders correctly when partial validation requ onChangeText={[Function]} onFocus={[Function]} placeholder="0" + selectionColor="#757575" style={ [ { @@ -534,6 +537,7 @@ exports[`ValidateRecipientAccount renders correctly when partial validation requ onChangeText={[Function]} onFocus={[Function]} placeholder="F" + selectionColor="#757575" style={ [ { @@ -594,6 +598,7 @@ exports[`ValidateRecipientAccount renders correctly when partial validation requ onChangeText={[Function]} onFocus={[Function]} placeholder="4" + selectionColor="#757575" style={ [ { diff --git a/src/shared/DisconnectBanner.tsx b/src/shared/DisconnectBanner.tsx index f29bef57350..fbac14dc8af 100644 --- a/src/shared/DisconnectBanner.tsx +++ b/src/shared/DisconnectBanner.tsx @@ -69,10 +69,10 @@ const styles = StyleSheet.create({ lineHeight: undefined, }, textGrey: { - color: colors.textSecondary, + color: colors.contentSecondary, }, textRed: { - color: colors.error, + color: colors.errorPrimary, }, }) diff --git a/src/styles/appTheme.ts b/src/styles/appTheme.ts index f0088f2bdf4..c27aba0e75c 100644 --- a/src/styles/appTheme.ts +++ b/src/styles/appTheme.ts @@ -6,7 +6,7 @@ const appTheme = { ...DefaultTheme, colors: { ...DefaultTheme.colors, - background: colors.background, + background: colors.backgroundPrimary, }, } diff --git a/src/styles/colors.tsx b/src/styles/colors.tsx index bc2d0b5273e..28e9b3f8c3e 100644 --- a/src/styles/colors.tsx +++ b/src/styles/colors.tsx @@ -2,51 +2,52 @@ // from https://www.figma.com/design/erFfzHvSTm5g1sjK6jWyEH/Working-Design-System?node-id=2100-4881&node-type=frame&t=vKGGXrs3Torz7kFE-0 enum Colors { // backgrounds - background = '#FFFFFF', // primary background - backgroundInverse = '#2E3338', // inverse background (e.g. high contrast to primary) - backgroundSecondary = '#F8F9F9', // secondary background (e.g. cards, input fields) - backgroundTertiary = '#E6E6E6', // tertiary background (e.g. used on top of secondary background) + backgroundPrimary = '#FFFFFF', // Main background color for the app, used for primary surfaces (screens, navigation). + backgroundInverse = '#2E3338', // High-contrast background color for the app. + backgroundSecondary = '#F8F9F9', // Subtle contrast background for secondary surfaces like cards, panels, or inputs. + backgroundTertiary = '#E6E6E6', // Low-emphasis background for subtle supporting areas, typically used when both primary and secondary backgrounds are present, and an additional layer of distinction is needed. - // text - textPrimary = '#2E3338', // text on primary background - textSecondary = '#757575', // supporting, placeholder, or less important text - textInverse = '#FFFFFF', // text on inverse background + // text, icons, and other content + contentPrimary = '#2E3338', // main content on primary background + contentSecondary = '#757575', // supporting context on primary background + contentInverse = '#FFFFFF', // content on inverse backgrounds + textLink = '#757575', // underlined text links on primary background - // borders, shadows, highlights - shadow = '#2E3338', + // borders, shadows, highlights, visual effects + border = '#E6E6E6', + shadow = '#2E3338', // shadow base color softShadow = 'rgba(156, 164, 169, 0.4)', lightShadow = 'rgba(48, 46, 37, 0.15)', barShadow = 'rgba(129, 134, 139, 0.5)', - skeletonPlaceholderHighlight = '#FFFFFF', - skeletonPlaceholderBackground = '#E6E6E6', - border = '#E6E6E6', + skeletonPlaceholderHighlight = '#FFFFFF', // animated highlight color on skeleton loaders + skeletonPlaceholderBackground = '#E6E6E6', // background color on skeleton loaders loadingIndicator = '#1AB775', // spinner or loading indicator // interactive elements - navigationTop = '#2E3338', - navigationTopSecondary = '#757575', - navigationBottom = '#2E3338', - navigationBottomSecondary = '#757575', - buttonPrimary = '#2E3338', - buttonSecondary = '#F8F9F9', - accent = '#1AB775', - textLink = '#757575', // similar to secondary text but for interactive links - bottomSheetHandle = '#E6E6E6', + navigationTopPrimary = '#2E3338', // color for text and icons on top navigation + navigationTopSecondary = '#757575', // secondary color for text and icons on top navigation + navigationBottomPrimary = '#2E3338', // color for text and icons on bottom navigation + navigationBottomSecondary = '#757575', // secondary color for text and icons on bottom navigation + bottomSheetHandle = '#757575', // color for bottom sheet handle + buttonPrimary = '#2E3338', // Primary button background, used for high-priority actions. + buttonSecondary = '#F8F9F9', // Secondary button background, for less emphasized actions or alternative options. + buttonTertiary = '#FFFFFF', // Tertiary button background, typically used for minimal or low-emphasis actions. - // states - disabled = '#E6E6E6', - inactive = '#757575', // disabled, inactive, or placeholder - info = '#F8F9F9', // neutral or informative - success = '#137211', - successSecondary = '#F1FDF1', - warning = '#9C6E00', - warningSecondary = '#FFF9EA', - error = '#C93717', - errorSecondary = '#FBF2F0', + // statuses and UI feedback colors + disabled = '#E6E6E6', // Used for disabled elements that are non-interactive or visually de-emphasized. + inactive = '#757575', // Represents inactive or placeholder elements, often less prominent but still visible. + info = '#F8F9F9', // Background for neutral or informational states, typically non-critical. + successPrimary = '#137211', // Indicates successful actions or positive states, often used for icons or highlights. + successSecondary = '#F1FDF1', // Subtle background for success states, such as notifications or banners. + warningPrimary = '#9C6E00', // Highlights warning states, used to draw attention to cautionary information. + warningSecondary = '#FFF9EA', // Subtle background for warning states, providing gentle emphasis without overpowering. + errorPrimary = '#C93717', // Represents error or failure states, used for critical feedback or alerts. + errorSecondary = '#FBF2F0', // Subtle background for error states, providing softer emphasis in contexts like modals or notifications. - // brand - gradientBorderLeft = '#26d98a', - gradientBorderRight = '#ffd52c', + // brand colors for decorative elements + accent = '#1AB775', // Accent color for emphasizing key elements, such as highlights, icons, or decorative details. + brandGradientLeft = '#26d98a', // Starting color for the brand gradient, used in backgrounds or borders to reinforce brand identity. + brandGradientRight = '#ffd52c', // Ending color for the brand gradient, used in backgrounds or borders to reinforce brand identity. } export default Colors diff --git a/src/styles/fonts.tsx b/src/styles/fonts.tsx index f89324c7205..3cdfb682e31 100644 --- a/src/styles/fonts.tsx +++ b/src/styles/fonts.tsx @@ -17,127 +17,127 @@ export const typeScale = StyleSheet.create({ fontSize: 80, lineHeight: 80, letterSpacing: -2.4, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, displayMedium: { fontFamily: Inter.Bold, fontSize: 56, lineHeight: 64, letterSpacing: -1.12, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, displaySmall: { fontFamily: Inter.Bold, fontSize: 40, lineHeight: 48, letterSpacing: -0.8, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, titleLarge: { fontFamily: Inter.Bold, fontSize: 32, lineHeight: 40, letterSpacing: -0.32, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, titleMedium: { fontFamily: Inter.Bold, fontSize: 24, lineHeight: 32, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, titleSmall: { fontFamily: Inter.Bold, fontSize: 20, lineHeight: 28, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelSemiBoldLarge: { fontFamily: Inter.SemiBold, fontSize: 18, lineHeight: 28, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelSemiBoldMedium: { fontFamily: Inter.SemiBold, fontSize: 16, lineHeight: 24, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelSemiBoldSmall: { fontFamily: Inter.SemiBold, fontSize: 14, lineHeight: 20, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelSemiBoldXSmall: { fontFamily: Inter.SemiBold, fontSize: 12, lineHeight: 16, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelLarge: { fontFamily: Inter.Medium, fontSize: 18, lineHeight: 28, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelMedium: { fontFamily: Inter.Medium, fontSize: 16, lineHeight: 24, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelSmall: { fontFamily: Inter.Medium, fontSize: 14, lineHeight: 20, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelXSmall: { fontFamily: Inter.Medium, fontSize: 12, lineHeight: 16, letterSpacing: 0.12, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, labelXXSmall: { fontFamily: Inter.Medium, fontSize: 10, lineHeight: 12, letterSpacing: 0.2, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, bodyLarge: { fontFamily: Inter.Regular, fontSize: 18, lineHeight: 28, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, bodyMedium: { fontFamily: Inter.Regular, fontSize: 16, lineHeight: 24, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, bodySmall: { fontFamily: Inter.Regular, fontSize: 14, lineHeight: 20, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, bodyXSmall: { fontFamily: Inter.Regular, fontSize: 12, lineHeight: 16, letterSpacing: 0.12, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, bodyXXSmall: { fontFamily: Inter.Regular, fontSize: 10, lineHeight: 12, letterSpacing: 0.2, - color: Colors.textPrimary, + color: Colors.contentPrimary, }, }) diff --git a/src/styles/styles.ts b/src/styles/styles.ts index 96add7c471b..737478a63cf 100644 --- a/src/styles/styles.ts +++ b/src/styles/styles.ts @@ -62,6 +62,13 @@ const styles = StyleSheet.create({ shadowRadius: 1.5, shadowColor: Colors.barShadow, }, + bottomSheetHandleIndicator: { + backgroundColor: Colors.bottomSheetHandle, + width: 40, + }, + bottomSheetBackground: { + backgroundColor: Colors.backgroundPrimary, + }, }) export default styles diff --git a/src/swap/FeeInfoBottomSheet.tsx b/src/swap/FeeInfoBottomSheet.tsx index dfc5e5d399b..24f610b6cbf 100644 --- a/src/swap/FeeInfoBottomSheet.tsx +++ b/src/swap/FeeInfoBottomSheet.tsx @@ -180,7 +180,7 @@ const styles = StyleSheet.create({ }, infoText: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, moreInfoContainer: { marginTop: Spacing.Large32, diff --git a/src/swap/SwapAmountInput.tsx b/src/swap/SwapAmountInput.tsx index 923956b535d..c686e17525d 100644 --- a/src/swap/SwapAmountInput.tsx +++ b/src/swap/SwapAmountInput.tsx @@ -94,7 +94,7 @@ const SwapAmountInput = ({ ) : ( {buttonPlaceholder} )} - + {token && ( @@ -189,7 +189,7 @@ const styles = StyleSheet.create({ flex: 1, }, inputError: { - color: Colors.error, + color: Colors.errorPrimary, }, inputText: { ...typeScale.titleSmall, @@ -210,7 +210,7 @@ const styles = StyleSheet.create({ }, tokenNetwork: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, paddingHorizontal: 4, }, tokenInfoText: { @@ -219,13 +219,13 @@ const styles = StyleSheet.create({ tokenNamePlaceholder: { ...typeScale.labelMedium, paddingHorizontal: 4, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, fiatValue: { ...typeScale.bodyXSmall, paddingLeft: Spacing.Smallest8, maxWidth: '40%', - color: Colors.textSecondary, + color: Colors.contentSecondary, paddingVertical: Spacing.Smallest8, }, }) diff --git a/src/swap/SwapScreen.tsx b/src/swap/SwapScreen.tsx index 902fd493564..dd69f7acfe3 100644 --- a/src/swap/SwapScreen.tsx +++ b/src/swap/SwapScreen.tsx @@ -811,8 +811,8 @@ export function SwapScreen({ route }: Props) { onPress={handleSwitchTokens} testID="SwapScreen/SwitchTokens" > - - + + @@ -830,7 +830,7 @@ export function SwapScreen({ route }: Props) { {showCrossChainSwapNotification && ( - + {t('swapScreen.crossChainNotification')} @@ -1124,7 +1124,7 @@ const styles = StyleSheet.create({ ...typeScale.labelXXSmall, paddingBottom: Spacing.Smallest8, flexWrap: 'wrap', - color: colors.textSecondary, + color: colors.contentSecondary, textAlign: 'center', }, disclaimerLink: { @@ -1155,7 +1155,7 @@ const styles = StyleSheet.create({ crossChainNotification: { ...typeScale.labelXSmall, paddingLeft: Spacing.Tiny4, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/swap/SwapScreenV2.tsx b/src/swap/SwapScreenV2.tsx index b4d7ac64246..faa1a609dad 100644 --- a/src/swap/SwapScreenV2.tsx +++ b/src/swap/SwapScreenV2.tsx @@ -719,8 +719,8 @@ export default function SwapScreenV2({ route }: Props) { onPress={handleSwitchTokens} testID="SwapScreen/SwitchTokens" > - - + + @@ -739,7 +739,7 @@ export default function SwapScreenV2({ route }: Props) { {showCrossChainSwapNotification && ( - + {t('swapScreen.crossChainNotification')} @@ -1070,7 +1070,7 @@ const styles = StyleSheet.create({ ...typeScale.labelXXSmall, paddingBottom: Spacing.Smallest8, flexWrap: 'wrap', - color: colors.textSecondary, + color: colors.contentSecondary, textAlign: 'center', }, disclaimerLink: { @@ -1101,6 +1101,6 @@ const styles = StyleSheet.create({ crossChainNotification: { ...typeScale.labelXSmall, paddingLeft: Spacing.Tiny4, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/swap/SwapTransactionDetails.tsx b/src/swap/SwapTransactionDetails.tsx index dc75bcb471a..27ef50fbf11 100644 --- a/src/swap/SwapTransactionDetails.tsx +++ b/src/swap/SwapTransactionDetails.tsx @@ -107,7 +107,7 @@ function LabelWithInfo({ <> {label} - + > ) @@ -268,7 +268,7 @@ const styles = StyleSheet.create({ }, label: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, marginRight: Spacing.Tiny4, }, loaderContainer: { diff --git a/src/tokens/AssetList.tsx b/src/tokens/AssetList.tsx index f64f71a8305..c4daf3cf25d 100644 --- a/src/tokens/AssetList.tsx +++ b/src/tokens/AssetList.tsx @@ -324,7 +324,7 @@ function ImportTokensItem() { > - + {t('assets.importTokens')} @@ -370,7 +370,7 @@ const styles = StyleSheet.create({ }, noNftsText: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, textAlign: 'center', }, noNftsTextContainer: { diff --git a/src/tokens/AssetTabBar.test.tsx b/src/tokens/AssetTabBar.test.tsx index 16ba63a526b..5c9c3ee6666 100644 --- a/src/tokens/AssetTabBar.test.tsx +++ b/src/tokens/AssetTabBar.test.tsx @@ -21,11 +21,11 @@ describe('AssetTabBar', () => { const tabItems = getAllByTestId('Assets/TabBarItem') expect(tabItems).toHaveLength(3) expect(tabItems[0]).toHaveTextContent('tokens') - expect(tabItems[0].children[0]).toHaveStyle({ color: Colors.textPrimary }) + expect(tabItems[0].children[0]).toHaveStyle({ color: Colors.contentPrimary }) expect(tabItems[1]).toHaveTextContent('collectibles') - expect(tabItems[1].children[0]).toHaveStyle({ color: Colors.textSecondary }) + expect(tabItems[1].children[0]).toHaveStyle({ color: Colors.contentSecondary }) expect(tabItems[2]).toHaveTextContent('dappPositions') - expect(tabItems[2].children[0]).toHaveStyle({ color: Colors.textSecondary }) + expect(tabItems[2].children[0]).toHaveStyle({ color: Colors.contentSecondary }) }) it('does not render positions if disabled', () => { @@ -40,9 +40,9 @@ describe('AssetTabBar', () => { const tabItems = getAllByTestId('Assets/TabBarItem') expect(tabItems).toHaveLength(2) expect(tabItems[0]).toHaveTextContent('tokens') - expect(tabItems[0].children[0]).toHaveStyle({ color: Colors.textSecondary }) + expect(tabItems[0].children[0]).toHaveStyle({ color: Colors.contentSecondary }) expect(tabItems[1]).toHaveTextContent('collectibles') - expect(tabItems[1].children[0]).toHaveStyle({ color: Colors.textPrimary }) + expect(tabItems[1].children[0]).toHaveStyle({ color: Colors.contentPrimary }) }) it.each([ diff --git a/src/tokens/AssetTabBar.tsx b/src/tokens/AssetTabBar.tsx index 9a8d1013886..39762e6fbad 100644 --- a/src/tokens/AssetTabBar.tsx +++ b/src/tokens/AssetTabBar.tsx @@ -86,7 +86,7 @@ const styles = StyleSheet.create({ }, item: { ...typeScale.bodyMedium, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, itemSelected: { ...typeScale.labelMedium, diff --git a/src/tokens/PositionItem.tsx b/src/tokens/PositionItem.tsx index 648d48fe2fe..419c562027d 100644 --- a/src/tokens/PositionItem.tsx +++ b/src/tokens/PositionItem.tsx @@ -123,7 +123,7 @@ const styles = StyleSheet.create({ }, subtext: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, tokenAmt: { ...typeScale.labelSemiBoldLarge, diff --git a/src/tokens/TabWallet.tsx b/src/tokens/TabWallet.tsx index 709bcc3edb1..3ce6b6e504b 100644 --- a/src/tokens/TabWallet.tsx +++ b/src/tokens/TabWallet.tsx @@ -202,7 +202,7 @@ const styles = StyleSheet.create({ ...getShadowStyle(Shadow.SoftLight), paddingBottom: Spacing.Regular16, paddingHorizontal: Spacing.Regular16, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, position: 'absolute', width: '100%', zIndex: 1, @@ -212,7 +212,7 @@ const styles = StyleSheet.create({ paddingBottom: Spacing.Thick24, }, footerContainer: { - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, position: 'absolute', bottom: 0, left: 10, // so the scroll bar is still visible diff --git a/src/tokens/TokenBalanceItem.tsx b/src/tokens/TokenBalanceItem.tsx index fc6c8a1a9fd..2f49182f51b 100644 --- a/src/tokens/TokenBalanceItem.tsx +++ b/src/tokens/TokenBalanceItem.tsx @@ -111,7 +111,7 @@ const styles = StyleSheet.create({ }, subAmount: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, label: { ...typeScale.labelMedium, @@ -123,11 +123,11 @@ const styles = StyleSheet.create({ ...typeScale.bodySmall, overflow: 'hidden', flexShrink: 1, - color: colors.textSecondary, + color: colors.contentSecondary, }, bridgeLabel: { ...typeScale.labelSmall, - color: colors.textSecondary, + color: colors.contentSecondary, overflow: 'hidden', flexShrink: 1, }, diff --git a/src/tokens/TokenDetails.tsx b/src/tokens/TokenDetails.tsx index 7e2254c9063..486402c808a 100644 --- a/src/tokens/TokenDetails.tsx +++ b/src/tokens/TokenDetails.tsx @@ -276,7 +276,7 @@ function Actions({ }) action.onPress() }} - icon={} + icon={} style={styles.actionButton} size={BtnSizes.FULL} touchableStyle={styles.actionTouchable} @@ -386,6 +386,6 @@ const styles = StyleSheet.create({ }, priceInfoUnavailable: { ...typeScale.labelSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, }) diff --git a/src/tokens/TokenDetailsMoreActions.tsx b/src/tokens/TokenDetailsMoreActions.tsx index 21d5bcf6824..7292826adbb 100644 --- a/src/tokens/TokenDetailsMoreActions.tsx +++ b/src/tokens/TokenDetailsMoreActions.tsx @@ -47,7 +47,7 @@ export default function TokenDetailsMoreActions({ testID={`TokenDetailsMoreActions/${action.name}`} > <> - + {action.title} {action.details} diff --git a/src/tokens/TokenImport.tsx b/src/tokens/TokenImport.tsx index 0903addcef1..7741e6abf11 100644 --- a/src/tokens/TokenImport.tsx +++ b/src/tokens/TokenImport.tsx @@ -375,6 +375,6 @@ const styles = StyleSheet.create({ }, errorLabel: { ...typeScale.labelSmall, - color: Colors.error, + color: Colors.errorPrimary, }, }) diff --git a/src/transactions/NoActivity.tsx b/src/transactions/NoActivity.tsx index 715f4ff2141..610dad4f068 100644 --- a/src/transactions/NoActivity.tsx +++ b/src/transactions/NoActivity.tsx @@ -57,7 +57,7 @@ const styles = StyleSheet.create({ }, text: { ...typeScale.bodyLarge, - color: colors.textSecondary, + color: colors.contentSecondary, }, noTransactionsContainer: { padding: Spacing.Regular16, diff --git a/src/transactions/UserSection.tsx b/src/transactions/UserSection.tsx index 3ccd1da6371..e7614f5c0dc 100644 --- a/src/transactions/UserSection.tsx +++ b/src/transactions/UserSection.tsx @@ -94,7 +94,7 @@ const styles = StyleSheet.create({ }, sectionLabel: { ...typeScale.labelSemiBoldSmall, - color: colors.textSecondary, + color: colors.contentSecondary, marginBottom: 4, }, userContainer: { @@ -106,7 +106,7 @@ const styles = StyleSheet.create({ }, phoneNumber: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, avatarContainer: { flex: 1, @@ -117,7 +117,7 @@ const styles = StyleSheet.create({ }, addressHasChanged: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, marginBottom: 8, }, accountBox: { @@ -128,6 +128,6 @@ const styles = StyleSheet.create({ }, accountLabel: { ...typeScale.labelSemiBoldSmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/transactions/feed/ClaimRewardFeedItem.tsx b/src/transactions/feed/ClaimRewardFeedItem.tsx index ae9b0a355f4..4e75dd3c904 100644 --- a/src/transactions/feed/ClaimRewardFeedItem.tsx +++ b/src/transactions/feed/ClaimRewardFeedItem.tsx @@ -123,7 +123,7 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, amountContainer: { maxWidth: '50%', @@ -135,7 +135,7 @@ const styles = StyleSheet.create({ }, amountSubtitle: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, flexWrap: 'wrap', textAlign: 'right', }, diff --git a/src/transactions/feed/DepositOrWithdrawFeedItem.tsx b/src/transactions/feed/DepositOrWithdrawFeedItem.tsx index aab944f7eae..6adc5c470bf 100644 --- a/src/transactions/feed/DepositOrWithdrawFeedItem.tsx +++ b/src/transactions/feed/DepositOrWithdrawFeedItem.tsx @@ -159,7 +159,7 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, amountContainer: { maxWidth: '50%', @@ -171,7 +171,7 @@ const styles = StyleSheet.create({ }, amountSubtitle: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, flexWrap: 'wrap', textAlign: 'right', }, diff --git a/src/transactions/feed/EarnFeedItem.tsx b/src/transactions/feed/EarnFeedItem.tsx index 8eda9166de8..160f0b79908 100644 --- a/src/transactions/feed/EarnFeedItem.tsx +++ b/src/transactions/feed/EarnFeedItem.tsx @@ -171,7 +171,7 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, amountContainer: { maxWidth: '50%', @@ -183,7 +183,7 @@ const styles = StyleSheet.create({ }, amountSubtitle: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, flexWrap: 'wrap', textAlign: 'right', }, diff --git a/src/transactions/feed/SwapFeedItem.tsx b/src/transactions/feed/SwapFeedItem.tsx index 17c2aa2685f..b704b4feb42 100644 --- a/src/transactions/feed/SwapFeedItem.tsx +++ b/src/transactions/feed/SwapFeedItem.tsx @@ -106,7 +106,7 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, tokenAmountContainer: { maxWidth: '50%', @@ -119,7 +119,7 @@ const styles = StyleSheet.create({ }, tokenAmount: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, flexWrap: 'wrap', textAlign: 'right', }, diff --git a/src/transactions/feed/TransactionDetails.tsx b/src/transactions/feed/TransactionDetails.tsx index cb3ba281299..4989246b14a 100644 --- a/src/transactions/feed/TransactionDetails.tsx +++ b/src/transactions/feed/TransactionDetails.tsx @@ -136,7 +136,7 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginTop: 2, }, status: { diff --git a/src/transactions/feed/TransactionFeedItemImage.tsx b/src/transactions/feed/TransactionFeedItemImage.tsx index 6622617fe93..2a27a63a31f 100644 --- a/src/transactions/feed/TransactionFeedItemImage.tsx +++ b/src/transactions/feed/TransactionFeedItemImage.tsx @@ -35,7 +35,7 @@ function TransactionFeedItemBaseImage(props: Props) { if (status === TransactionStatus.Failed) { return ( - + ) } @@ -48,7 +48,7 @@ function TransactionFeedItemBaseImage(props: Props) { ) { return ( - + ) } @@ -87,7 +87,7 @@ function TransactionFeedItemBaseImage(props: Props) { ) { return ( - + ) } diff --git a/src/transactions/feed/TransactionFeedV2.tsx b/src/transactions/feed/TransactionFeedV2.tsx index 897784eee50..7234d9bcb0b 100644 --- a/src/transactions/feed/TransactionFeedV2.tsx +++ b/src/transactions/feed/TransactionFeedV2.tsx @@ -568,7 +568,7 @@ const styles = StyleSheet.create({ }, allTransactionsText: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, textAlign: 'center', marginHorizontal: Spacing.Regular16, marginVertical: Spacing.Thick24, diff --git a/src/transactions/feed/TransactionPrimaryAction.tsx b/src/transactions/feed/TransactionPrimaryAction.tsx index 956d0eaa6ac..86c16db279f 100644 --- a/src/transactions/feed/TransactionPrimaryAction.tsx +++ b/src/transactions/feed/TransactionPrimaryAction.tsx @@ -27,9 +27,9 @@ function TransactionPrimaryAction({ status, type, onPress, testID }: Props) { }[status] const [color, backgroundColor] = { - [TransactionStatus.Complete]: [Colors.success, Colors.successSecondary], - [TransactionStatus.Pending]: [Colors.warning, Colors.warningSecondary], - [TransactionStatus.Failed]: [Colors.error, Colors.errorSecondary], + [TransactionStatus.Complete]: [Colors.successPrimary, Colors.successSecondary], + [TransactionStatus.Pending]: [Colors.warningPrimary, Colors.warningSecondary], + [TransactionStatus.Failed]: [Colors.errorPrimary, Colors.errorSecondary], }[status] const icon = { diff --git a/src/transactions/feed/TransactionStatusIndicator.tsx b/src/transactions/feed/TransactionStatusIndicator.tsx index 25a894f2ec8..3bf7c4175f2 100644 --- a/src/transactions/feed/TransactionStatusIndicator.tsx +++ b/src/transactions/feed/TransactionStatusIndicator.tsx @@ -25,9 +25,9 @@ function TransactionStatusIndicator({ status, testID }: Props) { }[status] const [color, backgroundColor] = { - [TransactionStatus.Complete]: [Colors.success, Colors.successSecondary], - [TransactionStatus.Pending]: [Colors.warning, Colors.warningSecondary], - [TransactionStatus.Failed]: [Colors.error, Colors.errorSecondary], + [TransactionStatus.Complete]: [Colors.successPrimary, Colors.successSecondary], + [TransactionStatus.Pending]: [Colors.warningPrimary, Colors.warningSecondary], + [TransactionStatus.Failed]: [Colors.errorPrimary, Colors.errorSecondary], }[status] const icon = { diff --git a/src/transactions/feed/TransferFeedItem.tsx b/src/transactions/feed/TransferFeedItem.tsx index 1dd8410fe36..237c40b144b 100644 --- a/src/transactions/feed/TransferFeedItem.tsx +++ b/src/transactions/feed/TransferFeedItem.tsx @@ -130,7 +130,7 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, amount: { ...typeScale.labelMedium, @@ -139,7 +139,7 @@ const styles = StyleSheet.create({ }, tokenAmount: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, flexWrap: 'wrap', textAlign: 'right', }, diff --git a/src/transactions/feed/detailContent/ClaimRewardContent.tsx b/src/transactions/feed/detailContent/ClaimRewardContent.tsx index ce2c43658f3..db6974fccb4 100644 --- a/src/transactions/feed/detailContent/ClaimRewardContent.tsx +++ b/src/transactions/feed/detailContent/ClaimRewardContent.tsx @@ -78,7 +78,7 @@ const styles = StyleSheet.create({ }, amountSubtitle: { ...typeScale.bodySmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginLeft: 'auto', }, }) diff --git a/src/transactions/feed/detailContent/DepositOrWithdrawContent.tsx b/src/transactions/feed/detailContent/DepositOrWithdrawContent.tsx index b3281d98dfa..d1dc3f6de5c 100644 --- a/src/transactions/feed/detailContent/DepositOrWithdrawContent.tsx +++ b/src/transactions/feed/detailContent/DepositOrWithdrawContent.tsx @@ -79,7 +79,7 @@ export function DepositOrWithdrawContent({ transaction }: DepositOrWithdrawConte showLocalAmount={false} style={styles.bodyText} /> - + - + ), - headerLeft: () => , + headerLeft: () => , headerTransparent: true, }) }, [navigation, route.params]) diff --git a/src/verify/VerificationStartScreen.tsx b/src/verify/VerificationStartScreen.tsx index 878fd2958ba..a4aae2c1c0a 100644 --- a/src/verify/VerificationStartScreen.tsx +++ b/src/verify/VerificationStartScreen.tsx @@ -122,7 +122,7 @@ function VerificationStartScreen({ title={t('skip')} testID="PhoneVerificationSkipHeader" onPress={onPressSkip} - titleStyle={{ color: colors.navigationTop }} + titleStyle={{ color: colors.navigationTopPrimary }} /> ), headerLeft: () => route.params?.hasOnboarded && , diff --git a/src/walletConnect/screens/ConnectionTimedOut.tsx b/src/walletConnect/screens/ConnectionTimedOut.tsx index 4710c426f68..ac495239a21 100644 --- a/src/walletConnect/screens/ConnectionTimedOut.tsx +++ b/src/walletConnect/screens/ConnectionTimedOut.tsx @@ -24,7 +24,7 @@ const styles = StyleSheet.create({ }, subtitle: { ...typeScale.bodyMedium, - color: colors.textSecondary, + color: colors.contentSecondary, textAlign: 'center', marginTop: 16, marginBottom: 24, diff --git a/src/walletConnect/screens/DappsDisclaimer.tsx b/src/walletConnect/screens/DappsDisclaimer.tsx index 79fb22d0c1e..e7019e167db 100644 --- a/src/walletConnect/screens/DappsDisclaimer.tsx +++ b/src/walletConnect/screens/DappsDisclaimer.tsx @@ -22,7 +22,7 @@ const DappsDisclaimer = ({ isDappListed }: Props) => { const styles = StyleSheet.create({ dappNotListedDisclaimer: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginBottom: Spacing.Thick24, textAlign: 'center', }, diff --git a/src/walletConnect/screens/EstimatedNetworkFee.tsx b/src/walletConnect/screens/EstimatedNetworkFee.tsx index dc80599a42c..e91fcc1a74e 100644 --- a/src/walletConnect/screens/EstimatedNetworkFee.tsx +++ b/src/walletConnect/screens/EstimatedNetworkFee.tsx @@ -119,7 +119,7 @@ const styles = StyleSheet.create({ }, labelText: { ...typeScale.labelXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginBottom: Spacing.Tiny4, }, amountPrimaryText: { @@ -127,7 +127,7 @@ const styles = StyleSheet.create({ }, amountSecondaryText: { ...typeScale.bodyXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, contentLoading: { opacity: 0, diff --git a/src/walletConnect/screens/Logos.tsx b/src/walletConnect/screens/Logos.tsx index 1fecb1afd0b..ec2a1316e0f 100644 --- a/src/walletConnect/screens/Logos.tsx +++ b/src/walletConnect/screens/Logos.tsx @@ -66,17 +66,17 @@ const styles = StyleSheet.create({ height: DAPP_IMAGE_SIZE, width: DAPP_IMAGE_SIZE, borderRadius: 100, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, }, dappImage: { height: DAPP_IMAGE_SIZE, width: DAPP_IMAGE_SIZE, borderRadius: 100, - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, marginLeft: -4, }, placeholderLogoBackground: { - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, marginRight: -Spacing.Small12, borderColor: Colors.border, borderWidth: 1, @@ -84,6 +84,6 @@ const styles = StyleSheet.create({ placeholderLogoText: { ...typeScale.titleMedium, lineHeight: undefined, - color: Colors.textSecondary, + color: Colors.contentSecondary, }, }) diff --git a/src/walletConnect/screens/RequestContent.tsx b/src/walletConnect/screens/RequestContent.tsx index beeef05c376..b50db70f91e 100644 --- a/src/walletConnect/screens/RequestContent.tsx +++ b/src/walletConnect/screens/RequestContent.tsx @@ -214,7 +214,7 @@ const styles = StyleSheet.create({ }, requestDetailLabel: { ...typeScale.labelXSmall, - color: Colors.textSecondary, + color: Colors.contentSecondary, marginBottom: 4, }, requestDetailValue: { diff --git a/src/walletConnect/screens/Sessions.tsx b/src/walletConnect/screens/Sessions.tsx index 104352aa16c..01571158575 100644 --- a/src/walletConnect/screens/Sessions.tsx +++ b/src/walletConnect/screens/Sessions.tsx @@ -135,7 +135,7 @@ const styles = StyleSheet.create({ }, disconnectButton: { ...typeScale.bodySmall, - color: colors.textSecondary, + color: colors.contentSecondary, }, }) diff --git a/src/walletConnect/screens/WalletConnectRequest.tsx b/src/walletConnect/screens/WalletConnectRequest.tsx index 7c42d98ffd0..319a89fc476 100644 --- a/src/walletConnect/screens/WalletConnectRequest.tsx +++ b/src/walletConnect/screens/WalletConnectRequest.tsx @@ -55,7 +55,7 @@ const styles = StyleSheet.create({ }, connecting: { ...typeScale.labelSemiBoldSmall, - color: colors.textSecondary, + color: colors.contentSecondary, marginTop: Spacing.Thick24, }, }) diff --git a/src/webview/WebViewAndroidBottomSheet.tsx b/src/webview/WebViewAndroidBottomSheet.tsx index 4f858302074..91a42c2dbcc 100644 --- a/src/webview/WebViewAndroidBottomSheet.tsx +++ b/src/webview/WebViewAndroidBottomSheet.tsx @@ -66,7 +66,7 @@ const styles = StyleSheet.create({ margin: 0, }, centerContainer: { - backgroundColor: Colors.background, + backgroundColor: Colors.backgroundPrimary, }, // Needed to add icons in the pressable buttons pressable: { diff --git a/src/webview/WebViewScreen.tsx b/src/webview/WebViewScreen.tsx index ee56e7d8ed0..42ccbc730f2 100644 --- a/src/webview/WebViewScreen.tsx +++ b/src/webview/WebViewScreen.tsx @@ -242,7 +242,7 @@ function WebViewScreen({ route, navigation }: Props) { disabled={!canGoBack} testID="WebViewScreen/GoBack" > - + - + - + - +