We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b044c2a commit e4fe932Copy full SHA for e4fe932
1 file changed
lib/letter-avatars.js
@@ -5,7 +5,10 @@ var randomcolor = require('randomcolor');
5
6
// core
7
module.exports = function(name) {
8
- var color = randomcolor({seed: name});
+ var color = randomcolor({
9
+ seed: name,
10
+ luminosity: 'dark',
11
+ });
12
var letter = name.substring(0, 1).toUpperCase();
13
14
var svg = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>';
0 commit comments