Skip to content

Function: randomColor() ​

ts
function randomColor(): string;

Returns a random hex color string.

Returns ​

string

Example ​

ts
randomColor() // => '#a3f2c1'

Since ​

1.0.0

Released under the MIT License.