Checks if the string is a valid hex color (e.g., #FFF, #FFFFFF).
#FFF
#FFFFFF
bool isHexColor(String s) => Patterns.hexColor.hasMatch(s);