style: color adjustments
This commit is contained in:
9
utils/getRandomGrey.ts
Normal file
9
utils/getRandomGrey.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export function getRandomGrey() {
|
||||
const letters = 'ABCDEF';
|
||||
let color = '#';
|
||||
const greyShade = Math.floor(Math.random() * 6);
|
||||
for (let i = 0; i < 6; i++) {
|
||||
color += letters[greyShade];
|
||||
}
|
||||
return color;
|
||||
}
|
||||
Reference in New Issue
Block a user