• Validates a hex color.

    Parameters

    • color: string

      The color to validate.

    Returns boolean

    true if the color is a valid hex color, false otherwise.

    0.5.0