Open Design Tokens
    Preparing search index...

    Function validateColorValue

    • Validates a color value per the Color Module 2025.10: a colorSpace from the supported list, exactly three components that are numbers or "none" within the space's ranges, an optional alpha in [0, 1], and an optional 6-digit hex fallback. For sRGB with all-numeric components, a hex that disagrees with the components yields a warning.

      Parameters

      Returns ValidationIssue[]