org.designtxt.resolveTokens
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.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | designtxt.org |
| Indexed |
Procedure
procedure · POSTInput
application/jsonContextual 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" }.
resolveReferences
booleanIf true (default), resolve all alias references ({token.name}) in the output. Set to false to preserve aliases as literal strings.
AT-URI of the org.designtxt.resolver record to resolve.
maxLength: 8192
Output
application/jsoninput
objectEcho of the input values used for resolution.
resolvedAt
string · datetimeTimestamp when resolution was performed.
maxLength: 64
The resolved token collection. All modifier conditions have been applied according to resolutionOrder, and alias references have been resolved.
Errors
ResolverNotFound
The specified resolver document could not be found.
InvalidInput
The input values do not match the resolver's modifier definitions (unknown modifier, invalid context value, or missing required modifier without a default).
CircularReference
The resolver or referenced token sources contain a circular reference.
ResolutionFailed
Token resolution failed due to unresolvable alias references, invalid token values, or other processing errors.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
org.designtxt.getTokens
queryXRPC 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
-
org.designtxt.resolver
recordA 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 resolved token values for a given input.