Skip to documentation
Design system / Sources & standards
Current repository source
ADR-0037-tenant-custom-palette-storage-boundary.md
docs/decisions/ADR-0037-tenant-custom-palette-storage-boundary.md
This view contains the escaped source read during the deployment build. Code and policy text are unchanged. Markdown is shown as source, not rendered as a document. A new deployment refreshes the content.
# ADR-0037: Tenant custom palette storage boundary
## Status
accepted
## Date
2026-07-21
## Context
Tenant Admins need to capture brand direction beyond the approved console theme catalog. Allowing arbitrary semantic-token overrides before contrast, state, and dark-mode derivation rules are defined would violate the accessible-theme policy in ADR-0036.
## Decision
- Store one custom palette per tenant in the existing theme DynamoDB table at `CUSTOM#{tenantId}`.
- The palette records only validated six-digit hexadecimal `primary`, `secondary`, and `accent` values plus audit metadata.
- The tenant-admin theme management route exposes approved active themes and the stored custom palette separately.
- A custom palette is not an active console theme until a subsequent decision defines accessible semantic-token derivation and validation.
## Consequences
- Updating a custom palette overwrites the one tenant-scoped DynamoDB record and cannot create unbounded tenant theme variants.
- Tenant branding preferences persist now without changing the visual token contract prematurely.
- A later derivation feature must validate contrast and generate the full semantic-token set before it may enable custom-theme selection.
## Related decisions
- Extends ADR-0036.
All sources and standards