Skip to content
Svartz v2.6.0

@svartz/theme-minimal/runtime

22 exported symbols.

Classes

c ThemeSelectionError

Interfaces

i CompositionA composed site's themes: the first styles the site; all of them render pages.
i FramePropsA frame lays out the regions; minimal's is three columns.
i PageChoiceThe theme that renders a page, and the renderer and data when one of its renderers claimed the page. Plain notes in the primary theme have no choice.
i PageRendererRenders one kind of page, chosen from the page's frontmatter: an endpoint from `operation`, a symbol from `symbol`, a wiki article from `infobox`.
i ReadingStopA stop in reading order: a folder's page, or a note.
i RegionProps
i RendererProps
i ShellStateEverything minimal works out once per page and hands to every region, so a theme that swaps a region keeps minimal's behaviour.
i ThemeBuildExtensionThe Node-safe part of an extension, for the build: no components.
i ThemeChromeMinimal's optional furniture.
i ThemeExtensionWhat a theme adds to theme-minimal. Everything is optional: minimal itself is the empty extension. In a composition the first extension's frame, regions, list pages, and chrome style the site; every extension's renderers render pages.

Types

t ListPageNameThe list pages a theme can provide; each receives the usual page props.
t RegionName

Functions

f choosePageThe theme and renderer for a page. The page's own `theme:` wins, then the nearest folder note's (`folderNotes`, nearest first), then whichever renderer detects the page from its frontmatter. A page none of that picks is a plain note in the primary theme, and gets `undefined`.
f composeThemesA runtime manifest that composes themes on minimal's shell. The first theme styles the site; each page renders with the theme that claims it.
f compositionOfThe composition a runtime manifest carries; minimal alone for any other manifest.
f definePageRendererKeeps a renderer's data type flowing from `detect` to its components.
f folderThemeThe theme that lists a folder's page: the folder note's `theme:`, then its ancestors' (`folderNotes`, nearest first), then the primary theme.
f themeVite-bundled runtime manifest. Lazy entries load before SSR and hydration.

Variables

v extensionsMinimal's own extension: the base every theme extends.
v minimalExtensionMinimal itself: the extension every composition falls back to.