Skip to documentation

Design system / Organisms

Organism / Management and configuration

TenantThemeManager

TenantThemeManager selects light and dark appearances independently from seven preset families or separately saved three-color custom palettes.

Theme settingsOrganism

Intent and composition

The server supplies both selections, optional custom light/dark palettes and the authorized operation path. useTenantThemeManager owns drafts, pending saves, HTTP/network errors and selection rollback through a feature transport adapter. Saves refresh the server layout without changing the browser's personal mode. The server commits settings and completion evidence together. Delayed audit delivery leaves a committed save successful; another save to that record waits for its prior evidence to be delivered. The view includes main and h1; it is a page-sized feature organism, not an authorization boundary or generic panel.

Coordinated concerns: Independent light/dark selection, real fixed-appearance previews, separate three-color custom slots and pending/error feedback.

useTenantThemeManager owns save/selection lifecycle from server-supplied settings. This feature view contains main and h1 today, so it is not a drop-in card slot.

Real component specimen

Actual manager with Ocean light and Orchid Dark selections, isolated to preserve main/h1. Each preview fixes its own appearance. Both custom editors and operation paths are inert; the specimen publishes nothing and reads no tenant data.

Live preview

Real component, fictional data. Product operations are not enabled.

Supported inputs and ownership

TenantThemeManager input summary
InputResponsibility
selectionsServer-supplied lightThemeId and darkThemeId. Native selects save independently; wrong-mode IDs are rejected.
customTheme / customDarkThemeOptional saved light and dark palettes. Each editor exposes only primary, secondary and accent; derived surfaces and text are not editable. Save a palette before selecting its custom option.
themePathAuthorized settings operation path.

This is an integration summary, not a replacement for the implementation's complete prop types. A disabled control or hidden destination does not enforce permission.

Using it in a page

Integrate the section through its supported props and context requirements. Routes supply permitted data; instances bind product copy and behavior; templates arrange slots. Keep feature hooks and operations with their feature owner. Generic layouts must not load business data or enforce product policy.

Related page assemblies: Tenant settings and management.

Implementation

Repository path: src/components/themeSettings/tenantThemeManager.tsx

All organisms
Current components and theme tokens. Fictional example data. Source views refresh on deployment; authors maintain contract notes.