• Parse a CSS colour in the forms a theme uses: #rgb, #rgba, #rrggbb, #rrggbbaa, rgb() and rgba(). Anything else (a named colour, hsl()) is returned as null, and the caller falls back to a sensible neutral rather than throwing: a theme with one exotic colour should still get chrome.

    Parameters

    • input: string

    Returns Rgba | null