| 12345678910111213141516 |
- const mainColors = [
- 'green500',
- 'red500',
- 'teal600',
- 'brand800',
- 'teal300',
- 'blue400',
- ];
- function getRndInteger(min, max) {
- return Math.floor(Math.random() * (max - min)) + min;
- }
- const getColor = () => {
- return mainColors[getRndInteger(0, 6)];
- };
- export { getColor, mainColors };
|