Checks if the given string is a valid HSL color according to the CSS Colors Level 4 specification. Supports comma-separated and space-separated formats, with the exception of some edge cases (e.g., "hsl(200grad+.1%62%/1)").

  • Parameters

    • value: string

      The string to validate.

    Returns boolean

    True if the string is a valid HSL color, false otherwise.