πFormat and Validate Hex
formatAndValidateHex β string
stringFormats and validates the hexadecimal code.
Kind: global variable
Returns: string - Formatted and validated hexadecimal code
Param
Type
Description
hex
string
Hexadecimal code for formatting and validation
alt
string
Alternative color if code is invalid
Last updated