Skip to content

randomColor

Generate a random hexadecimal color string.

Usage

ts
import { randomColor } from 'rattail'

randomColor() // Generates a random hex color, e.g., '#a1b2c3'

Return

Type
string