@nanahoshi/mona-ui 0.49.0 → 0.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/api/breadcrumb.json +1 -1
- package/docs/api/breadcrumb.md +5 -1
- package/docs/api/index.json +1 -1
- package/docs/api/theme.json +1 -1
- package/docs/api/theme.md +6 -3
- package/docs/breadcrumb.md +58 -4
- package/docs/manifest.json +1 -1
- package/docs/theming-custom-themes.md +32 -10
- package/docs/theming.md +13 -13
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +116 -32
- package/fesm2022/nanahoshi-mona-ui-command.mjs +3 -4
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +3 -4
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +2 -3
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +10 -1
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +2 -3
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +12 -0
- package/fesm2022/nanahoshi-mona-ui-window.mjs +3 -4
- package/package.json +1 -1
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +18 -4
- package/types/nanahoshi-mona-ui-internal.d.ts +10 -0
- package/types/nanahoshi-mona-ui-theme.d.ts +21 -1
package/docs/api/theme.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"links":{"BuiltInThemeName":"theme","DefaultThemeStrategy":"theme","GeneratedThemeColorPalette":"theme","LocalStorageThemeStorage":"theme","SidebarColorRoleSeeds":"theme","THEME_ROOT":"theme","THEME_STORAGE":"theme","THEME_STRATEGY":"theme","ThemeAvailability":"theme","ThemeColorPaletteRegistration":"theme","ThemeColorPaletteSeeds":"theme","ThemeColorVariable":"theme","ThemeColors":"theme","ThemeComponentVariable":"theme","ThemeComponents":"theme","ThemeEffectLevel":"theme","ThemeEffectVariable":"theme","ThemeEffects":"theme","ThemeFamilyRegistration":"theme","ThemeFamilyVariants":"theme","ThemeMotion":"theme","ThemeMotionVariable":"theme","ThemeName":"theme","ThemeOptions":"theme","ThemeOverrideRegistration":"theme","ThemePreference":"theme","ThemeProfile":"theme","ThemeProfileOverrides":"theme","ThemeSelection":"theme","ThemeService":"theme","ThemeShadowVariable":"theme","ThemeShadows":"theme","ThemeShape":"theme","ThemeShapeVariable":"theme","ThemeStorage":"theme","ThemeStrategy":"theme","ThemeVariable":"theme","ThemeVariables":"theme","ThemeVariant":"theme","ThemeVariantPreference":"theme","annaTheme":"theme","builtInThemes":"theme","createSidebarColorRoles":"theme","flattenThemeProfile":"theme","generateThemeColorPalette":"theme","lunaTheme":"theme","monaTheme":"theme","provideThemeColorPalette":"theme","provideThemeFamily":"theme","provideThemeOptions":"theme","provideThemeOverrides":"theme","provideThemeRoot":"theme","provideThemeStorage":"theme","renaTheme":"theme"},"name":"theme","pages":[],"symbols":[{"description":"","kind":"service","name":"ThemeService","inputs":[],"methods":[{"description":"The registered themes and the variants each one has. A custom `ThemeStrategy` reports them through its\noptional `availableThemes()`, and this is empty for one that doesn't.","name":"availableThemes","signature":"availableThemes(): readonly ThemeAvailability[]"},{"description":"Removes the runtime color palette and restores the registered profile and provider overrides.","name":"clearColorPalette","signature":"clearColorPalette(): void"},{"description":"Applies a runtime-generated semantic color palette after all registered profile overrides.\nThe palette remains active across theme and light/dark switches until cleared.","name":"setColorPalette","signature":"setColorPalette(seeds: ThemeColorPaletteSeeds): void"},{"description":"Updates only the runtime primary seed while retaining any other active runtime seeds.","name":"setPrimaryColor","signature":"setPrimaryColor(primary: string): void"},{"description":"Switches the theme, and remembers it if a `persistKey` was given. `\"system\"` follows the operating system's\nsetting from then on, and takes the variant a theme has when it only has one.","name":"setTheme","signature":"setTheme(preference: ThemePreference): void"},{"description":"Whether `setTheme` would accept this. A saved choice can be checked with it before it's restored.","name":"supportsVariant","signature":"supportsVariant(name: ThemeName, variant: ThemeVariant): boolean"}],"outputs":[],"properties":[{"description":"The consumer-provided seeds for the active runtime color palette, or `null` when provider defaults are active.","name":"colorPaletteSeeds","readonly":true,"type":"Signal<ThemeColorPaletteSeeds | null>"},{"description":"What was asked for, which is where `\"system\"` shows. `selection` says what that came to.","name":"preference","readonly":true,"type":"Signal<ThemePreference>"},{"description":"","name":"profile","readonly":true,"type":"Signal<ThemeProfile>"},{"description":"The theme and variant in effect. It's always `light` or `dark`, whatever was asked for.","name":"selection","readonly":true,"type":"Signal<ThemeSelection>"},{"description":"","name":"themeName","readonly":true,"type":"Signal<string>"},{"description":"","name":"themeVariant","readonly":true,"type":"Signal<ThemeVariant>"}]},{"description":"","kind":"class","name":"DefaultThemeStrategy","inputs":[],"methods":[{"description":"","name":"availableThemes","signature":"availableThemes(): readonly ThemeAvailability[]"},{"description":"","name":"resolve","signature":"resolve(selection: ThemeSelection): ThemeProfile"}],"outputs":[],"properties":[]},{"description":"The default `ThemeStorage`: `localStorage`, as JSON, under the `persistKey`.\n\nReads report `null` anywhere `localStorage` can't answer, and writes are dropped there. That covers the\nserver, a browser that refuses it, and a full quota. `ThemeService` checks what comes back, so a value that\nisn't a preference, or names a theme that's gone, counts as nothing stored.\n\nA server-rendered application gets `initialTheme` in its markup and the remembered theme on hydration, which\nshows as a flash. Storage that the server can read too, such as a cookie, avoids it; supply it through\n`provideThemeStorage()`.","kind":"class","name":"LocalStorageThemeStorage","inputs":[],"methods":[{"description":"","name":"read","signature":"read(key: string): ThemePreference | null"},{"description":"","name":"write","signature":"write(key: string, preference: ThemePreference): void"}],"outputs":[],"properties":[]},{"description":"Builds the sidebar's own colour roles. The sidebar is a persistent chrome region rather than page\ncontent, so it is given a surface of its own instead of borrowing the page's — which is what lets a\ntheme sit it slightly apart from the content beside it without every consumer restyling it.\n\nOnly `background` has to be chosen per theme. Hover defaults to the neutral interaction roles, while\nthe sidebar's primary pair follows the selected-state roles. This keeps ordinary navigation quiet,\nreserves identity colour for the current item, and makes runtime primary-palette changes flow through\nwithout rebuilding the sidebar recipe.","kind":"function","name":"createSidebarColorRoles","signature":"function createSidebarColorRoles(seeds: SidebarColorRoleSeeds): ThemeColors;"},{"description":"","kind":"function","name":"flattenThemeProfile","signature":"function flattenThemeProfile(profile: ThemeProfile): ThemeVariables;"},{"description":"Generates accessible light and dark color-role overrides from consumer-provided CSS colors.\nSeed lightness is treated as source identity; the generated variants use fixed tonal anchors.","kind":"function","name":"generateThemeColorPalette","signature":"function generateThemeColorPalette(seeds: ThemeColorPaletteSeeds): GeneratedThemeColorPalette;"},{"description":"Generates a light and a dark palette from the seeds, and applies whichever the theme has.","kind":"function","name":"provideThemeColorPalette","signature":"function provideThemeColorPalette(registration: ThemeColorPaletteRegistration): EnvironmentProviders;"},{"description":"","kind":"function","name":"provideThemeFamily","signature":"function provideThemeFamily(registration: ThemeFamilyRegistration): EnvironmentProviders;"},{"description":"","kind":"function","name":"provideThemeOptions","signature":"function provideThemeOptions(options: ThemeOptions): EnvironmentProviders;"},{"description":"","kind":"function","name":"provideThemeOverrides","signature":"function provideThemeOverrides(registration: ThemeOverrideRegistration): EnvironmentProviders;"},{"description":"Applies the theme to an element in place of `<html>`, for an application embedded in part of a page. Overlays\nrender outside any such element, so the overlay container gets the theme too. Each application has its own\noverlay container, so two embedded applications can have two themes.","kind":"function","name":"provideThemeRoot","signature":"function provideThemeRoot(root: HTMLElement | (() => HTMLElement | null)): EnvironmentProviders;"},{"description":"Replaces where the theme is remembered, which is `localStorage` by default. Only used when\n`provideThemeOptions()` has a `persistKey`. Supply something the server can read too, such as a cookie, to have a\nserver-rendered application render the remembered theme rather than correcting it on hydration.","kind":"function","name":"provideThemeStorage","signature":"function provideThemeStorage(storage: ThemeStorage | (() => ThemeStorage)): EnvironmentProviders;"},{"description":"","kind":"constant","name":"annaTheme","signature":"const annaTheme: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ \"--mona-indicator-color\": \"var(--color-primary)\"; \"--mona-indicator-foreground\": \"var(--color-primary-foreground)\"; \"--mona-primary-text-color\": \"var(--color-primary)\"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ \"--mona-indicator-color\": \"var(--color-primary-border)\"; \"--mona-indicator-foreground\": \"#161718\"; \"--mona-primary-text-color\": \"var(--color-focus-indicator)\"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>;"},{"description":"","kind":"constant","name":"builtInThemes","signature":"const builtInThemes: Readonly<{ anna: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ \"--mona-indicator-color\": \"var(--color-primary)\"; \"--mona-indicator-foreground\": \"var(--color-primary-foreground)\"; \"--mona-primary-text-color\": \"var(--color-primary)\"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ \"--mona-indicator-color\": \"var(--color-primary-border)\"; \"--mona-indicator-foreground\": \"#161718\"; \"--mona-primary-text-color\": \"var(--color-focus-indicator)\"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>; luna: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; motion: Readonly<{ \"--mona-motion-fast\": \"180ms\"; \"--mona-motion-standard\": \"320ms\"; }>; effects: Readonly<{ \"--mona-effect-control-background-color\": \"rgb(243 244 245 / 0.78)\"; \"--mona-effect-control-fallback-background-color\": \"#f3f4f5\"; \"--mona-effect-control-background-image\": \"none\"; \"--mona-effect-control-backdrop-filter\": \"blur(16px) saturate(110%)\"; \"--mona-effect-raised-background-color\": \"rgb(252 252 252 / 0.76)\"; \"--mona-effect-raised-fallback-background-color\": \"#fbfbfb\"; \"--mona-effect-raised-background-image\": \"none\"; \"--mona-effect-raised-backdrop-filter\": \"blur(22px) saturate(112%)\"; \"--mona-effect-overlay-background-color\": \"rgb(249 249 250 / 0.72)\"; \"--mona-effect-overlay-fallback-background-color\": \"#f9f9fa\"; \"--mona-effect-overlay-background-image\": \"none\"; \"--mona-effect-overlay-backdrop-filter\": \"blur(28px) saturate(115%)\"; }>; shape: Readonly<Record<ThemeShapeVariable, string>>; custom: Readonly<{ \"--mona-date-popup-calendar-backdrop-filter\": \"none\"; \"--mona-date-popup-calendar-background\": \"transparent\"; \"--mona-date-popup-calendar-background-image\": \"none\"; \"--mona-dropdown-popup-list-background\": \"transparent\"; \"--mona-input-addon-background\": \"color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)\"; \"--mona-menu-item-hover-background\": \"rgb(37 37 37 / 0.06)\"; \"--mona-menu-item-hover-foreground\": \"var(--color-foreground)\"; \"--mona-menubar-backdrop-filter\": \"var(--mona-effect-control-backdrop-filter)\"; \"--mona-menubar-background-image\": \"var(--mona-effect-control-background-image)\"; }>; components: Readonly<{ \"--mona-calendar-background\": \"var(--mona-effect-raised-background-color)\"; \"--mona-calendar-shadow\": \"var(--shadow-raised)\"; \"--mona-list-background\": \"var(--color-surface)\"; \"--mona-list-disabled-background\": \"var(--color-disabled-background)\"; \"--mona-list-group-background\": \"rgb(37 37 37 / 0.05)\"; \"--mona-list-group-border-width\": \"1px\"; \"--mona-list-group-font-weight\": \"650\"; \"--mona-menubar-background\": \"var(--mona-effect-control-background-color)\"; \"--mona-menubar-shadow\": \"var(--shadow-control)\"; \"--mona-pager-background\": \"var(--mona-effect-raised-background-color)\"; \"--mona-slider-handle-border-color\": \"var(--color-border-control)\"; }>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; motion: Readonly<{ \"--mona-motion-fast\": \"180ms\"; \"--mona-motion-standard\": \"320ms\"; }>; effects: Readonly<{ \"--mona-effect-control-background-color\": \"rgb(37 37 39 / 0.74)\"; \"--mona-effect-control-fallback-background-color\": \"#252527\"; \"--mona-effect-control-background-image\": \"none\"; \"--mona-effect-control-backdrop-filter\": \"blur(16px) saturate(110%)\"; \"--mona-effect-raised-background-color\": \"rgb(32 32 34 / 0.78)\"; \"--mona-effect-raised-fallback-background-color\": \"#202022\"; \"--mona-effect-raised-background-image\": \"none\"; \"--mona-effect-raised-backdrop-filter\": \"blur(22px) saturate(112%)\"; \"--mona-effect-overlay-background-color\": \"rgb(38 38 40 / 0.74)\"; \"--mona-effect-overlay-fallback-background-color\": \"#262628\"; \"--mona-effect-overlay-background-image\": \"none\"; \"--mona-effect-overlay-backdrop-filter\": \"blur(28px) saturate(115%)\"; }>; shape: Readonly<Record<ThemeShapeVariable, string>>; custom: Readonly<{ \"--mona-date-popup-calendar-backdrop-filter\": \"none\"; \"--mona-date-popup-calendar-background\": \"transparent\"; \"--mona-date-popup-calendar-background-image\": \"none\"; \"--mona-dropdown-popup-list-background\": \"transparent\"; \"--mona-input-addon-background\": \"color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)\"; \"--mona-menubar-backdrop-filter\": \"var(--mona-effect-control-backdrop-filter)\"; \"--mona-menubar-background-image\": \"var(--mona-effect-control-background-image)\"; }>; components: Readonly<{ \"--mona-calendar-background\": \"var(--mona-effect-raised-background-color)\"; \"--mona-calendar-shadow\": \"var(--shadow-raised)\"; \"--mona-list-background\": \"var(--color-surface)\"; \"--mona-list-disabled-background\": \"var(--color-disabled-background)\"; \"--mona-list-group-background\": \"rgb(255 255 255 / 0.04)\"; \"--mona-list-group-border-width\": \"1px\"; \"--mona-list-group-font-weight\": \"650\"; \"--mona-menubar-background\": \"var(--mona-effect-control-background-color)\"; \"--mona-menubar-shadow\": \"var(--shadow-control)\"; \"--mona-pager-background\": \"var(--mona-effect-raised-background-color)\"; \"--mona-slider-handle-border-color\": \"var(--color-border-control)\"; }>; }>; }; }>; mona: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>; rena: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ \"--mona-indicator-color\": \"var(--color-primary)\"; \"--mona-indicator-foreground\": \"var(--color-primary-foreground)\"; \"--mona-primary-text-color\": \"var(--color-primary)\"; \"--mona-focus-ring-opacity\": \"100%\"; \"--mona-focus-ring-width\": \"1px\"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ \"--mona-indicator-color\": \"var(--color-focus-indicator)\"; \"--mona-indicator-foreground\": \"#111827\"; \"--mona-primary-text-color\": \"var(--color-focus-indicator)\"; \"--mona-focus-ring-opacity\": \"100%\"; \"--mona-focus-ring-width\": \"1px\"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>; }>;"},{"description":"","kind":"constant","name":"lunaTheme","signature":"const lunaTheme: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; motion: Readonly<{ \"--mona-motion-fast\": \"180ms\"; \"--mona-motion-standard\": \"320ms\"; }>; effects: Readonly<{ \"--mona-effect-control-background-color\": \"rgb(243 244 245 / 0.78)\"; \"--mona-effect-control-fallback-background-color\": \"#f3f4f5\"; \"--mona-effect-control-background-image\": \"none\"; \"--mona-effect-control-backdrop-filter\": \"blur(16px) saturate(110%)\"; \"--mona-effect-raised-background-color\": \"rgb(252 252 252 / 0.76)\"; \"--mona-effect-raised-fallback-background-color\": \"#fbfbfb\"; \"--mona-effect-raised-background-image\": \"none\"; \"--mona-effect-raised-backdrop-filter\": \"blur(22px) saturate(112%)\"; \"--mona-effect-overlay-background-color\": \"rgb(249 249 250 / 0.72)\"; \"--mona-effect-overlay-fallback-background-color\": \"#f9f9fa\"; \"--mona-effect-overlay-background-image\": \"none\"; \"--mona-effect-overlay-backdrop-filter\": \"blur(28px) saturate(115%)\"; }>; shape: Readonly<Record<ThemeShapeVariable, string>>; custom: Readonly<{ \"--mona-date-popup-calendar-backdrop-filter\": \"none\"; \"--mona-date-popup-calendar-background\": \"transparent\"; \"--mona-date-popup-calendar-background-image\": \"none\"; \"--mona-dropdown-popup-list-background\": \"transparent\"; \"--mona-input-addon-background\": \"color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)\"; \"--mona-menu-item-hover-background\": \"rgb(37 37 37 / 0.06)\"; \"--mona-menu-item-hover-foreground\": \"var(--color-foreground)\"; \"--mona-menubar-backdrop-filter\": \"var(--mona-effect-control-backdrop-filter)\"; \"--mona-menubar-background-image\": \"var(--mona-effect-control-background-image)\"; }>; components: Readonly<{ \"--mona-calendar-background\": \"var(--mona-effect-raised-background-color)\"; \"--mona-calendar-shadow\": \"var(--shadow-raised)\"; \"--mona-list-background\": \"var(--color-surface)\"; \"--mona-list-disabled-background\": \"var(--color-disabled-background)\"; \"--mona-list-group-background\": \"rgb(37 37 37 / 0.05)\"; \"--mona-list-group-border-width\": \"1px\"; \"--mona-list-group-font-weight\": \"650\"; \"--mona-menubar-background\": \"var(--mona-effect-control-background-color)\"; \"--mona-menubar-shadow\": \"var(--shadow-control)\"; \"--mona-pager-background\": \"var(--mona-effect-raised-background-color)\"; \"--mona-slider-handle-border-color\": \"var(--color-border-control)\"; }>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; motion: Readonly<{ \"--mona-motion-fast\": \"180ms\"; \"--mona-motion-standard\": \"320ms\"; }>; effects: Readonly<{ \"--mona-effect-control-background-color\": \"rgb(37 37 39 / 0.74)\"; \"--mona-effect-control-fallback-background-color\": \"#252527\"; \"--mona-effect-control-background-image\": \"none\"; \"--mona-effect-control-backdrop-filter\": \"blur(16px) saturate(110%)\"; \"--mona-effect-raised-background-color\": \"rgb(32 32 34 / 0.78)\"; \"--mona-effect-raised-fallback-background-color\": \"#202022\"; \"--mona-effect-raised-background-image\": \"none\"; \"--mona-effect-raised-backdrop-filter\": \"blur(22px) saturate(112%)\"; \"--mona-effect-overlay-background-color\": \"rgb(38 38 40 / 0.74)\"; \"--mona-effect-overlay-fallback-background-color\": \"#262628\"; \"--mona-effect-overlay-background-image\": \"none\"; \"--mona-effect-overlay-backdrop-filter\": \"blur(28px) saturate(115%)\"; }>; shape: Readonly<Record<ThemeShapeVariable, string>>; custom: Readonly<{ \"--mona-date-popup-calendar-backdrop-filter\": \"none\"; \"--mona-date-popup-calendar-background\": \"transparent\"; \"--mona-date-popup-calendar-background-image\": \"none\"; \"--mona-dropdown-popup-list-background\": \"transparent\"; \"--mona-input-addon-background\": \"color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)\"; \"--mona-menubar-backdrop-filter\": \"var(--mona-effect-control-backdrop-filter)\"; \"--mona-menubar-background-image\": \"var(--mona-effect-control-background-image)\"; }>; components: Readonly<{ \"--mona-calendar-background\": \"var(--mona-effect-raised-background-color)\"; \"--mona-calendar-shadow\": \"var(--shadow-raised)\"; \"--mona-list-background\": \"var(--color-surface)\"; \"--mona-list-disabled-background\": \"var(--color-disabled-background)\"; \"--mona-list-group-background\": \"rgb(255 255 255 / 0.04)\"; \"--mona-list-group-border-width\": \"1px\"; \"--mona-list-group-font-weight\": \"650\"; \"--mona-menubar-background\": \"var(--mona-effect-control-background-color)\"; \"--mona-menubar-shadow\": \"var(--shadow-control)\"; \"--mona-pager-background\": \"var(--mona-effect-raised-background-color)\"; \"--mona-slider-handle-border-color\": \"var(--color-border-control)\"; }>; }>; }; }>;"},{"description":"","kind":"constant","name":"monaTheme","signature":"const monaTheme: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>;"},{"description":"","kind":"constant","name":"renaTheme","signature":"const renaTheme: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ \"--mona-indicator-color\": \"var(--color-primary)\"; \"--mona-indicator-foreground\": \"var(--color-primary-foreground)\"; \"--mona-primary-text-color\": \"var(--color-primary)\"; \"--mona-focus-ring-opacity\": \"100%\"; \"--mona-focus-ring-width\": \"1px\"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ \"--mona-indicator-color\": \"var(--color-focus-indicator)\"; \"--mona-indicator-foreground\": \"#111827\"; \"--mona-primary-text-color\": \"var(--color-focus-indicator)\"; \"--mona-focus-ring-opacity\": \"100%\"; \"--mona-focus-ring-width\": \"1px\"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>;"},{"description":"The element the theme is written to. Defaults to `<html>`. Replace it with `provideThemeRoot()`.","kind":"constant","name":"THEME_ROOT","signature":"const THEME_ROOT: InjectionToken<HTMLElement | null>;"},{"description":"Where the theme is remembered when `provideThemeOptions()` has a `persistKey`. Defaults to `localStorage`.\nReplace it with `provideThemeStorage()`.","kind":"constant","name":"THEME_STORAGE","signature":"const THEME_STORAGE: InjectionToken<ThemeStorage>;"},{"description":"","kind":"constant","name":"THEME_STRATEGY","signature":"const THEME_STRATEGY: InjectionToken<ThemeStrategy>;"},{"description":"Where the theme is remembered. Supplied through `THEME_STORAGE`, and only ever consulted when\n`provideThemeOptions()` was given a `persistKey`.","extends":[],"kind":"interface","methods":[{"description":"The remembered preference for `key`, or `null` when nothing has been stored under it, including when this\nstorage can't answer, such as on the server. A `null` leaves the theme on `initialTheme`.","name":"read","signature":"read(key: string): ThemePreference | null"},{"description":"Records the preference for `key`. Failing to store it must not throw.","name":"write","signature":"write(key: string, preference: ThemePreference): void"}],"name":"ThemeStorage","properties":[],"usedBy":["provideThemeStorage","THEME_STORAGE"]},{"description":"","extends":[],"kind":"interface","methods":[{"description":"The registered themes and their variants, for `ThemeService.availableThemes()`.","name":"availableThemes","signature":"availableThemes(): readonly ThemeAvailability[]"},{"description":"","name":"resolve","signature":"resolve(selection: ThemeSelection): ThemeProfile"}],"name":"ThemeStrategy","properties":[],"usedBy":["THEME_STRATEGY"]},{"description":"Inputs to the sidebar colour roles. Everything but the background falls back to the theme's\ncorresponding page role, so a theme only states what it wants the sidebar to do differently.","extends":[],"kind":"interface","methods":[],"name":"SidebarColorRoleSeeds","properties":[{"description":"","name":"accent","optional":true,"readonly":true,"type":"string"},{"description":"","name":"accentForeground","optional":true,"readonly":true,"type":"string"},{"description":"","name":"background","readonly":true,"type":"string"},{"description":"","name":"border","optional":true,"readonly":true,"type":"string"},{"description":"","name":"foreground","optional":true,"readonly":true,"type":"string"},{"description":"","name":"primary","optional":true,"readonly":true,"type":"string"},{"description":"","name":"primaryForeground","optional":true,"readonly":true,"type":"string"},{"description":"","name":"ring","optional":true,"readonly":true,"type":"string"}],"usedBy":["createSidebarColorRoles"]},{"description":"A registered theme and the variants it has.","extends":[],"kind":"interface","methods":[],"name":"ThemeAvailability","properties":[{"description":"","name":"name","readonly":true,"type":"ThemeName"},{"description":"","name":"variants","readonly":true,"type":"readonly ThemeVariant[]"}],"usedBy":["DefaultThemeStrategy","ThemeService","ThemeStrategy"]},{"description":"","extends":[],"kind":"interface","methods":[],"name":"ThemeColorPaletteRegistration","properties":[{"description":"","name":"seeds","readonly":true,"type":"ThemeColorPaletteSeeds"},{"description":"","name":"theme","readonly":true,"type":"ThemeName"}],"usedBy":["provideThemeColorPalette"]},{"description":"","extends":[],"kind":"interface","methods":[],"name":"ThemeColorPaletteSeeds","properties":[{"description":"","name":"error","optional":true,"readonly":true,"type":"string"},{"description":"","name":"info","optional":true,"readonly":true,"type":"string"},{"description":"","name":"primary","readonly":true,"type":"string"},{"description":"","name":"secondary","optional":true,"readonly":true,"type":"string"},{"description":"","name":"success","optional":true,"readonly":true,"type":"string"},{"description":"","name":"warning","optional":true,"readonly":true,"type":"string"}],"usedBy":["generateThemeColorPalette","ThemeColorPaletteRegistration","ThemeService"]},{"description":"","extends":[],"kind":"interface","methods":[],"name":"ThemeFamilyRegistration","properties":[{"description":"","name":"name","readonly":true,"type":"ThemeName"},{"description":"","name":"variants","readonly":true,"type":"ThemeFamilyVariants"}],"usedBy":["provideThemeFamily"]},{"description":"","extends":[],"kind":"interface","methods":[],"name":"ThemeOptions","properties":[{"description":"","name":"initialTheme","readonly":true,"type":"ThemePreference"},{"description":"Remembers the theme under this key, in `THEME_STORAGE`, and restores it in place of `initialTheme`. Nothing is\nstored without one. A runtime color palette isn't part of what's remembered.","name":"persistKey","optional":true,"readonly":true,"type":"string"}],"usedBy":["provideThemeOptions"]},{"description":"","extends":[],"kind":"interface","methods":[],"name":"ThemeOverrideRegistration","properties":[{"description":"","name":"common","optional":true,"readonly":true,"type":"ThemeProfileOverrides"},{"description":"","name":"dark","optional":true,"readonly":true,"type":"ThemeProfileOverrides"},{"description":"","name":"light","optional":true,"readonly":true,"type":"ThemeProfileOverrides"},{"description":"","name":"theme","readonly":true,"type":"ThemeName"}],"usedBy":["provideThemeOverrides"]},{"description":"What's asked for: a theme and a variant, which can be `\"system\"`.","extends":[],"kind":"interface","methods":[],"name":"ThemePreference","properties":[{"description":"","name":"name","readonly":true,"type":"ThemeName"},{"description":"","name":"variant","readonly":true,"type":"ThemeVariantPreference"}],"usedBy":["LocalStorageThemeStorage","ThemeOptions","ThemeService","ThemeStorage"]},{"description":"","extends":[],"kind":"interface","methods":[],"name":"ThemeProfile","properties":[{"description":"","name":"colors","readonly":true,"type":"ThemeColors"},{"description":"","name":"components","readonly":true,"type":"ThemeComponents"},{"description":"","name":"custom","optional":true,"readonly":true,"type":"ThemeVariables"},{"description":"","name":"effects","readonly":true,"type":"ThemeEffects"},{"description":"","name":"motion","readonly":true,"type":"ThemeMotion"},{"description":"","name":"shadows","readonly":true,"type":"ThemeShadows"},{"description":"","name":"shape","readonly":true,"type":"ThemeShape"}],"usedBy":["DefaultThemeStrategy","flattenThemeProfile","ThemeFamilyVariants","ThemeService","ThemeStrategy"]},{"description":"","extends":[],"kind":"interface","methods":[],"name":"ThemeProfileOverrides","properties":[{"description":"","name":"colors","optional":true,"readonly":true,"type":"ThemeColors"},{"description":"","name":"components","optional":true,"readonly":true,"type":"Partial<ThemeComponents>"},{"description":"","name":"custom","optional":true,"readonly":true,"type":"ThemeVariables"},{"description":"","name":"effects","optional":true,"readonly":true,"type":"Partial<ThemeEffects>"},{"description":"","name":"motion","optional":true,"readonly":true,"type":"Partial<ThemeMotion>"},{"description":"","name":"shadows","optional":true,"readonly":true,"type":"ThemeShadows"},{"description":"","name":"shape","optional":true,"readonly":true,"type":"Partial<ThemeShape>"}],"usedBy":["ThemeOverrideRegistration"]},{"description":"What's in effect: a theme and the variant it came to.","extends":[],"kind":"interface","methods":[],"name":"ThemeSelection","properties":[{"description":"","name":"name","readonly":true,"type":"ThemeName"},{"description":"","name":"variant","readonly":true,"type":"ThemeVariant"}],"usedBy":["DefaultThemeStrategy","ThemeService","ThemeStrategy"]},{"description":"","kind":"type","name":"BuiltInThemeName","signature":"type BuiltInThemeName = \"anna\" | \"luna\" | \"mona\" | \"rena\";"},{"description":"","kind":"type","name":"GeneratedThemeColorPalette","signature":"type GeneratedThemeColorPalette = Readonly<Record<ThemeVariant, ThemeColors>>;","usedBy":["generateThemeColorPalette"]},{"description":"","kind":"type","name":"ThemeColors","signature":"type ThemeColors = Readonly<Record<ThemeColorVariable, string>>;","usedBy":["createSidebarColorRoles","GeneratedThemeColorPalette","ThemeProfile","ThemeProfileOverrides"]},{"description":"","kind":"type","name":"ThemeColorVariable","signature":"type ThemeColorVariable = `--color-${string}`;","usedBy":["ThemeColors"]},{"description":"","kind":"type","name":"ThemeComponents","signature":"type ThemeComponents = Readonly<Record<ThemeComponentVariable, string>>;","usedBy":["ThemeProfile","ThemeProfileOverrides"]},{"description":"","kind":"type","name":"ThemeComponentVariable","signature":"type ThemeComponentVariable = | \"--mona-calendar-background\" | \"--mona-calendar-shadow\" | \"--mona-list-background\" | \"--mona-list-disabled-background\" | \"--mona-list-group-background\" | \"--mona-list-group-border-width\" | \"--mona-list-group-font-weight\" | \"--mona-menubar-background\" | \"--mona-menubar-shadow\" | \"--mona-pager-background\" | \"--mona-slider-handle-border-color\";","usedBy":["annaTheme","builtInThemes","monaTheme","renaTheme","ThemeComponents"]},{"description":"","kind":"type","name":"ThemeEffectLevel","signature":"type ThemeEffectLevel = \"control\" | \"overlay\" | \"raised\";"},{"description":"","kind":"type","name":"ThemeEffects","signature":"type ThemeEffects = Readonly<Record<ThemeEffectVariable, string>>;","usedBy":["ThemeProfile","ThemeProfileOverrides"]},{"description":"","kind":"type","name":"ThemeEffectVariable","signature":"type ThemeEffectVariable = | `--mona-effect-${ThemeEffectLevel}-background-color` | `--mona-effect-${ThemeEffectLevel}-fallback-background-color` | `--mona-effect-${ThemeEffectLevel}-background-image` | `--mona-effect-${ThemeEffectLevel}-backdrop-filter`;","usedBy":["annaTheme","builtInThemes","monaTheme","renaTheme","ThemeEffects"]},{"description":"","kind":"type","name":"ThemeFamilyVariants","signature":"type ThemeFamilyVariants = Readonly< | { readonly dark: ThemeProfile; readonly light?: ThemeProfile } | { readonly dark?: ThemeProfile; readonly light: ThemeProfile } >;","usedBy":["ThemeFamilyRegistration"]},{"description":"","kind":"type","name":"ThemeMotion","signature":"type ThemeMotion = Readonly<Record<ThemeMotionVariable, string>>;","usedBy":["ThemeProfile","ThemeProfileOverrides"]},{"description":"","kind":"type","name":"ThemeMotionVariable","signature":"type ThemeMotionVariable = \"--mona-motion-fast\" | \"--mona-motion-standard\";","usedBy":["annaTheme","builtInThemes","monaTheme","renaTheme","ThemeMotion"]},{"description":"","kind":"type","name":"ThemeName","signature":"type ThemeName = string;","usedBy":["ThemeAvailability","ThemeColorPaletteRegistration","ThemeFamilyRegistration","ThemeOverrideRegistration","ThemePreference","ThemeSelection","ThemeService"]},{"description":"","kind":"type","name":"ThemeShadows","signature":"type ThemeShadows = Readonly<Record<ThemeShadowVariable, string>>;","usedBy":["ThemeProfile","ThemeProfileOverrides"]},{"description":"","kind":"type","name":"ThemeShadowVariable","signature":"type ThemeShadowVariable = `--shadow-${string}`;","usedBy":["ThemeShadows"]},{"description":"","kind":"type","name":"ThemeShape","signature":"type ThemeShape = Readonly<Record<ThemeShapeVariable, string>>;","usedBy":["ThemeProfile","ThemeProfileOverrides"]},{"description":"","kind":"type","name":"ThemeShapeVariable","signature":"type ThemeShapeVariable = \"--radius-sm\" | \"--radius-md\" | \"--radius-lg\";","usedBy":["annaTheme","builtInThemes","lunaTheme","monaTheme","renaTheme","ThemeShape"]},{"description":"","kind":"type","name":"ThemeVariable","signature":"type ThemeVariable = `--${string}`;","usedBy":["ThemeVariables"]},{"description":"","kind":"type","name":"ThemeVariables","signature":"type ThemeVariables = Readonly<Record<ThemeVariable, string>>;","usedBy":["flattenThemeProfile","ThemeProfile","ThemeProfileOverrides"]},{"description":"","kind":"type","name":"ThemeVariant","signature":"type ThemeVariant = \"light\" | \"dark\";","usedBy":["GeneratedThemeColorPalette","ThemeAvailability","ThemeSelection","ThemeService","ThemeVariantPreference"]},{"description":"A variant, or `\"system\"` to follow the operating system's light or dark setting.","kind":"type","name":"ThemeVariantPreference","signature":"type ThemeVariantPreference = ThemeVariant | \"system\";","usedBy":["ThemePreference"]}]}
|
|
1
|
+
{"links":{"BuiltInThemeName":"theme","DefaultThemeStrategy":"theme","GeneratedThemeColorPalette":"theme","LocalStorageThemeStorage":"theme","SidebarColorRoleSeeds":"theme","THEME_ROOT":"theme","THEME_STORAGE":"theme","THEME_STRATEGY":"theme","ThemeAvailability":"theme","ThemeColorPaletteRegistration":"theme","ThemeColorPaletteSeeds":"theme","ThemeColorVariable":"theme","ThemeColors":"theme","ThemeComponentVariable":"theme","ThemeComponents":"theme","ThemeEffectLevel":"theme","ThemeEffectVariable":"theme","ThemeEffects":"theme","ThemeFamilyRegistration":"theme","ThemeFamilyVariants":"theme","ThemeMotion":"theme","ThemeMotionVariable":"theme","ThemeName":"theme","ThemeOptions":"theme","ThemeOverrideRegistration":"theme","ThemePreference":"theme","ThemeProfile":"theme","ThemeProfileOverrides":"theme","ThemeSelection":"theme","ThemeService":"theme","ThemeShadowVariable":"theme","ThemeShadows":"theme","ThemeShape":"theme","ThemeShapeVariable":"theme","ThemeStorage":"theme","ThemeStrategy":"theme","ThemeVariable":"theme","ThemeVariables":"theme","ThemeVariant":"theme","ThemeVariantPreference":"theme","annaTheme":"theme","builtInThemes":"theme","createSidebarColorRoles":"theme","flattenThemeProfile":"theme","generateThemeColorPalette":"theme","lunaTheme":"theme","monaTheme":"theme","provideThemeColorPalette":"theme","provideThemeFamily":"theme","provideThemeOptions":"theme","provideThemeOverrides":"theme","provideThemeRoot":"theme","provideThemeStorage":"theme","renaTheme":"theme"},"name":"theme","pages":[],"symbols":[{"description":"","kind":"service","name":"ThemeService","inputs":[],"methods":[{"description":"The registered themes and the variants each one has. A custom `ThemeStrategy` reports them through its\noptional `availableThemes()`, and this is empty for one that doesn't.","name":"availableThemes","signature":"availableThemes(): readonly ThemeAvailability[]"},{"description":"Removes the runtime color palette and restores the registered profile and provider overrides.","name":"clearColorPalette","signature":"clearColorPalette(): void"},{"description":"Applies a runtime-generated semantic color palette after all registered profile overrides.\nThe palette remains active across theme and light/dark switches until cleared.","name":"setColorPalette","signature":"setColorPalette(seeds: ThemeColorPaletteSeeds): void"},{"description":"Updates only the runtime primary seed while retaining any other active runtime seeds.","name":"setPrimaryColor","signature":"setPrimaryColor(primary: string): void"},{"description":"Switches the theme, and remembers it if a `persistKey` was given. `\"system\"` follows the operating system's\nsetting from then on, and takes the variant a theme has when it only has one.","name":"setTheme","signature":"setTheme(preference: ThemePreference): void"},{"description":"Whether `setTheme` would accept this. A saved choice can be checked with it before it's restored.","name":"supportsVariant","signature":"supportsVariant(name: ThemeName, variant: ThemeVariant): boolean"}],"outputs":[],"properties":[{"description":"The consumer-provided seeds for the active runtime color palette, or `null` when provider defaults are active.","name":"colorPaletteSeeds","readonly":true,"type":"Signal<ThemeColorPaletteSeeds | null>"},{"description":"What was asked for, which is where `\"system\"` shows. `selection` says what that came to.","name":"preference","readonly":true,"type":"Signal<ThemePreference>"},{"description":"","name":"profile","readonly":true,"type":"Signal<ThemeProfile>"},{"description":"The theme and variant in effect. It's always `light` or `dark`, whatever was asked for.","name":"selection","readonly":true,"type":"Signal<ThemeSelection>"},{"description":"","name":"themeName","readonly":true,"type":"Signal<string>"},{"description":"","name":"themeVariant","readonly":true,"type":"Signal<ThemeVariant>"}]},{"description":"","kind":"class","name":"DefaultThemeStrategy","inputs":[],"methods":[{"description":"","name":"availableThemes","signature":"availableThemes(): readonly ThemeAvailability[]"},{"description":"","name":"resolve","signature":"resolve(selection: ThemeSelection): ThemeProfile"}],"outputs":[],"properties":[]},{"description":"The default `ThemeStorage`: `localStorage`, as JSON, under the `persistKey`.\n\nReads report `null` anywhere `localStorage` can't answer, and writes are dropped there. That covers the\nserver, a browser that refuses it, and a full quota. `ThemeService` checks what comes back, so a value that\nisn't a preference, or names a theme that's gone, counts as nothing stored.\n\nA server-rendered application gets `initialTheme` in its markup and the remembered theme on hydration, which\nshows as a flash. Storage that the server can read too, such as a cookie, avoids it; supply it through\n`provideThemeStorage()`.","kind":"class","name":"LocalStorageThemeStorage","inputs":[],"methods":[{"description":"","name":"read","signature":"read(key: string): ThemePreference | null"},{"description":"","name":"write","signature":"write(key: string, preference: ThemePreference): void"}],"outputs":[],"properties":[]},{"description":"Builds the sidebar's own colour roles. The sidebar is a persistent chrome region rather than page\ncontent, so it is given a surface of its own instead of borrowing the page's — which is what lets a\ntheme sit it slightly apart from the content beside it without every consumer restyling it.\n\nOnly `background` has to be chosen per theme. Hover defaults to the neutral interaction roles, while\nthe sidebar's primary pair follows the selected-state roles. This keeps ordinary navigation quiet,\nreserves identity colour for the current item, and makes runtime primary-palette changes flow through\nwithout rebuilding the sidebar recipe.","kind":"function","name":"createSidebarColorRoles","signature":"function createSidebarColorRoles(seeds: SidebarColorRoleSeeds): ThemeColors;"},{"description":"","kind":"function","name":"flattenThemeProfile","signature":"function flattenThemeProfile(profile: ThemeProfile): ThemeVariables;"},{"description":"Generates accessible light and dark color-role overrides from consumer-provided CSS colors.\nSeed lightness is treated as source identity; the generated variants use fixed tonal anchors.","kind":"function","name":"generateThemeColorPalette","signature":"function generateThemeColorPalette(seeds: ThemeColorPaletteSeeds): GeneratedThemeColorPalette;"},{"description":"Generates a light and a dark palette from the seeds, and applies whichever the theme has.","kind":"function","name":"provideThemeColorPalette","signature":"function provideThemeColorPalette(registration: ThemeColorPaletteRegistration): EnvironmentProviders;"},{"description":"","kind":"function","name":"provideThemeFamily","signature":"function provideThemeFamily(registration: ThemeFamilyRegistration): EnvironmentProviders;"},{"description":"","kind":"function","name":"provideThemeOptions","signature":"function provideThemeOptions(options: ThemeOptions): EnvironmentProviders;"},{"description":"","kind":"function","name":"provideThemeOverrides","signature":"function provideThemeOverrides(registration: ThemeOverrideRegistration): EnvironmentProviders;"},{"description":"Applies the theme to an element in place of `<html>`, for an application embedded in part of a page. Overlays\nrender outside any such element, so the overlay container gets the theme too. Each application has its own\noverlay container, so two embedded applications can have two themes.","kind":"function","name":"provideThemeRoot","signature":"function provideThemeRoot(root: HTMLElement | (() => HTMLElement | null)): EnvironmentProviders;"},{"description":"Replaces where the theme is remembered, which is `localStorage` by default. Only used when\n`provideThemeOptions()` has a `persistKey`. Supply something the server can read too, such as a cookie, to have a\nserver-rendered application render the remembered theme rather than correcting it on hydration.","kind":"function","name":"provideThemeStorage","signature":"function provideThemeStorage(storage: ThemeStorage | (() => ThemeStorage)): EnvironmentProviders;"},{"description":"","kind":"constant","name":"annaTheme","signature":"const annaTheme: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ \"--mona-indicator-color\": \"var(--color-primary)\"; \"--mona-indicator-foreground\": \"var(--color-primary-foreground)\"; \"--mona-primary-text-color\": \"var(--color-primary)\"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ \"--mona-indicator-color\": \"var(--color-primary-border)\"; \"--mona-indicator-foreground\": \"#161718\"; \"--mona-primary-text-color\": \"var(--color-focus-indicator)\"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>;"},{"description":"","kind":"constant","name":"builtInThemes","signature":"const builtInThemes: Readonly<{ anna: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ \"--mona-indicator-color\": \"var(--color-primary)\"; \"--mona-indicator-foreground\": \"var(--color-primary-foreground)\"; \"--mona-primary-text-color\": \"var(--color-primary)\"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ \"--mona-indicator-color\": \"var(--color-primary-border)\"; \"--mona-indicator-foreground\": \"#161718\"; \"--mona-primary-text-color\": \"var(--color-focus-indicator)\"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>; luna: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; motion: Readonly<{ \"--mona-motion-fast\": \"180ms\"; \"--mona-motion-standard\": \"320ms\"; }>; effects: Readonly<{ \"--mona-effect-control-background-color\": \"rgb(243 244 245 / 0.78)\"; \"--mona-effect-control-fallback-background-color\": \"#f3f4f5\"; \"--mona-effect-control-background-image\": \"none\"; \"--mona-effect-control-backdrop-filter\": \"blur(16px) saturate(110%)\"; \"--mona-effect-raised-background-color\": \"rgb(252 252 252 / 0.76)\"; \"--mona-effect-raised-fallback-background-color\": \"#fbfbfb\"; \"--mona-effect-raised-background-image\": \"none\"; \"--mona-effect-raised-backdrop-filter\": \"blur(22px) saturate(112%)\"; \"--mona-effect-overlay-background-color\": \"rgb(249 249 250 / 0.72)\"; \"--mona-effect-overlay-fallback-background-color\": \"#f9f9fa\"; \"--mona-effect-overlay-background-image\": \"none\"; \"--mona-effect-overlay-backdrop-filter\": \"blur(28px) saturate(115%)\"; \"--mona-effect-backdrop-background-color\": string; \"--mona-effect-backdrop-fallback-background-color\": string; \"--mona-effect-backdrop-background-image\": string; \"--mona-effect-backdrop-backdrop-filter\": string; }>; shape: Readonly<Record<ThemeShapeVariable, string>>; custom: Readonly<{ \"--mona-date-popup-calendar-backdrop-filter\": \"none\"; \"--mona-date-popup-calendar-background\": \"transparent\"; \"--mona-date-popup-calendar-background-image\": \"none\"; \"--mona-dropdown-popup-list-background\": \"transparent\"; \"--mona-input-addon-background\": \"color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)\"; \"--mona-menu-item-hover-background\": \"rgb(37 37 37 / 0.06)\"; \"--mona-menu-item-hover-foreground\": \"var(--color-foreground)\"; \"--mona-menubar-backdrop-filter\": \"var(--mona-effect-control-backdrop-filter)\"; \"--mona-menubar-background-image\": \"var(--mona-effect-control-background-image)\"; }>; components: Readonly<{ \"--mona-calendar-background\": \"var(--mona-effect-raised-background-color)\"; \"--mona-calendar-shadow\": \"var(--shadow-raised)\"; \"--mona-list-background\": \"var(--color-surface)\"; \"--mona-list-disabled-background\": \"var(--color-disabled-background)\"; \"--mona-list-group-background\": \"rgb(37 37 37 / 0.05)\"; \"--mona-list-group-border-width\": \"1px\"; \"--mona-list-group-font-weight\": \"650\"; \"--mona-menubar-background\": \"var(--mona-effect-control-background-color)\"; \"--mona-menubar-shadow\": \"var(--shadow-control)\"; \"--mona-pager-background\": \"var(--mona-effect-raised-background-color)\"; \"--mona-slider-handle-border-color\": \"var(--color-border-control)\"; }>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; motion: Readonly<{ \"--mona-motion-fast\": \"180ms\"; \"--mona-motion-standard\": \"320ms\"; }>; effects: Readonly<{ \"--mona-effect-control-background-color\": \"rgb(37 37 39 / 0.74)\"; \"--mona-effect-control-fallback-background-color\": \"#252527\"; \"--mona-effect-control-background-image\": \"none\"; \"--mona-effect-control-backdrop-filter\": \"blur(16px) saturate(110%)\"; \"--mona-effect-raised-background-color\": \"rgb(32 32 34 / 0.78)\"; \"--mona-effect-raised-fallback-background-color\": \"#202022\"; \"--mona-effect-raised-background-image\": \"none\"; \"--mona-effect-raised-backdrop-filter\": \"blur(22px) saturate(112%)\"; \"--mona-effect-overlay-background-color\": \"rgb(38 38 40 / 0.74)\"; \"--mona-effect-overlay-fallback-background-color\": \"#262628\"; \"--mona-effect-overlay-background-image\": \"none\"; \"--mona-effect-overlay-backdrop-filter\": \"blur(28px) saturate(115%)\"; \"--mona-effect-backdrop-background-color\": string; \"--mona-effect-backdrop-fallback-background-color\": string; \"--mona-effect-backdrop-background-image\": string; \"--mona-effect-backdrop-backdrop-filter\": string; }>; shape: Readonly<Record<ThemeShapeVariable, string>>; custom: Readonly<{ \"--mona-date-popup-calendar-backdrop-filter\": \"none\"; \"--mona-date-popup-calendar-background\": \"transparent\"; \"--mona-date-popup-calendar-background-image\": \"none\"; \"--mona-dropdown-popup-list-background\": \"transparent\"; \"--mona-input-addon-background\": \"color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)\"; \"--mona-menubar-backdrop-filter\": \"var(--mona-effect-control-backdrop-filter)\"; \"--mona-menubar-background-image\": \"var(--mona-effect-control-background-image)\"; }>; components: Readonly<{ \"--mona-calendar-background\": \"var(--mona-effect-raised-background-color)\"; \"--mona-calendar-shadow\": \"var(--shadow-raised)\"; \"--mona-list-background\": \"var(--color-surface)\"; \"--mona-list-disabled-background\": \"var(--color-disabled-background)\"; \"--mona-list-group-background\": \"rgb(255 255 255 / 0.04)\"; \"--mona-list-group-border-width\": \"1px\"; \"--mona-list-group-font-weight\": \"650\"; \"--mona-menubar-background\": \"var(--mona-effect-control-background-color)\"; \"--mona-menubar-shadow\": \"var(--shadow-control)\"; \"--mona-pager-background\": \"var(--mona-effect-raised-background-color)\"; \"--mona-slider-handle-border-color\": \"var(--color-border-control)\"; }>; }>; }; }>; mona: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>; rena: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ \"--mona-indicator-color\": \"var(--color-primary)\"; \"--mona-indicator-foreground\": \"var(--color-primary-foreground)\"; \"--mona-primary-text-color\": \"var(--color-primary)\"; \"--mona-focus-ring-opacity\": \"100%\"; \"--mona-focus-ring-width\": \"1px\"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ \"--mona-indicator-color\": \"var(--color-focus-indicator)\"; \"--mona-indicator-foreground\": \"#111827\"; \"--mona-primary-text-color\": \"var(--color-focus-indicator)\"; \"--mona-focus-ring-opacity\": \"100%\"; \"--mona-focus-ring-width\": \"1px\"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>; }>;"},{"description":"","kind":"constant","name":"lunaTheme","signature":"const lunaTheme: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; motion: Readonly<{ \"--mona-motion-fast\": \"180ms\"; \"--mona-motion-standard\": \"320ms\"; }>; effects: Readonly<{ \"--mona-effect-control-background-color\": \"rgb(243 244 245 / 0.78)\"; \"--mona-effect-control-fallback-background-color\": \"#f3f4f5\"; \"--mona-effect-control-background-image\": \"none\"; \"--mona-effect-control-backdrop-filter\": \"blur(16px) saturate(110%)\"; \"--mona-effect-raised-background-color\": \"rgb(252 252 252 / 0.76)\"; \"--mona-effect-raised-fallback-background-color\": \"#fbfbfb\"; \"--mona-effect-raised-background-image\": \"none\"; \"--mona-effect-raised-backdrop-filter\": \"blur(22px) saturate(112%)\"; \"--mona-effect-overlay-background-color\": \"rgb(249 249 250 / 0.72)\"; \"--mona-effect-overlay-fallback-background-color\": \"#f9f9fa\"; \"--mona-effect-overlay-background-image\": \"none\"; \"--mona-effect-overlay-backdrop-filter\": \"blur(28px) saturate(115%)\"; \"--mona-effect-backdrop-background-color\": string; \"--mona-effect-backdrop-fallback-background-color\": string; \"--mona-effect-backdrop-background-image\": string; \"--mona-effect-backdrop-backdrop-filter\": string; }>; shape: Readonly<Record<ThemeShapeVariable, string>>; custom: Readonly<{ \"--mona-date-popup-calendar-backdrop-filter\": \"none\"; \"--mona-date-popup-calendar-background\": \"transparent\"; \"--mona-date-popup-calendar-background-image\": \"none\"; \"--mona-dropdown-popup-list-background\": \"transparent\"; \"--mona-input-addon-background\": \"color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)\"; \"--mona-menu-item-hover-background\": \"rgb(37 37 37 / 0.06)\"; \"--mona-menu-item-hover-foreground\": \"var(--color-foreground)\"; \"--mona-menubar-backdrop-filter\": \"var(--mona-effect-control-backdrop-filter)\"; \"--mona-menubar-background-image\": \"var(--mona-effect-control-background-image)\"; }>; components: Readonly<{ \"--mona-calendar-background\": \"var(--mona-effect-raised-background-color)\"; \"--mona-calendar-shadow\": \"var(--shadow-raised)\"; \"--mona-list-background\": \"var(--color-surface)\"; \"--mona-list-disabled-background\": \"var(--color-disabled-background)\"; \"--mona-list-group-background\": \"rgb(37 37 37 / 0.05)\"; \"--mona-list-group-border-width\": \"1px\"; \"--mona-list-group-font-weight\": \"650\"; \"--mona-menubar-background\": \"var(--mona-effect-control-background-color)\"; \"--mona-menubar-shadow\": \"var(--shadow-control)\"; \"--mona-pager-background\": \"var(--mona-effect-raised-background-color)\"; \"--mona-slider-handle-border-color\": \"var(--color-border-control)\"; }>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; motion: Readonly<{ \"--mona-motion-fast\": \"180ms\"; \"--mona-motion-standard\": \"320ms\"; }>; effects: Readonly<{ \"--mona-effect-control-background-color\": \"rgb(37 37 39 / 0.74)\"; \"--mona-effect-control-fallback-background-color\": \"#252527\"; \"--mona-effect-control-background-image\": \"none\"; \"--mona-effect-control-backdrop-filter\": \"blur(16px) saturate(110%)\"; \"--mona-effect-raised-background-color\": \"rgb(32 32 34 / 0.78)\"; \"--mona-effect-raised-fallback-background-color\": \"#202022\"; \"--mona-effect-raised-background-image\": \"none\"; \"--mona-effect-raised-backdrop-filter\": \"blur(22px) saturate(112%)\"; \"--mona-effect-overlay-background-color\": \"rgb(38 38 40 / 0.74)\"; \"--mona-effect-overlay-fallback-background-color\": \"#262628\"; \"--mona-effect-overlay-background-image\": \"none\"; \"--mona-effect-overlay-backdrop-filter\": \"blur(28px) saturate(115%)\"; \"--mona-effect-backdrop-background-color\": string; \"--mona-effect-backdrop-fallback-background-color\": string; \"--mona-effect-backdrop-background-image\": string; \"--mona-effect-backdrop-backdrop-filter\": string; }>; shape: Readonly<Record<ThemeShapeVariable, string>>; custom: Readonly<{ \"--mona-date-popup-calendar-backdrop-filter\": \"none\"; \"--mona-date-popup-calendar-background\": \"transparent\"; \"--mona-date-popup-calendar-background-image\": \"none\"; \"--mona-dropdown-popup-list-background\": \"transparent\"; \"--mona-input-addon-background\": \"color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)\"; \"--mona-menubar-backdrop-filter\": \"var(--mona-effect-control-backdrop-filter)\"; \"--mona-menubar-background-image\": \"var(--mona-effect-control-background-image)\"; }>; components: Readonly<{ \"--mona-calendar-background\": \"var(--mona-effect-raised-background-color)\"; \"--mona-calendar-shadow\": \"var(--shadow-raised)\"; \"--mona-list-background\": \"var(--color-surface)\"; \"--mona-list-disabled-background\": \"var(--color-disabled-background)\"; \"--mona-list-group-background\": \"rgb(255 255 255 / 0.04)\"; \"--mona-list-group-border-width\": \"1px\"; \"--mona-list-group-font-weight\": \"650\"; \"--mona-menubar-background\": \"var(--mona-effect-control-background-color)\"; \"--mona-menubar-shadow\": \"var(--shadow-control)\"; \"--mona-pager-background\": \"var(--mona-effect-raised-background-color)\"; \"--mona-slider-handle-border-color\": \"var(--color-border-control)\"; }>; }>; }; }>;"},{"description":"","kind":"constant","name":"monaTheme","signature":"const monaTheme: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>;"},{"description":"","kind":"constant","name":"renaTheme","signature":"const renaTheme: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ \"--mona-indicator-color\": \"var(--color-primary)\"; \"--mona-indicator-foreground\": \"var(--color-primary-foreground)\"; \"--mona-primary-text-color\": \"var(--color-primary)\"; \"--mona-focus-ring-opacity\": \"100%\"; \"--mona-focus-ring-width\": \"1px\"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ \"--mona-indicator-color\": \"var(--color-focus-indicator)\"; \"--mona-indicator-foreground\": \"#111827\"; \"--mona-primary-text-color\": \"var(--color-focus-indicator)\"; \"--mona-focus-ring-opacity\": \"100%\"; \"--mona-focus-ring-width\": \"1px\"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>;"},{"description":"The element the theme is written to. Defaults to `<html>`. Replace it with `provideThemeRoot()`.","kind":"constant","name":"THEME_ROOT","signature":"const THEME_ROOT: InjectionToken<HTMLElement | null>;"},{"description":"Where the theme is remembered when `provideThemeOptions()` has a `persistKey`. Defaults to `localStorage`.\nReplace it with `provideThemeStorage()`.","kind":"constant","name":"THEME_STORAGE","signature":"const THEME_STORAGE: InjectionToken<ThemeStorage>;"},{"description":"","kind":"constant","name":"THEME_STRATEGY","signature":"const THEME_STRATEGY: InjectionToken<ThemeStrategy>;"},{"description":"Where the theme is remembered. Supplied through `THEME_STORAGE`, and only ever consulted when\n`provideThemeOptions()` was given a `persistKey`.","extends":[],"kind":"interface","methods":[{"description":"The remembered preference for `key`, or `null` when nothing has been stored under it, including when this\nstorage can't answer, such as on the server. A `null` leaves the theme on `initialTheme`.","name":"read","signature":"read(key: string): ThemePreference | null"},{"description":"Records the preference for `key`. Failing to store it must not throw.","name":"write","signature":"write(key: string, preference: ThemePreference): void"}],"name":"ThemeStorage","properties":[],"usedBy":["provideThemeStorage","THEME_STORAGE"]},{"description":"","extends":[],"kind":"interface","methods":[{"description":"The registered themes and their variants, for `ThemeService.availableThemes()`.","name":"availableThemes","signature":"availableThemes(): readonly ThemeAvailability[]"},{"description":"","name":"resolve","signature":"resolve(selection: ThemeSelection): ThemeProfile"}],"name":"ThemeStrategy","properties":[],"usedBy":["THEME_STRATEGY"]},{"description":"Inputs to the sidebar colour roles. Everything but the background falls back to the theme's\ncorresponding page role, so a theme only states what it wants the sidebar to do differently.","extends":[],"kind":"interface","methods":[],"name":"SidebarColorRoleSeeds","properties":[{"description":"","name":"accent","optional":true,"readonly":true,"type":"string"},{"description":"","name":"accentForeground","optional":true,"readonly":true,"type":"string"},{"description":"","name":"background","readonly":true,"type":"string"},{"description":"","name":"border","optional":true,"readonly":true,"type":"string"},{"description":"","name":"foreground","optional":true,"readonly":true,"type":"string"},{"description":"","name":"primary","optional":true,"readonly":true,"type":"string"},{"description":"","name":"primaryForeground","optional":true,"readonly":true,"type":"string"},{"description":"","name":"ring","optional":true,"readonly":true,"type":"string"}],"usedBy":["createSidebarColorRoles"]},{"description":"A registered theme and the variants it has.","extends":[],"kind":"interface","methods":[],"name":"ThemeAvailability","properties":[{"description":"","name":"name","readonly":true,"type":"ThemeName"},{"description":"","name":"variants","readonly":true,"type":"readonly ThemeVariant[]"}],"usedBy":["DefaultThemeStrategy","ThemeService","ThemeStrategy"]},{"description":"","extends":[],"kind":"interface","methods":[],"name":"ThemeColorPaletteRegistration","properties":[{"description":"","name":"seeds","readonly":true,"type":"ThemeColorPaletteSeeds"},{"description":"","name":"theme","readonly":true,"type":"ThemeName"}],"usedBy":["provideThemeColorPalette"]},{"description":"","extends":[],"kind":"interface","methods":[],"name":"ThemeColorPaletteSeeds","properties":[{"description":"","name":"error","optional":true,"readonly":true,"type":"string"},{"description":"","name":"info","optional":true,"readonly":true,"type":"string"},{"description":"","name":"primary","readonly":true,"type":"string"},{"description":"","name":"secondary","optional":true,"readonly":true,"type":"string"},{"description":"","name":"success","optional":true,"readonly":true,"type":"string"},{"description":"","name":"warning","optional":true,"readonly":true,"type":"string"}],"usedBy":["generateThemeColorPalette","ThemeColorPaletteRegistration","ThemeService"]},{"description":"","extends":[],"kind":"interface","methods":[],"name":"ThemeFamilyRegistration","properties":[{"description":"","name":"name","readonly":true,"type":"ThemeName"},{"description":"","name":"variants","readonly":true,"type":"ThemeFamilyVariants"}],"usedBy":["provideThemeFamily"]},{"description":"","extends":[],"kind":"interface","methods":[],"name":"ThemeOptions","properties":[{"description":"","name":"initialTheme","readonly":true,"type":"ThemePreference"},{"description":"Remembers the theme under this key, in `THEME_STORAGE`, and restores it in place of `initialTheme`. Nothing is\nstored without one. A runtime color palette isn't part of what's remembered.","name":"persistKey","optional":true,"readonly":true,"type":"string"}],"usedBy":["provideThemeOptions"]},{"description":"","extends":[],"kind":"interface","methods":[],"name":"ThemeOverrideRegistration","properties":[{"description":"","name":"common","optional":true,"readonly":true,"type":"ThemeProfileOverrides"},{"description":"","name":"dark","optional":true,"readonly":true,"type":"ThemeProfileOverrides"},{"description":"","name":"light","optional":true,"readonly":true,"type":"ThemeProfileOverrides"},{"description":"","name":"theme","readonly":true,"type":"ThemeName"}],"usedBy":["provideThemeOverrides"]},{"description":"What's asked for: a theme and a variant, which can be `\"system\"`.","extends":[],"kind":"interface","methods":[],"name":"ThemePreference","properties":[{"description":"","name":"name","readonly":true,"type":"ThemeName"},{"description":"","name":"variant","readonly":true,"type":"ThemeVariantPreference"}],"usedBy":["LocalStorageThemeStorage","ThemeOptions","ThemeService","ThemeStorage"]},{"description":"","extends":[],"kind":"interface","methods":[],"name":"ThemeProfile","properties":[{"description":"","name":"colors","readonly":true,"type":"ThemeColors"},{"description":"","name":"components","readonly":true,"type":"ThemeComponents"},{"description":"","name":"custom","optional":true,"readonly":true,"type":"ThemeVariables"},{"description":"","name":"effects","readonly":true,"type":"ThemeEffects"},{"description":"","name":"motion","readonly":true,"type":"ThemeMotion"},{"description":"","name":"shadows","readonly":true,"type":"ThemeShadows"},{"description":"","name":"shape","readonly":true,"type":"ThemeShape"}],"usedBy":["DefaultThemeStrategy","flattenThemeProfile","ThemeFamilyVariants","ThemeService","ThemeStrategy"]},{"description":"","extends":[],"kind":"interface","methods":[],"name":"ThemeProfileOverrides","properties":[{"description":"","name":"colors","optional":true,"readonly":true,"type":"ThemeColors"},{"description":"","name":"components","optional":true,"readonly":true,"type":"Partial<ThemeComponents>"},{"description":"","name":"custom","optional":true,"readonly":true,"type":"ThemeVariables"},{"description":"","name":"effects","optional":true,"readonly":true,"type":"Partial<ThemeEffects>"},{"description":"","name":"motion","optional":true,"readonly":true,"type":"Partial<ThemeMotion>"},{"description":"","name":"shadows","optional":true,"readonly":true,"type":"ThemeShadows"},{"description":"","name":"shape","optional":true,"readonly":true,"type":"Partial<ThemeShape>"}],"usedBy":["ThemeOverrideRegistration"]},{"description":"What's in effect: a theme and the variant it came to.","extends":[],"kind":"interface","methods":[],"name":"ThemeSelection","properties":[{"description":"","name":"name","readonly":true,"type":"ThemeName"},{"description":"","name":"variant","readonly":true,"type":"ThemeVariant"}],"usedBy":["DefaultThemeStrategy","ThemeService","ThemeStrategy"]},{"description":"","kind":"type","name":"BuiltInThemeName","signature":"type BuiltInThemeName = \"anna\" | \"luna\" | \"mona\" | \"rena\";"},{"description":"","kind":"type","name":"GeneratedThemeColorPalette","signature":"type GeneratedThemeColorPalette = Readonly<Record<ThemeVariant, ThemeColors>>;","usedBy":["generateThemeColorPalette"]},{"description":"","kind":"type","name":"ThemeColors","signature":"type ThemeColors = Readonly<Record<ThemeColorVariable, string>>;","usedBy":["createSidebarColorRoles","GeneratedThemeColorPalette","ThemeProfile","ThemeProfileOverrides"]},{"description":"","kind":"type","name":"ThemeColorVariable","signature":"type ThemeColorVariable = `--color-${string}`;","usedBy":["ThemeColors"]},{"description":"","kind":"type","name":"ThemeComponents","signature":"type ThemeComponents = Readonly<Record<ThemeComponentVariable, string>>;","usedBy":["ThemeProfile","ThemeProfileOverrides"]},{"description":"","kind":"type","name":"ThemeComponentVariable","signature":"type ThemeComponentVariable = | \"--mona-calendar-background\" | \"--mona-calendar-shadow\" | \"--mona-list-background\" | \"--mona-list-disabled-background\" | \"--mona-list-group-background\" | \"--mona-list-group-border-width\" | \"--mona-list-group-font-weight\" | \"--mona-menubar-background\" | \"--mona-menubar-shadow\" | \"--mona-pager-background\" | \"--mona-slider-handle-border-color\";","usedBy":["annaTheme","builtInThemes","monaTheme","renaTheme","ThemeComponents"]},{"description":"The materials a theme defines: `control` for fields, `raised` for elevated panels, `overlay` for menus, popups and\ndialogs, and `backdrop` for what dims the page behind a modal dialog, window or sheet.","kind":"type","name":"ThemeEffectLevel","signature":"type ThemeEffectLevel = \"backdrop\" | \"control\" | \"overlay\" | \"raised\";"},{"description":"","kind":"type","name":"ThemeEffects","signature":"type ThemeEffects = Readonly<Record<ThemeEffectVariable, string>>;","usedBy":["ThemeProfile","ThemeProfileOverrides"]},{"description":"","kind":"type","name":"ThemeEffectVariable","signature":"type ThemeEffectVariable = | `--mona-effect-${ThemeEffectLevel}-background-color` | `--mona-effect-${ThemeEffectLevel}-fallback-background-color` | `--mona-effect-${ThemeEffectLevel}-background-image` | `--mona-effect-${ThemeEffectLevel}-backdrop-filter`;","usedBy":["annaTheme","builtInThemes","monaTheme","renaTheme","ThemeEffects"]},{"description":"","kind":"type","name":"ThemeFamilyVariants","signature":"type ThemeFamilyVariants = Readonly< | { readonly dark: ThemeProfile; readonly light?: ThemeProfile } | { readonly dark?: ThemeProfile; readonly light: ThemeProfile } >;","usedBy":["ThemeFamilyRegistration"]},{"description":"","kind":"type","name":"ThemeMotion","signature":"type ThemeMotion = Readonly<Record<ThemeMotionVariable, string>>;","usedBy":["ThemeProfile","ThemeProfileOverrides"]},{"description":"","kind":"type","name":"ThemeMotionVariable","signature":"type ThemeMotionVariable = \"--mona-motion-fast\" | \"--mona-motion-standard\";","usedBy":["annaTheme","builtInThemes","monaTheme","renaTheme","ThemeMotion"]},{"description":"","kind":"type","name":"ThemeName","signature":"type ThemeName = string;","usedBy":["ThemeAvailability","ThemeColorPaletteRegistration","ThemeFamilyRegistration","ThemeOverrideRegistration","ThemePreference","ThemeSelection","ThemeService"]},{"description":"","kind":"type","name":"ThemeShadows","signature":"type ThemeShadows = Readonly<Record<ThemeShadowVariable, string>>;","usedBy":["ThemeProfile","ThemeProfileOverrides"]},{"description":"","kind":"type","name":"ThemeShadowVariable","signature":"type ThemeShadowVariable = `--shadow-${string}`;","usedBy":["ThemeShadows"]},{"description":"","kind":"type","name":"ThemeShape","signature":"type ThemeShape = Readonly<Record<ThemeShapeVariable, string>>;","usedBy":["ThemeProfile","ThemeProfileOverrides"]},{"description":"","kind":"type","name":"ThemeShapeVariable","signature":"type ThemeShapeVariable = \"--radius-sm\" | \"--radius-md\" | \"--radius-lg\";","usedBy":["annaTheme","builtInThemes","lunaTheme","monaTheme","renaTheme","ThemeShape"]},{"description":"","kind":"type","name":"ThemeVariable","signature":"type ThemeVariable = `--${string}`;","usedBy":["ThemeVariables"]},{"description":"","kind":"type","name":"ThemeVariables","signature":"type ThemeVariables = Readonly<Record<ThemeVariable, string>>;","usedBy":["flattenThemeProfile","ThemeProfile","ThemeProfileOverrides"]},{"description":"","kind":"type","name":"ThemeVariant","signature":"type ThemeVariant = \"light\" | \"dark\";","usedBy":["GeneratedThemeColorPalette","ThemeAvailability","ThemeSelection","ThemeService","ThemeVariantPreference"]},{"description":"A variant, or `\"system\"` to follow the operating system's light or dark setting.","kind":"type","name":"ThemeVariantPreference","signature":"type ThemeVariantPreference = ThemeVariant | \"system\";","usedBy":["ThemePreference"]}]}
|
package/docs/api/theme.md
CHANGED
|
@@ -167,7 +167,7 @@ const annaTheme: Readonly<{ name: string; variants: { light: Readonly<{ colors:
|
|
|
167
167
|
Constant.
|
|
168
168
|
|
|
169
169
|
```typescript
|
|
170
|
-
const builtInThemes: Readonly<{ anna: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ "--mona-indicator-color": "var(--color-primary)"; "--mona-indicator-foreground": "var(--color-primary-foreground)"; "--mona-primary-text-color": "var(--color-primary)"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ "--mona-indicator-color": "var(--color-primary-border)"; "--mona-indicator-foreground": "#161718"; "--mona-primary-text-color": "var(--color-focus-indicator)"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>; luna: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; motion: Readonly<{ "--mona-motion-fast": "180ms"; "--mona-motion-standard": "320ms"; }>; effects: Readonly<{ "--mona-effect-control-background-color": "rgb(243 244 245 / 0.78)"; "--mona-effect-control-fallback-background-color": "#f3f4f5"; "--mona-effect-control-background-image": "none"; "--mona-effect-control-backdrop-filter": "blur(16px) saturate(110%)"; "--mona-effect-raised-background-color": "rgb(252 252 252 / 0.76)"; "--mona-effect-raised-fallback-background-color": "#fbfbfb"; "--mona-effect-raised-background-image": "none"; "--mona-effect-raised-backdrop-filter": "blur(22px) saturate(112%)"; "--mona-effect-overlay-background-color": "rgb(249 249 250 / 0.72)"; "--mona-effect-overlay-fallback-background-color": "#f9f9fa"; "--mona-effect-overlay-background-image": "none"; "--mona-effect-overlay-backdrop-filter": "blur(28px) saturate(115%)"; }>; shape: Readonly<Record<ThemeShapeVariable, string>>; custom: Readonly<{ "--mona-date-popup-calendar-backdrop-filter": "none"; "--mona-date-popup-calendar-background": "transparent"; "--mona-date-popup-calendar-background-image": "none"; "--mona-dropdown-popup-list-background": "transparent"; "--mona-input-addon-background": "color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)"; "--mona-menu-item-hover-background": "rgb(37 37 37 / 0.06)"; "--mona-menu-item-hover-foreground": "var(--color-foreground)"; "--mona-menubar-backdrop-filter": "var(--mona-effect-control-backdrop-filter)"; "--mona-menubar-background-image": "var(--mona-effect-control-background-image)"; }>; components: Readonly<{ "--mona-calendar-background": "var(--mona-effect-raised-background-color)"; "--mona-calendar-shadow": "var(--shadow-raised)"; "--mona-list-background": "var(--color-surface)"; "--mona-list-disabled-background": "var(--color-disabled-background)"; "--mona-list-group-background": "rgb(37 37 37 / 0.05)"; "--mona-list-group-border-width": "1px"; "--mona-list-group-font-weight": "650"; "--mona-menubar-background": "var(--mona-effect-control-background-color)"; "--mona-menubar-shadow": "var(--shadow-control)"; "--mona-pager-background": "var(--mona-effect-raised-background-color)"; "--mona-slider-handle-border-color": "var(--color-border-control)"; }>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; motion: Readonly<{ "--mona-motion-fast": "180ms"; "--mona-motion-standard": "320ms"; }>; effects: Readonly<{ "--mona-effect-control-background-color": "rgb(37 37 39 / 0.74)"; "--mona-effect-control-fallback-background-color": "#252527"; "--mona-effect-control-background-image": "none"; "--mona-effect-control-backdrop-filter": "blur(16px) saturate(110%)"; "--mona-effect-raised-background-color": "rgb(32 32 34 / 0.78)"; "--mona-effect-raised-fallback-background-color": "#202022"; "--mona-effect-raised-background-image": "none"; "--mona-effect-raised-backdrop-filter": "blur(22px) saturate(112%)"; "--mona-effect-overlay-background-color": "rgb(38 38 40 / 0.74)"; "--mona-effect-overlay-fallback-background-color": "#262628"; "--mona-effect-overlay-background-image": "none"; "--mona-effect-overlay-backdrop-filter": "blur(28px) saturate(115%)"; }>; shape: Readonly<Record<ThemeShapeVariable, string>>; custom: Readonly<{ "--mona-date-popup-calendar-backdrop-filter": "none"; "--mona-date-popup-calendar-background": "transparent"; "--mona-date-popup-calendar-background-image": "none"; "--mona-dropdown-popup-list-background": "transparent"; "--mona-input-addon-background": "color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)"; "--mona-menubar-backdrop-filter": "var(--mona-effect-control-backdrop-filter)"; "--mona-menubar-background-image": "var(--mona-effect-control-background-image)"; }>; components: Readonly<{ "--mona-calendar-background": "var(--mona-effect-raised-background-color)"; "--mona-calendar-shadow": "var(--shadow-raised)"; "--mona-list-background": "var(--color-surface)"; "--mona-list-disabled-background": "var(--color-disabled-background)"; "--mona-list-group-background": "rgb(255 255 255 / 0.04)"; "--mona-list-group-border-width": "1px"; "--mona-list-group-font-weight": "650"; "--mona-menubar-background": "var(--mona-effect-control-background-color)"; "--mona-menubar-shadow": "var(--shadow-control)"; "--mona-pager-background": "var(--mona-effect-raised-background-color)"; "--mona-slider-handle-border-color": "var(--color-border-control)"; }>; }>; }; }>; mona: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>; rena: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ "--mona-indicator-color": "var(--color-primary)"; "--mona-indicator-foreground": "var(--color-primary-foreground)"; "--mona-primary-text-color": "var(--color-primary)"; "--mona-focus-ring-opacity": "100%"; "--mona-focus-ring-width": "1px"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ "--mona-indicator-color": "var(--color-focus-indicator)"; "--mona-indicator-foreground": "#111827"; "--mona-primary-text-color": "var(--color-focus-indicator)"; "--mona-focus-ring-opacity": "100%"; "--mona-focus-ring-width": "1px"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>; }>;
|
|
170
|
+
const builtInThemes: Readonly<{ anna: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ "--mona-indicator-color": "var(--color-primary)"; "--mona-indicator-foreground": "var(--color-primary-foreground)"; "--mona-primary-text-color": "var(--color-primary)"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ "--mona-indicator-color": "var(--color-primary-border)"; "--mona-indicator-foreground": "#161718"; "--mona-primary-text-color": "var(--color-focus-indicator)"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>; luna: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; motion: Readonly<{ "--mona-motion-fast": "180ms"; "--mona-motion-standard": "320ms"; }>; effects: Readonly<{ "--mona-effect-control-background-color": "rgb(243 244 245 / 0.78)"; "--mona-effect-control-fallback-background-color": "#f3f4f5"; "--mona-effect-control-background-image": "none"; "--mona-effect-control-backdrop-filter": "blur(16px) saturate(110%)"; "--mona-effect-raised-background-color": "rgb(252 252 252 / 0.76)"; "--mona-effect-raised-fallback-background-color": "#fbfbfb"; "--mona-effect-raised-background-image": "none"; "--mona-effect-raised-backdrop-filter": "blur(22px) saturate(112%)"; "--mona-effect-overlay-background-color": "rgb(249 249 250 / 0.72)"; "--mona-effect-overlay-fallback-background-color": "#f9f9fa"; "--mona-effect-overlay-background-image": "none"; "--mona-effect-overlay-backdrop-filter": "blur(28px) saturate(115%)"; "--mona-effect-backdrop-background-color": string; "--mona-effect-backdrop-fallback-background-color": string; "--mona-effect-backdrop-background-image": string; "--mona-effect-backdrop-backdrop-filter": string; }>; shape: Readonly<Record<ThemeShapeVariable, string>>; custom: Readonly<{ "--mona-date-popup-calendar-backdrop-filter": "none"; "--mona-date-popup-calendar-background": "transparent"; "--mona-date-popup-calendar-background-image": "none"; "--mona-dropdown-popup-list-background": "transparent"; "--mona-input-addon-background": "color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)"; "--mona-menu-item-hover-background": "rgb(37 37 37 / 0.06)"; "--mona-menu-item-hover-foreground": "var(--color-foreground)"; "--mona-menubar-backdrop-filter": "var(--mona-effect-control-backdrop-filter)"; "--mona-menubar-background-image": "var(--mona-effect-control-background-image)"; }>; components: Readonly<{ "--mona-calendar-background": "var(--mona-effect-raised-background-color)"; "--mona-calendar-shadow": "var(--shadow-raised)"; "--mona-list-background": "var(--color-surface)"; "--mona-list-disabled-background": "var(--color-disabled-background)"; "--mona-list-group-background": "rgb(37 37 37 / 0.05)"; "--mona-list-group-border-width": "1px"; "--mona-list-group-font-weight": "650"; "--mona-menubar-background": "var(--mona-effect-control-background-color)"; "--mona-menubar-shadow": "var(--shadow-control)"; "--mona-pager-background": "var(--mona-effect-raised-background-color)"; "--mona-slider-handle-border-color": "var(--color-border-control)"; }>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; motion: Readonly<{ "--mona-motion-fast": "180ms"; "--mona-motion-standard": "320ms"; }>; effects: Readonly<{ "--mona-effect-control-background-color": "rgb(37 37 39 / 0.74)"; "--mona-effect-control-fallback-background-color": "#252527"; "--mona-effect-control-background-image": "none"; "--mona-effect-control-backdrop-filter": "blur(16px) saturate(110%)"; "--mona-effect-raised-background-color": "rgb(32 32 34 / 0.78)"; "--mona-effect-raised-fallback-background-color": "#202022"; "--mona-effect-raised-background-image": "none"; "--mona-effect-raised-backdrop-filter": "blur(22px) saturate(112%)"; "--mona-effect-overlay-background-color": "rgb(38 38 40 / 0.74)"; "--mona-effect-overlay-fallback-background-color": "#262628"; "--mona-effect-overlay-background-image": "none"; "--mona-effect-overlay-backdrop-filter": "blur(28px) saturate(115%)"; "--mona-effect-backdrop-background-color": string; "--mona-effect-backdrop-fallback-background-color": string; "--mona-effect-backdrop-background-image": string; "--mona-effect-backdrop-backdrop-filter": string; }>; shape: Readonly<Record<ThemeShapeVariable, string>>; custom: Readonly<{ "--mona-date-popup-calendar-backdrop-filter": "none"; "--mona-date-popup-calendar-background": "transparent"; "--mona-date-popup-calendar-background-image": "none"; "--mona-dropdown-popup-list-background": "transparent"; "--mona-input-addon-background": "color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)"; "--mona-menubar-backdrop-filter": "var(--mona-effect-control-backdrop-filter)"; "--mona-menubar-background-image": "var(--mona-effect-control-background-image)"; }>; components: Readonly<{ "--mona-calendar-background": "var(--mona-effect-raised-background-color)"; "--mona-calendar-shadow": "var(--shadow-raised)"; "--mona-list-background": "var(--color-surface)"; "--mona-list-disabled-background": "var(--color-disabled-background)"; "--mona-list-group-background": "rgb(255 255 255 / 0.04)"; "--mona-list-group-border-width": "1px"; "--mona-list-group-font-weight": "650"; "--mona-menubar-background": "var(--mona-effect-control-background-color)"; "--mona-menubar-shadow": "var(--shadow-control)"; "--mona-pager-background": "var(--mona-effect-raised-background-color)"; "--mona-slider-handle-border-color": "var(--color-border-control)"; }>; }>; }; }>; mona: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>; rena: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ "--mona-indicator-color": "var(--color-primary)"; "--mona-indicator-foreground": "var(--color-primary-foreground)"; "--mona-primary-text-color": "var(--color-primary)"; "--mona-focus-ring-opacity": "100%"; "--mona-focus-ring-width": "1px"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; components: Readonly<Record<ThemeComponentVariable, string>>; custom: Readonly<{ "--mona-indicator-color": "var(--color-focus-indicator)"; "--mona-indicator-foreground": "#111827"; "--mona-primary-text-color": "var(--color-focus-indicator)"; "--mona-focus-ring-opacity": "100%"; "--mona-focus-ring-width": "1px"; }>; effects: Readonly<Record<ThemeEffectVariable, string>>; motion: Readonly<Record<ThemeMotionVariable, string>>; shape: Readonly<Record<ThemeShapeVariable, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; }>; }; }>; }>;
|
|
171
171
|
```
|
|
172
172
|
|
|
173
173
|
## `lunaTheme`
|
|
@@ -175,7 +175,7 @@ const builtInThemes: Readonly<{ anna: Readonly<{ name: string; variants: { light
|
|
|
175
175
|
Constant.
|
|
176
176
|
|
|
177
177
|
```typescript
|
|
178
|
-
const lunaTheme: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; motion: Readonly<{ "--mona-motion-fast": "180ms"; "--mona-motion-standard": "320ms"; }>; effects: Readonly<{ "--mona-effect-control-background-color": "rgb(243 244 245 / 0.78)"; "--mona-effect-control-fallback-background-color": "#f3f4f5"; "--mona-effect-control-background-image": "none"; "--mona-effect-control-backdrop-filter": "blur(16px) saturate(110%)"; "--mona-effect-raised-background-color": "rgb(252 252 252 / 0.76)"; "--mona-effect-raised-fallback-background-color": "#fbfbfb"; "--mona-effect-raised-background-image": "none"; "--mona-effect-raised-backdrop-filter": "blur(22px) saturate(112%)"; "--mona-effect-overlay-background-color": "rgb(249 249 250 / 0.72)"; "--mona-effect-overlay-fallback-background-color": "#f9f9fa"; "--mona-effect-overlay-background-image": "none"; "--mona-effect-overlay-backdrop-filter": "blur(28px) saturate(115%)"; }>; shape: Readonly<Record<ThemeShapeVariable, string>>; custom: Readonly<{ "--mona-date-popup-calendar-backdrop-filter": "none"; "--mona-date-popup-calendar-background": "transparent"; "--mona-date-popup-calendar-background-image": "none"; "--mona-dropdown-popup-list-background": "transparent"; "--mona-input-addon-background": "color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)"; "--mona-menu-item-hover-background": "rgb(37 37 37 / 0.06)"; "--mona-menu-item-hover-foreground": "var(--color-foreground)"; "--mona-menubar-backdrop-filter": "var(--mona-effect-control-backdrop-filter)"; "--mona-menubar-background-image": "var(--mona-effect-control-background-image)"; }>; components: Readonly<{ "--mona-calendar-background": "var(--mona-effect-raised-background-color)"; "--mona-calendar-shadow": "var(--shadow-raised)"; "--mona-list-background": "var(--color-surface)"; "--mona-list-disabled-background": "var(--color-disabled-background)"; "--mona-list-group-background": "rgb(37 37 37 / 0.05)"; "--mona-list-group-border-width": "1px"; "--mona-list-group-font-weight": "650"; "--mona-menubar-background": "var(--mona-effect-control-background-color)"; "--mona-menubar-shadow": "var(--shadow-control)"; "--mona-pager-background": "var(--mona-effect-raised-background-color)"; "--mona-slider-handle-border-color": "var(--color-border-control)"; }>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; motion: Readonly<{ "--mona-motion-fast": "180ms"; "--mona-motion-standard": "320ms"; }>; effects: Readonly<{ "--mona-effect-control-background-color": "rgb(37 37 39 / 0.74)"; "--mona-effect-control-fallback-background-color": "#252527"; "--mona-effect-control-background-image": "none"; "--mona-effect-control-backdrop-filter": "blur(16px) saturate(110%)"; "--mona-effect-raised-background-color": "rgb(32 32 34 / 0.78)"; "--mona-effect-raised-fallback-background-color": "#202022"; "--mona-effect-raised-background-image": "none"; "--mona-effect-raised-backdrop-filter": "blur(22px) saturate(112%)"; "--mona-effect-overlay-background-color": "rgb(38 38 40 / 0.74)"; "--mona-effect-overlay-fallback-background-color": "#262628"; "--mona-effect-overlay-background-image": "none"; "--mona-effect-overlay-backdrop-filter": "blur(28px) saturate(115%)"; }>; shape: Readonly<Record<ThemeShapeVariable, string>>; custom: Readonly<{ "--mona-date-popup-calendar-backdrop-filter": "none"; "--mona-date-popup-calendar-background": "transparent"; "--mona-date-popup-calendar-background-image": "none"; "--mona-dropdown-popup-list-background": "transparent"; "--mona-input-addon-background": "color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)"; "--mona-menubar-backdrop-filter": "var(--mona-effect-control-backdrop-filter)"; "--mona-menubar-background-image": "var(--mona-effect-control-background-image)"; }>; components: Readonly<{ "--mona-calendar-background": "var(--mona-effect-raised-background-color)"; "--mona-calendar-shadow": "var(--shadow-raised)"; "--mona-list-background": "var(--color-surface)"; "--mona-list-disabled-background": "var(--color-disabled-background)"; "--mona-list-group-background": "rgb(255 255 255 / 0.04)"; "--mona-list-group-border-width": "1px"; "--mona-list-group-font-weight": "650"; "--mona-menubar-background": "var(--mona-effect-control-background-color)"; "--mona-menubar-shadow": "var(--shadow-control)"; "--mona-pager-background": "var(--mona-effect-raised-background-color)"; "--mona-slider-handle-border-color": "var(--color-border-control)"; }>; }>; }; }>;
|
|
178
|
+
const lunaTheme: Readonly<{ name: string; variants: { light: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; motion: Readonly<{ "--mona-motion-fast": "180ms"; "--mona-motion-standard": "320ms"; }>; effects: Readonly<{ "--mona-effect-control-background-color": "rgb(243 244 245 / 0.78)"; "--mona-effect-control-fallback-background-color": "#f3f4f5"; "--mona-effect-control-background-image": "none"; "--mona-effect-control-backdrop-filter": "blur(16px) saturate(110%)"; "--mona-effect-raised-background-color": "rgb(252 252 252 / 0.76)"; "--mona-effect-raised-fallback-background-color": "#fbfbfb"; "--mona-effect-raised-background-image": "none"; "--mona-effect-raised-backdrop-filter": "blur(22px) saturate(112%)"; "--mona-effect-overlay-background-color": "rgb(249 249 250 / 0.72)"; "--mona-effect-overlay-fallback-background-color": "#f9f9fa"; "--mona-effect-overlay-background-image": "none"; "--mona-effect-overlay-backdrop-filter": "blur(28px) saturate(115%)"; "--mona-effect-backdrop-background-color": string; "--mona-effect-backdrop-fallback-background-color": string; "--mona-effect-backdrop-background-image": string; "--mona-effect-backdrop-backdrop-filter": string; }>; shape: Readonly<Record<ThemeShapeVariable, string>>; custom: Readonly<{ "--mona-date-popup-calendar-backdrop-filter": "none"; "--mona-date-popup-calendar-background": "transparent"; "--mona-date-popup-calendar-background-image": "none"; "--mona-dropdown-popup-list-background": "transparent"; "--mona-input-addon-background": "color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)"; "--mona-menu-item-hover-background": "rgb(37 37 37 / 0.06)"; "--mona-menu-item-hover-foreground": "var(--color-foreground)"; "--mona-menubar-backdrop-filter": "var(--mona-effect-control-backdrop-filter)"; "--mona-menubar-background-image": "var(--mona-effect-control-background-image)"; }>; components: Readonly<{ "--mona-calendar-background": "var(--mona-effect-raised-background-color)"; "--mona-calendar-shadow": "var(--shadow-raised)"; "--mona-list-background": "var(--color-surface)"; "--mona-list-disabled-background": "var(--color-disabled-background)"; "--mona-list-group-background": "rgb(37 37 37 / 0.05)"; "--mona-list-group-border-width": "1px"; "--mona-list-group-font-weight": "650"; "--mona-menubar-background": "var(--mona-effect-control-background-color)"; "--mona-menubar-shadow": "var(--shadow-control)"; "--mona-pager-background": "var(--mona-effect-raised-background-color)"; "--mona-slider-handle-border-color": "var(--color-border-control)"; }>; }>; dark: Readonly<{ colors: Readonly<Record<`--color-${string}`, string>>; shadows: Readonly<Record<`--shadow-${string}`, string>>; motion: Readonly<{ "--mona-motion-fast": "180ms"; "--mona-motion-standard": "320ms"; }>; effects: Readonly<{ "--mona-effect-control-background-color": "rgb(37 37 39 / 0.74)"; "--mona-effect-control-fallback-background-color": "#252527"; "--mona-effect-control-background-image": "none"; "--mona-effect-control-backdrop-filter": "blur(16px) saturate(110%)"; "--mona-effect-raised-background-color": "rgb(32 32 34 / 0.78)"; "--mona-effect-raised-fallback-background-color": "#202022"; "--mona-effect-raised-background-image": "none"; "--mona-effect-raised-backdrop-filter": "blur(22px) saturate(112%)"; "--mona-effect-overlay-background-color": "rgb(38 38 40 / 0.74)"; "--mona-effect-overlay-fallback-background-color": "#262628"; "--mona-effect-overlay-background-image": "none"; "--mona-effect-overlay-backdrop-filter": "blur(28px) saturate(115%)"; "--mona-effect-backdrop-background-color": string; "--mona-effect-backdrop-fallback-background-color": string; "--mona-effect-backdrop-background-image": string; "--mona-effect-backdrop-backdrop-filter": string; }>; shape: Readonly<Record<ThemeShapeVariable, string>>; custom: Readonly<{ "--mona-date-popup-calendar-backdrop-filter": "none"; "--mona-date-popup-calendar-background": "transparent"; "--mona-date-popup-calendar-background-image": "none"; "--mona-dropdown-popup-list-background": "transparent"; "--mona-input-addon-background": "color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)"; "--mona-menubar-backdrop-filter": "var(--mona-effect-control-backdrop-filter)"; "--mona-menubar-background-image": "var(--mona-effect-control-background-image)"; }>; components: Readonly<{ "--mona-calendar-background": "var(--mona-effect-raised-background-color)"; "--mona-calendar-shadow": "var(--shadow-raised)"; "--mona-list-background": "var(--color-surface)"; "--mona-list-disabled-background": "var(--color-disabled-background)"; "--mona-list-group-background": "rgb(255 255 255 / 0.04)"; "--mona-list-group-border-width": "1px"; "--mona-list-group-font-weight": "650"; "--mona-menubar-background": "var(--mona-effect-control-background-color)"; "--mona-menubar-shadow": "var(--shadow-control)"; "--mona-pager-background": "var(--mona-effect-raised-background-color)"; "--mona-slider-handle-border-color": "var(--color-border-control)"; }>; }>; }; }>;
|
|
179
179
|
```
|
|
180
180
|
|
|
181
181
|
## `monaTheme`
|
|
@@ -488,8 +488,11 @@ type ThemeComponentVariable = | "--mona-calendar-background" | "--mona-calendar-
|
|
|
488
488
|
|
|
489
489
|
Type alias.
|
|
490
490
|
|
|
491
|
+
The materials a theme defines: `control` for fields, `raised` for elevated panels, `overlay` for menus, popups and
|
|
492
|
+
dialogs, and `backdrop` for what dims the page behind a modal dialog, window or sheet.
|
|
493
|
+
|
|
491
494
|
```typescript
|
|
492
|
-
type ThemeEffectLevel = "control" | "overlay" | "raised";
|
|
495
|
+
type ThemeEffectLevel = "backdrop" | "control" | "overlay" | "raised";
|
|
493
496
|
```
|
|
494
497
|
|
|
495
498
|
## `ThemeEffects`
|
package/docs/breadcrumb.md
CHANGED
|
@@ -6,7 +6,7 @@ Entry point: `@nanahoshi/mona-ui/breadcrumb`
|
|
|
6
6
|
|
|
7
7
|
**Selector:** `mona-breadcrumb`
|
|
8
8
|
|
|
9
|
-
`BreadcrumbComponent` renders a navigational hierarchy trail as an accessible navigation landmark, with items that are real links or buttons, a
|
|
9
|
+
`BreadcrumbComponent` renders a navigational hierarchy trail as an accessible navigation landmark, with items that are real links or buttons, a trail that folds its middle to fit its width, and an optional custom separator template.
|
|
10
10
|
|
|
11
11
|
## Overview
|
|
12
12
|
|
|
@@ -54,7 +54,11 @@ The anchor is yours, so `href`, `routerLink`, `target` and `rel` all work, and s
|
|
|
54
54
|
|
|
55
55
|
The last `<mona-breadcrumb-item>` never emits `itemClick` — it is non-interactive regardless of whether you bind the output. Only non-last items are clickable. When a trail stops before the page you're on, set `[lastItemCurrent]="false"` and the last item becomes a normal one, with no `aria-current`.
|
|
56
56
|
|
|
57
|
-
**Long trails:**
|
|
57
|
+
**Long trails:** when the trail is wider than its box, its middle folds behind a button, the items nearest the start first, until the rest fit at their full width, as in [Folding to fit](#folding-to-fit). The first item and the current page always stay. When even those two don't fit, the first item gives up its width before the current page truncates with an ellipsis. The trail measures itself again whenever the breadcrumb or one of its items changes size, and a new trail is folded before the browser paints it.
|
|
58
|
+
|
|
59
|
+
To fold the middle to a count as well, whatever the width, set `maxItems`, as in [Collapsing a long trail](#collapsing-a-long-trail). The trail then folds whichever asks for more.
|
|
60
|
+
|
|
61
|
+
The button shows the whole trail and moves focus to the first item it revealed that can take focus. The trail then stays whole, truncating its items if it has to, until its items change, and then folds again. The button's name comes from `showFullPath` in the `breadcrumb` messages.
|
|
58
62
|
|
|
59
63
|
Truncation needs text to work on. An item whose content is its own flex container, such as `<div class="flex">`, gets clipped without the ellipsis.
|
|
60
64
|
|
|
@@ -133,9 +137,53 @@ export class BreadcrumbButtonsExampleComponent {
|
|
|
133
137
|
</div>
|
|
134
138
|
```
|
|
135
139
|
|
|
140
|
+
### Folding to fit
|
|
141
|
+
|
|
142
|
+
Drag the box's corner to narrow it. The folders in the middle fold behind the button, nearest the start first, and come back as the box widens.
|
|
143
|
+
|
|
144
|
+
`fit-example.component.ts`
|
|
145
|
+
|
|
146
|
+
```typescript
|
|
147
|
+
import { Component, signal } from "@angular/core";
|
|
148
|
+
import { BreadcrumbComponent, BreadcrumbItemComponent } from "@nanahoshi/mona-ui/breadcrumb";
|
|
149
|
+
|
|
150
|
+
@Component({
|
|
151
|
+
selector: "app-breadcrumb-fit-example",
|
|
152
|
+
imports: [BreadcrumbComponent, BreadcrumbItemComponent],
|
|
153
|
+
templateUrl: "./fit-example.component.html"
|
|
154
|
+
})
|
|
155
|
+
export class BreadcrumbFitExampleComponent {
|
|
156
|
+
protected readonly opened = signal("none");
|
|
157
|
+
protected readonly path = [
|
|
158
|
+
"Local Disk (C:)",
|
|
159
|
+
"Users",
|
|
160
|
+
"Public",
|
|
161
|
+
"Documents",
|
|
162
|
+
"Projects",
|
|
163
|
+
"Mona Explorer",
|
|
164
|
+
"Release notes for the next version"
|
|
165
|
+
];
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
`fit-example.component.html`
|
|
170
|
+
|
|
171
|
+
```html
|
|
172
|
+
<div class="flex flex-col gap-3">
|
|
173
|
+
<div class="w-[36rem] min-w-24 max-w-full resize-x overflow-hidden rounded-md border border-border">
|
|
174
|
+
<mona-breadcrumb aria-label="Location">
|
|
175
|
+
@for (folder of path; track $index) {
|
|
176
|
+
<mona-breadcrumb-item (itemClick)="opened.set(folder)">{{ folder }}</mona-breadcrumb-item>
|
|
177
|
+
}
|
|
178
|
+
</mona-breadcrumb>
|
|
179
|
+
</div>
|
|
180
|
+
<p aria-live="polite" class="text-sm">Last opened: {{ opened() }}</p>
|
|
181
|
+
</div>
|
|
182
|
+
```
|
|
183
|
+
|
|
136
184
|
### Collapsing a long trail
|
|
137
185
|
|
|
138
|
-
With `maxItems` set to 4, the middle of the trail collapses behind a button that shows it again.
|
|
186
|
+
With `maxItems` set to 4, the middle of the trail collapses behind a button that shows it again, even where there's room for all of it.
|
|
139
187
|
|
|
140
188
|
`collapsed-example.component.ts`
|
|
141
189
|
|
|
@@ -236,9 +284,13 @@ Add extra styles to the breadcrumb list via the `class` input on `<mona-breadcru
|
|
|
236
284
|
|
|
237
285
|
The host is a block with `max-width: 100%` and `min-width: 0`, and in a flex parent it needs both. `min-width: 0` lets it shrink along a row, and `max-width: 100%` keeps it inside a column that sizes to fit. Without them it would never get narrower than the trail's text, and nothing inside it would truncate.
|
|
238
286
|
|
|
287
|
+
The trail folds to the width the breadcrumb gets with every item shown. In a row where something beside it shrinks too, such as a search box, give the breadcrumb a width that doesn't depend on its content, such as `flex: 1`. Otherwise it measures more room than it keeps once folded, and the current page can truncate a little.
|
|
288
|
+
|
|
239
289
|
## Behavior
|
|
240
290
|
|
|
241
291
|
- **Content projection:** accepts `<mona-breadcrumb-item>` children and an optional `<ng-template monaBreadcrumbSeparatorTemplate>`.
|
|
292
|
+
- **Folding:** a `ResizeObserver` watches the list and each of its entries. A change in size measures every entry at its natural width and folds the fewest middle items for the rest to fit. Folded items and their separators stay in the list with the `hidden` attribute, so a test that counts items should skip `[hidden]` ones.
|
|
293
|
+
- **Focus while folding:** focus on an item that folds moves to the button that now stands for it. Focus on the button, once everything fits again, moves to the first item it gave back.
|
|
242
294
|
|
|
243
295
|
## Accessibility
|
|
244
296
|
|
|
@@ -246,6 +298,8 @@ The host is a block with `max-width: 100%` and `min-width: 0`, and in a flex par
|
|
|
246
298
|
|
|
247
299
|
The item list is announced as a list by assistive technology. The last item automatically receives `aria-current="page"`. Separators are hidden from assistive technology.
|
|
248
300
|
|
|
301
|
+
Folded items are hidden, so they leave the accessibility tree and the tab order. The button in their place is a native button named by the `showFullPath` message, "Show full path" in English.
|
|
302
|
+
|
|
249
303
|
Items are native buttons, or the anchors you project. A disabled item is removed from the tab order and cannot be activated by keyboard or pointer. A disabled link gets `aria-disabled` and `tabindex="-1"`, and a click on it stops before `routerLink` sees it.
|
|
250
304
|
|
|
251
305
|
When multiple breadcrumbs appear on the same page, each should have a distinct `aria-label` so screen reader users can distinguish the landmarks.
|
|
@@ -256,7 +310,7 @@ Everything below is imported from `@nanahoshi/mona-ui/breadcrumb`. Each name lin
|
|
|
256
310
|
|
|
257
311
|
| Name | Kind | Description |
|
|
258
312
|
| --- | --- | --- |
|
|
259
|
-
| [`BreadcrumbComponent`](api/breadcrumb.md#breadcrumbcomponent) | Component |
|
|
313
|
+
| [`BreadcrumbComponent`](api/breadcrumb.md#breadcrumbcomponent) | Component | A trail of `mona-breadcrumb-item`s that leads to the current page. |
|
|
260
314
|
| [`BreadcrumbItemComponent`](api/breadcrumb.md#breadcrumbitemcomponent) | Component | Use as a direct child of `<mona-breadcrumb>`. |
|
|
261
315
|
| [`BreadcrumbLinkDirective`](api/breadcrumb.md#breadcrumblinkdirective) | Directive | Makes a projected anchor the item's link, so the browser and the router treat it as one: ctrl-click, copy link, `href`, `routerLink`, `target`. |
|
|
262
316
|
| [`BreadcrumbSeparatorTemplateDirective`](api/breadcrumb.md#breadcrumbseparatortemplatedirective) | Directive | Apply to an `<ng-template>` directly inside `<mona-breadcrumb>` to replace the default `ChevronRight` separator. |
|