org.designtxt.resolveTokens

bomberstudios.com

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Resolve a resolver document by providing concrete context values for each of its modifiers. Returns a flat token set with all aliases resolved. Authentication is optional; the resolver document must be publicly accessible if used without auth.",
      "errors": [
        {
          "description": "The specified resolver document could not be found.",
          "name": "ResolverNotFound"
        },
        {
          "description": "The input values do not match the resolver's modifier definitions (unknown modifier, invalid context value, or missing required modifier without a default).",
          "name": "InvalidInput"
        },
        {
          "description": "The resolver or referenced token sources contain a circular reference.",
          "name": "CircularReference"
        },
        {
          "description": "Token resolution failed due to unresolvable alias references, invalid token values, or other processing errors.",
          "name": "ResolutionFailed"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "input": {
              "description": "Contextual input values, keyed by modifier name. Each value must be a string matching one of that modifier's defined contexts. E.g. { \"theme\": \"dark\", \"size\": \"compact\" }.",
              "properties": {},
              "type": "object"
            },
            "resolveReferences": {
              "description": "If true (default), resolve all alias references ({token.name}) in the output. Set to false to preserve aliases as literal strings.",
              "type": "boolean"
            },
            "resolverRef": {
              "description": "AT-URI of the org.designtxt.resolver record to resolve.",
              "format": "at-uri",
              "maxLength": 8192,
              "type": "string"
            }
          },
          "required": [
            "resolverRef",
            "input"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "input": {
              "description": "Echo of the input values used for resolution.",
              "properties": {},
              "type": "object"
            },
            "resolvedAt": {
              "description": "Timestamp when resolution was performed.",
              "format": "datetime",
              "maxLength": 64,
              "type": "string"
            },
            "tokens": {
              "description": "The resolved token collection. All modifier conditions have been applied according to resolutionOrder, and alias references have been resolved.",
              "type": "unknown"
            }
          },
          "required": [
            "tokens"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "XRPC Procedure to resolve a design token resolver document against a set of contextual inputs, producing a fully resolved token collection.",
  "id": "org.designtxt.resolveTokens",
  "lexicon": 1
}

Validate Record

Validate a record against org.designtxt.resolveTokens

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:34yvx4hv64znmh2i2fezoyqx
CID
bafyreigqye7odfiiyf4txjsvqbbxw3cwua4i2i3sxx5coc2f2tven2iole
Indexed At
2026-07-11 19:40 UTC
AT-URI
at://did:plc:34yvx4hv64znmh2i2fezoyqx/com.atproto.lexicon.schema/org.designtxt.resolveTokens

Version History (2 versions)

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • XRPC Query to retrieve a design token collection, optionally at a specific subtree path, and optionally with alias references resolved. Implemented at https://xrpc.designtxt.org/xrpc/org.designtxt.getTokens

  • A resolver document for multi-context design tokens (theming, breakpoints, accessibility modes). Follows the DTCG Resolver 2025.10 specification. Describes how token sets and contextual modifiers combine to produce reso…

Lexicon Garden

@