{ "module": "shared-theme.AppTheme", "content": { "path": "shared-theme.AppTheme", "docstring": "App theme provider and color-mode context.\r\n\r\nWraps the MUI `ThemeProvider` with the design tokens (`getDesignTokens`),\r\nsemantic colors (`getSemanticColors`) and component customizations\r\n(`inputsCustomizations`, `dataDisplayCustomizations`,\r\n`feedbackCustomizations`, `navigationCustomizations`,\r\n`surfacesCustomizations`). Exposes a light/dark `ColorModeContext` and\r\npublishes the semantic colors as CSS custom properties (`--bg-page`,\r\n`--bg-card`, `--text-primary`, ...) for the app subtree.", "objects": { "ColorMode": { "name": "ColorMode", "kind": "type-alias", "path": "shared-theme.AppTheme.ColorMode", "signature": "ColorMode: \"light\" | \"dark\"", "docstring": "Color mode of the app theme." }, "ColorModeContext": { "name": "ColorModeContext", "kind": "component", "path": "shared-theme.AppTheme.ColorModeContext", "signature": "ColorModeContext: React.Context", "docstring": "Context giving the current color mode and its setters." }, "AppTheme": { "name": "AppTheme", "kind": "component", "path": "shared-theme.AppTheme.AppTheme", "signature": "default(__namedParameters: AppThemeProps): React.JSX.Element", "docstring": "Provide the MUI theme, color-mode context and CSS variables to `children`.\r\n\r\nBuilds the theme from `getDesignTokens(mode)` + `getSemanticColors(mode)` +\r\nthe component customizations, and re-creates it whenever the mode changes.\r\nAlso sets `--bg-page`, `--bg-card`, `--bg-elevated`, `--border-default`,\r\n`--border-subtle`, `--text-primary`, `--text-secondary` and `--text-muted`\r\non a wrapper `Box`.\r\n\r\nProps: `children` and `defaultMode` (see `AppThemeProps`).\n\n**Example:**\n\n```tsx\r\n\r\n \r\n \r\n\r\n```" } } } }