Skip to content

Commit

Permalink
Color clean up (#749)
Browse files Browse the repository at this point in the history
* Define all colors from product with new names
* Use new color name for identical colors in app
* Replace similar colors with new color names
* Clean up colors in general
* Adjust gradients to figma design and improve button gradients
* Delete unused component TutorialSteps
* Clean up grey shades
* Add shadow to balance on hover
* Fix theme color choice in ValidationStatus
* Fix Balance hover effect console error
  • Loading branch information
louilinn authored Oct 10, 2023
1 parent 1601fb4 commit cc38307
Show file tree
Hide file tree
Showing 49 changed files with 302 additions and 362 deletions.
12 changes: 6 additions & 6 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ const useStyles = makeStyles((theme) => {
},

'&.notistack-MuiContent-success': {
background: theme.custom.colors.fountainBlue,
boxShadow: theme.custom.shadows.grayBottomRight,
background: theme.custom.colors.blue100,
boxShadow: theme.custom.shadows.greyBottomRight,
},
'&.notistack-MuiContent-error': {
background: theme.custom.colors.lividBrown,
background: theme.custom.colors.purple50,
boxShadow: theme.custom.shadows.lightGray,
},
'&.notistack-MuiContent-warning': {
background: theme.custom.colors.whiteAlmost,
border: `2px solid ${theme.custom.colors.deepBlush}`,
background: theme.custom.colors.white,
border: `2px solid ${theme.custom.colors.pink300}`,
borderRadius: '8px',
boxShadow: theme.custom.shadows.lightGray,
color: theme.custom.colors.purple,
color: theme.custom.colors.pink100,
textAlign: 'center',
'& div': {
paddingLeft: '0px',
Expand Down
10 changes: 5 additions & 5 deletions src/components/ActivityStreamItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ const useStyles = makeStyles((theme) => ({
cardContainer: {
boxShadow: theme.custom.shadows.navigationFloating,
'&:hover': {
background: theme.custom.colors.blackSqueeze,
background: theme.custom.colors.blue600,

'& .MuiCardHeader-root': {
background: theme.custom.colors.blackSqueeze,
background: theme.custom.colors.blue600,
},
},
},
cardHeader: {
cursor: 'pointer',
background: theme.custom.colors.whiteAlmost,
background: theme.custom.colors.white,
},
cardHeaderUnseen: {
position: 'relative',
Expand All @@ -54,7 +54,7 @@ const useStyles = makeStyles((theme) => ({
borderRadius: '50%',
width: '13px',
height: '13px',
background: theme.custom.gradients.purple,
background: theme.custom.gradients.pinkToPurple,
},
},
cardHeaderAction: {
Expand All @@ -65,7 +65,7 @@ const useStyles = makeStyles((theme) => ({
cardContent: {
padding: '15px 0 15px',
margin: '5px 15px 0 15px',
borderTop: `1px solid ${theme.custom.colors.oldLavender}`,
borderTop: `1px solid ${theme.custom.colors.purple200}`,
' &.MuiCardContent-root': {
paddingBottom: `${theme.spacing(1.5)}`,
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/AppNote.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import theme, { colors } from '../styles/theme';

import HumbleAlert from '~/components/HumbleAlert';

const DEFAULT_ALERT_COLOR = theme.custom.colors.fountainBlue;
const DEFAULT_ICON_COLOR = colors.whiteAlmost;
const DEFAULT_ALERT_COLOR = theme.custom.colors.blue100;
const DEFAULT_ICON_COLOR = colors.white;
const DEFAULT_ICON = 'IconBrowser';

const useStyles = makeStyles(() => ({
Expand Down
2 changes: 1 addition & 1 deletion src/components/Avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const useStyles = makeStyles((theme) => ({
},
circleGrey: {
background: theme.custom.colors.greyHover,
border: `2px solid ${theme.custom.colors.fountainBlue}`,
border: `2px solid ${theme.custom.colors.blue100}`,
position: 'absolute',
left: '-1px',
top: '-1px',
Expand Down
4 changes: 2 additions & 2 deletions src/components/BackgroundCurved.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ const useStyles = makeStyles((theme) => {
) {
switch (props.gradient) {
case 'turquoise':
return theme.custom.gradients.greenBlue;
return theme.custom.gradients.greenBlueCurved;
case 'violet':
return theme.custom.gradients.violetCurved;
}
} else {
switch (props.gradient) {
case 'turquoise':
return theme.custom.gradients.greenBlue;
return theme.custom.gradients.greenBlueCurved;
case 'violet':
return theme.custom.gradients.violetCurved;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/BadgeTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import React from 'react';
const useStyles = makeStyles((theme) => ({
iconActive: {
'& path': {
fill: theme.custom.colors.violet,
fill: theme.custom.colors.purple100,
},
},
badgeContainer: {
backgroundColor: theme.custom.colors.fountainBlue,
backgroundColor: theme.custom.colors.blue100,
right: '-9px',
},
}));
Expand Down
7 changes: 4 additions & 3 deletions src/components/BalanceDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ const useStyles = makeStyles((theme) => ({
marginRight: theme.spacing(0.5),
fontSize: '2.3rem',
},
balanceUnderline: {
balanceHover: {
'&:hover': {
textDecoration: 'underline',
textDecorationColor: theme.custom.colors.violet,
textDecorationColor: theme.custom.colors.purple100,
textShadow: theme.custom.shadows.grey,
},
},
}));
Expand Down Expand Up @@ -66,7 +67,7 @@ const BalanceDisplay = ({ underlineAtHover = true }) => {
<CircularProgress />
) : (
<Typography
className={underlineAtHover && classes.balanceUnderline}
className={underlineAtHover ? classes.balanceHover : ''}
variant="balance1"
>
<Link to={TOKENS_PATH}>
Expand Down
33 changes: 16 additions & 17 deletions src/components/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,32 @@ const useStyles = makeStyles((theme) => ({
textTransform: 'none',
borderRadius: 30,
zIndex: theme.zIndex.layer2,
background: theme.custom.gradients.purple,
color: theme.palette.common.white,
background: theme.custom.gradients.pinkToPurple,
color: theme.custom.colors.white,
height: '40px',
'&:hover': {
background: theme.custom.gradients.purpleHover,
background: theme.custom.gradients.lightPinkToPurple,
},
'&.Mui-disabled': {
background: theme.custom.colors.lola,
background: theme.custom.colors.purple500,
borderRadius: '30px',
color: theme.custom.colors.lily,
color: theme.custom.colors.purple400,
'pointer-events': 'visible',

'&:hover': {
background: theme.custom.colors.lola,
background: theme.custom.colors.purple500,
},
},
},
buttonOutline: {
color: theme.palette.primary.main,
background: `linear-gradient(${theme.custom.colors.whiteAlmost}, ${theme.custom.colors.whiteAlmost}) padding-box,
background: `linear-gradient(${theme.custom.colors.white}, ${theme.custom.colors.white}) padding-box,
${theme.custom.gradients.pinkToPurple} border-box`,
position: 'relative',
border: '1px solid transparent',
borderRadius: '30px',
'&:hover': {
background: `linear-gradient(${theme.custom.colors.whiteAlmost}, ${theme.custom.colors.whiteAlmost}) padding-box,
background: `linear-gradient(${theme.custom.colors.white}, ${theme.custom.colors.white}) padding-box,
${theme.custom.gradients.lightPinkToPurple} border-box`,
'& .MuiTouchRipple-root': {
background: theme.custom.gradients.lightPinkToPurple,
Expand All @@ -50,12 +50,12 @@ const useStyles = makeStyles((theme) => ({
},
},
'&.Mui-disabled': {
background: theme.custom.colors.whiteAlmost,
borderColor: theme.custom.colors.lola,
background: theme.custom.colors.white,
borderColor: theme.custom.colors.purple500,
'& .MuiTouchRipple-root': {
background: 'none',
color: theme.custom.colors.lola,
'-webkit-text-fill-color': theme.custom.colors.lola,
color: theme.custom.colors.purple500,
'-webkit-text-fill-color': theme.custom.colors.purple500,
textFillColor: 'transparent',
},
},
Expand Down Expand Up @@ -87,7 +87,7 @@ const useStyles = makeStyles((theme) => ({
},
buttonText: {
border: 0,
background: theme.custom.gradients.purple,
background: theme.custom.gradients.pinkToPurple,
color: 'transparent',
'-webkit-background-clip': 'text',
'-webkit-text-fill-color': 'transparent',
Expand All @@ -102,10 +102,9 @@ const useStyles = makeStyles((theme) => ({
},
'&.Mui-disabled': {
background: 'transparent',
color: theme.custom.colors.lily,
'-webkit-text-fill-color': theme.custom.colors.lily,
textFillColor: theme.custom.colors.lily,

color: theme.custom.colors.purple400,
'-webkit-text-fill-color': theme.custom.colors.purple400,
textFillColor: theme.custom.colors.purple400,
'&:hover': {
cursor: 'not-allowed',
'pointer-events': 'visible',
Expand Down
12 changes: 6 additions & 6 deletions src/components/ButtonAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ const useStyles = makeStyles((theme) => ({

'&:hover': {
'& stop:first-of-type': {
stopColor: theme.custom.colors.cannonPink,
stopColor: theme.custom.colors.pinkHoverLight,
},
'& stop:last-of-type': {
stopColor: theme.custom.colors.cranberry,
stopColor: theme.custom.colors.pink200,
},
},
},
Expand All @@ -41,17 +41,17 @@ const useStyles = makeStyles((theme) => ({
},
buttonDisabled: {
'& stop:first-of-type': {
stopColor: theme.custom.colors.lola,
stopColor: theme.custom.colors.purple500,
},
'& stop:last-of-type': {
stopColor: theme.custom.colors.lola,
stopColor: theme.custom.colors.purple500,
},
'&:hover': {
'& stop:first-of-type': {
stopColor: theme.custom.colors.lola,
stopColor: theme.custom.colors.purple500,
},
'& stop:last-of-type': {
stopColor: theme.custom.colors.lola,
stopColor: theme.custom.colors.purple500,
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/ButtonDouble.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ const useStyles = makeStyles((theme) => ({
},

buttonGradientOpposite: {
background: theme.custom.gradients.purpleOpposite,
background: theme.custom.gradients.purpleToPink,
'&:hover': {
background: theme.custom.gradients.purpleOppositeHover,
background: theme.custom.gradients.purpleToLightPink,
},
},
}));
Expand Down
6 changes: 3 additions & 3 deletions src/components/ButtonIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ const useStyles = makeStyles((theme) => ({
button: {
fontWeight: fontWeightRegular,
fontSize: fontSizeSmaller,
color: theme.custom.colors.violet,
color: theme.custom.colors.purple100,
textTransform: 'none',
'&:hover': {
background: 'transparent',
color: theme.custom.colors.purple,
color: theme.custom.colors.pink100,

'& path': {
fill: theme.custom.colors.purple,
fill: theme.custom.colors.pink100,
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/ButtonSend.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { IconSend } from '~/styles/icons';

const useStyles = makeStyles((theme) => ({
buttonActionSendIcon: {
color: theme.custom.colors.whiteAlmost,
color: theme.custom.colors.white,
left: -2,
position: 'relative',
top: 1,
Expand Down
30 changes: 15 additions & 15 deletions src/components/ButtonTrust.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,63 +15,63 @@ import {
const useStyles = makeStyles((theme) => ({
trustButton: {
background: 'transparent',
color: theme.custom.colors.whiteAlmost,
color: theme.custom.colors.white,
padding: '0',
},
trustButtonNoTrust: {
'& stop:first-of-type': {
stopColor: theme.custom.colors.purpleDark,
stopColor: theme.custom.gradients.pinkToPurple,
},
'& stop:last-of-type': {
stopColor: theme.custom.colors.purple,
stopColor: theme.custom.colors.pink100,
},
'&:hover': {
'& stop:first-of-type': {
stopColor: theme.custom.colors.cannonPink,
stopColor: theme.custom.colors.pinkHoverLight,
},
'& stop:last-of-type': {
stopColor: theme.custom.colors.cranberry,
stopColor: theme.custom.colors.pink200,
},
},
},
trustButtonOneWay: {
'& stop:first-of-type': {
stopColor: theme.custom.colors.violet,
stopColor: theme.custom.colors.purple100,
},
'& stop:last-of-type': {
stopColor: theme.custom.colors.violet,
stopColor: theme.custom.colors.purple100,
},
'&:hover': {
'& stop:first-of-type': {
stopColor: theme.custom.colors.oldLavender,
stopColor: theme.custom.colors.purple200,
},
'& stop:last-of-type': {
stopColor: theme.custom.colors.oldLavender,
stopColor: theme.custom.colors.purple200,
},
},
},
trustButtonMutualTrust: {
'& stop:first-of-type': {
stopColor: theme.custom.colors.fountainBlue,
stopColor: theme.custom.colors.blue100,
},
'& stop:last-of-type': {
stopColor: theme.custom.colors.fountainBlue,
stopColor: theme.custom.colors.blue100,
},
'&:hover': {
'& stop:first-of-type': {
stopColor: theme.custom.colors.fountainBlueLighter,
stopColor: theme.custom.colors.blue200,
},
'& stop:last-of-type': {
stopColor: theme.custom.colors.fountainBlueLighter,
stopColor: theme.custom.colors.blue200,
},
},
},
trustButtonDisabled: {
'& stop:first-of-type': {
stopColor: theme.custom.colors.lola,
stopColor: theme.custom.colors.purple500,
},
'& stop:last-of-type': {
stopColor: theme.custom.colors.lola,
stopColor: theme.custom.colors.purple500,
},
},
trustButtonContainer: {
Expand Down
Loading

0 comments on commit cc38307

Please sign in to comment.