export function isHexColor(color: string) { const reg = /^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/; return reg.test(color);}