mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
10 lines
299 B
TypeScript
10 lines
299 B
TypeScript
|
// TODO: Replace this function with something more tailored to our color palette
|
||
|
export const getRandomColor = () => {
|
||
|
const letters = '0123456789ABCDEF';
|
||
|
let color = '#';
|
||
|
for (let i = 0; i < 6; i++) {
|
||
|
color += letters[Math.floor(Math.random() * 16)];
|
||
|
}
|
||
|
return color;
|
||
|
};
|