Rivier/ Reference/ hosting

Judge a palette being edited (seven colours, or brand colours with overrides)

post/hosting/design-library/palette/evaluate

Judge a palette being edited (seven colours, or brand colours with overrides): every contrast and colour-blind check with its result, the colours as seen with each kind of colour blindness, and the smallest change that fixes what fails. Stores nothing.

Before you call

Credential
Authorization: Bearer $KEY
Scope
hosting:read
Mcp
rivier_design_library_evaluate_palette
Graphql
Query.hostingLibraryEvaluatePalette
Sdk
hosting.library.evaluatePalette
Cli
hosting library evaluate palette

Request bodyapplication/json, required

  • brandobject
    • colorslist of stringrequired
  • colorsobject
  • modestring
    One of: light, dark. Default: light.

Responses

  • 200application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown