Add a way for the client to manage the default avatar colors
See original GitHub issueCurrently, the colors for the generated avatars are internal to the application. While it is possible to use
import { defaultColors } from "ngx-avatar";
defaultColors.splice(0, defaultColors.length);
defaultColors.push("red", "green", "blue");
to change them, this has a hacky feel to it. There should be a nicer, more straightforward way to set the avatar colors.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Choose default avatar color - Auth0 Community
The default avatar create by auth0 (retrieved in the jws token) is a solid color background with two letters from the user's name....
Read more >How do I change the color of my letter avatar?
Solved: Currently, my letter avatar is purple with a white C on it. I would like to change it to a different color...
Read more >Can we change the default color of the Default Ava...
Hi,. Can we change the default color of the Default Avatar, its the grey circle with the users initials in it?
Read more >How do I edit my profile? - monday.com Support
Step 1: Click on your profile picture (or initials) on the bottom left of the screen, select "Admin" > "Customization" > "User profile"....
Read more >Add an option to change default avatar's color. - Discord Support
Add an option to change default avatar's color. ... given us a way to theme. even just simple color-pickers for the colors in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Tnx, I’ve just gotten around to updating it, and it works fine.
Hello @sweko, I have been thinking of passing the array of default colors when the AvatarModule is imported. So If you would like to provide your own set of colors, the import of AvatarModule would look like this :
Something similar to the RouterModule of Angular when we pass the array of routes. What do you think ?