Color mode

Reference

Reference is for factual lookup: configuration keys, CLI commands, public exports, Plugin API, Theme API, Theme customization, and internal architecture. Use Guides when you want a task-oriented walkthrough.

Reference pages

Page Use it for
Configuration riebeckite.config.ts, roots, content, theme, plugins
Configuration reference Every riebeckite.config.ts field, its type, and its default
CLI dev, check, doctor, build, profile, inspect
Plugin API definePlugin, lifecycle hooks, assets, endpoints, diagnostics
Theme API defineTheme, CSS contract, tokens, color mode, package shape

Public packages and imports

External plugins and themes should depend on public packages and public exports only.

Package Public surface
@riebeckite/core defineConfig, definePlugin, defineTheme, content APIs, pipeline APIs, diagnostics, observability types
@riebeckite/cli riebeckite CLI binary
@riebeckite/honox HonoX integration and scaffolding support; the server subpath exports the route/SSG helpers (resolveRiebeckiteRoute, resolveRiebeckiteContentRequest, resolveRiebeckiteHomeRequest, contentRouteSsgParams, riebeniteSsgParams), and the ui subpath exports the article/site UI primitives (Article, ArticleBody, PageBody, ArticleContent, ContentSlot, hasSlot, and their props)
@riebeckite/test Test helpers (assertGolden, assertGoldenJson); the e2e subpath exports the packed-tarball external-site engine
@riebeckite/plugin-* Plugin factory and documented subpath exports
@riebeckite/theme-* Theme factory and CSS exports

Do not import from @riebeckite/core/src/** or from monorepo-internal paths in external packages.

Important core exports

  • Config: defineConfig, resolveConfig, resolveConfigModule, isPublished, isExcluded
  • Content: ContentManager, ContentCollection, ContentGraph, ContentQuery, buildContentCollections, fingerprintContentEntries, resolveDefaultContentLocation
  • Plugins: definePlugin, resolvePlugins, defineEndpoint, createStyleAsset, createClientEntry, appendContentBodySlot, createPluginMemo, stableStringify
  • Themes: defineTheme, RiebeckiteTheme, ThemeDesignTokens, ThemeColorMode, ThemeTypographyPreset, ThemeArticleLayoutPreset
  • Pipeline: Pipeline, MarkdownPipeline, HtmlPipeline
  • Utilities: escapeHtml, escapeHtmlAttribute, normalizeTag, calculateReadingTime, stripHtml
  • Observability: Logger, Tracer, TraceSpan, TraceSink

History

1 changesCollapseExpand
1 + ---
2 + title: Reference
3 + sidebar:
4 + label: Reference
5 + order: 40
6 + ---
7 + # Reference
8 +
9 + Reference is for factual lookup: configuration keys, CLI commands, public exports, Plugin API, Theme API, Theme customization, and internal architecture. Use [Guides](../guides/README.en.md) when you want a task-oriented walkthrough.
10 +
11 + ## Reference pages
12 +
13 + | Page | Use it for |
14 + | --- | --- |
15 + | [Configuration](./configuration.en.md) | `riebeckite.config.ts`, roots, content, theme, plugins |
16 + | [Configuration reference](./configuration-reference.en.md) | Every `riebeckite.config.ts` field, its type, and its default |
17 + | [CLI](./cli.en.md) | `dev`, `check`, `doctor`, `build`, `profile`, `inspect` |
18 + | [Plugin API](./plugin-api.en.md) | `definePlugin`, lifecycle hooks, assets, endpoints, diagnostics |
19 + | [Theme API](./theme-api.en.md) | `defineTheme`, CSS contract, tokens, color mode, package shape |
20 +
21 + ## Public packages and imports
22 +
23 + External plugins and themes should depend on public packages and public exports only.
24 +
25 + | Package | Public surface |
26 + | --- | --- |
27 + | `@riebeckite/core` | `defineConfig`, `definePlugin`, `defineTheme`, content APIs, pipeline APIs, diagnostics, observability types |
28 + | `@riebeckite/cli` | `riebeckite` CLI binary |
29 + | `@riebeckite/honox` | HonoX integration and scaffolding support; the `server` subpath exports the route/SSG helpers (`resolveRiebeckiteRoute`, `resolveRiebeckiteContentRequest`, `resolveRiebeckiteHomeRequest`, `contentRouteSsgParams`, `riebeniteSsgParams`), and the `ui` subpath exports the article/site UI primitives (`Article`, `ArticleBody`, `PageBody`, `ArticleContent`, `ContentSlot`, `hasSlot`, and their props) |
30 + | `@riebeckite/test` | Test helpers (`assertGolden`, `assertGoldenJson`); the `e2e` subpath exports the packed-tarball external-site engine |
31 + | `@riebeckite/plugin-*` | Plugin factory and documented subpath exports |
32 + | `@riebeckite/theme-*` | Theme factory and CSS exports |
33 +
34 + Do not import from `@riebeckite/core/src/**` or from monorepo-internal paths in external packages.
35 +
36 + ## Important core exports
37 +
38 + - Config: `defineConfig`, `resolveConfig`, `resolveConfigModule`, `isPublished`, `isExcluded`
39 + - Content: `ContentManager`, `ContentCollection`, `ContentGraph`, `ContentQuery`, `buildContentCollections`, `fingerprintContentEntries`, `resolveDefaultContentLocation`
40 + - Plugins: `definePlugin`, `resolvePlugins`, `defineEndpoint`, `createStyleAsset`, `createClientEntry`, `appendContentBodySlot`, `createPluginMemo`, `stableStringify`
41 + - Themes: `defineTheme`, `RiebeckiteTheme`, `ThemeDesignTokens`, `ThemeColorMode`, `ThemeTypographyPreset`, `ThemeArticleLayoutPreset`
42 + - Pipeline: `Pipeline`, `MarkdownPipeline`, `HtmlPipeline`
43 + - Utilities: `escapeHtml`, `escapeHtmlAttribute`, `normalizeTag`, `calculateReadingTime`, `stripHtml`
44 + - Observability: `Logger`, `Tracer`, `TraceSpan`, `TraceSink`
45 +