@nanahoshi/mona-ui 0.50.0 → 0.51.1

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.
Files changed (29) hide show
  1. package/docs/api/grid.json +1 -1
  2. package/docs/api/grid.md +1 -1
  3. package/docs/api/index.json +1 -1
  4. package/docs/api/theme.json +1 -1
  5. package/docs/api/theme.md +6 -3
  6. package/docs/grid-columns.md +3 -1
  7. package/docs/grid.md +1 -1
  8. package/docs/manifest.json +1 -1
  9. package/docs/theming-custom-themes.md +32 -10
  10. package/docs/theming.md +13 -13
  11. package/fesm2022/{grid-colgroup.component-BFbiAvkG.mjs → grid-colgroup.component-Ccz4jNGD.mjs} +2 -2
  12. package/fesm2022/{grid-footer-row.component-DpSu7jvG.mjs → grid-footer-row.component-3i2wvQ6a.mjs} +2 -2
  13. package/fesm2022/{grid-list.component-B-F4bvFL.mjs → grid-list.component-BaI4IOC6.mjs} +5 -5
  14. package/fesm2022/{grid-row.component-CuCQ_Z5F.mjs → grid-row.component-CK8q0Ecr.mjs} +3 -3
  15. package/fesm2022/{grid-virtual-list.component-rIz5AUOU.mjs → grid-virtual-list.component-BPLi0OaO.mjs} +5 -5
  16. package/fesm2022/{grid.styles-D6jP3vwD.mjs → grid.styles-DBLUtq2X.mjs} +18 -10
  17. package/fesm2022/nanahoshi-mona-ui-command.mjs +3 -4
  18. package/fesm2022/nanahoshi-mona-ui-dialog.mjs +3 -4
  19. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +2 -3
  20. package/fesm2022/nanahoshi-mona-ui-grid.mjs +42 -39
  21. package/fesm2022/nanahoshi-mona-ui-internal.mjs +10 -1
  22. package/fesm2022/nanahoshi-mona-ui-sheet.mjs +2 -3
  23. package/fesm2022/nanahoshi-mona-ui-spinner.mjs +2 -1
  24. package/fesm2022/nanahoshi-mona-ui-theme.mjs +12 -0
  25. package/fesm2022/nanahoshi-mona-ui-window.mjs +3 -4
  26. package/package.json +1 -1
  27. package/types/nanahoshi-mona-ui-grid.d.ts +12 -4
  28. package/types/nanahoshi-mona-ui-internal.d.ts +10 -0
  29. package/types/nanahoshi-mona-ui-theme.d.ts +21 -1
@@ -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`
@@ -216,12 +216,14 @@ Route holds two nested groups, so the header has two rows of group titles above
216
216
 
217
217
  | `resizeMethod` | Columns without a `width` |
218
218
  | :--- | :--- |
219
- | `"fitView"` (default) | Share the width the fixed columns leave. |
219
+ | `"fitView"` (default) | Share the width the fixed columns leave, and follow the grid's width as it changes. |
220
220
  | `"auto"` | Fit their rendered content. |
221
221
  | A number | Get that many pixels each. |
222
222
 
223
223
  `minWidth` (40 by default) and `maxWidth` bound a resize.
224
224
 
225
+ With `"fitView"`, the columns are fitted again whenever the grid's width changes, such as when the window is resized or a pane opens beside the grid. A column the user resized keeps its width, and the others share what it leaves. Widths restored with `monaGridStatePersistence` are kept the same way.
226
+
225
227
  ### Canceling a Move
226
228
 
227
229
  ```typescript
package/docs/grid.md CHANGED
@@ -216,7 +216,7 @@ To show the condition in a column's filter UI as well, set the `filter` model of
216
216
  | `class` | Classes on the grid element, merged with `tailwind-merge`. Set a height here for a grid that scrolls inside a fixed area. |
217
217
  | `rounded` | The corner radius: `"none"`, `"small"`, `"medium"` (default) or `"large"`. |
218
218
  | `rowClass` | A function that returns classes for each data row, such as a muted row for a cancelled order. See [Rows](grid-rows.md). |
219
- | `resizeMethod` | How columns without a `width` get one: `"fitView"` (default) shares the free width, `"auto"` fits the content, and a number gives each of them that many pixels. See [Columns](grid-columns.md). |
219
+ | `resizeMethod` | How columns without a `width` get one: `"fitView"` (default) shares the free width and follows the grid's width as it changes, `"auto"` fits the content, and a number gives each of them that many pixels. See [Columns](grid-columns.md). |
220
220
 
221
221
  Grid styling is implemented with Tailwind utility classes internally; there are no public CSS custom properties to override.
222
222