Checks if a string is a valid RGB or RGBA color code.

  • Parameters

    • value: string

      The string to validate.

    • options: IsRGBColorOptions = ...

      Options for RGB color validation.

    Returns boolean

    true if the string is a valid RGB/RGBA color, false otherwise. Examples: "rgb(0, 0, 0)", "rgba(0, 0, 0, 0.5)", "rgb(5%, 5%, 5%)" (if includePercentValues is true).