5 things are done to the avatar to create this card
-
Images are set as backgrounds with the size of 'cover'
-
These backgrounds are multiplied onto a slightly off-white color, to make white background avatars look slightly off-white
-
There is a slight inset shadow on the wrapper, to keep the rounded feel on images that blend too much with the white background of the card itself
-
Color detection is used on the image to extract the dominant colour, and an accent is added to the top of the card and the button
-
This colors luminance is detected to determine the right text color for the button.