Skip to main content

Crate stack_theme

Crate stack_theme 

Source
Expand description

Typed access to the canonical Stack theme catalog.

The embedded data is generated from catalog/catalog.json. It performs no filesystem, network, clock, locale, or host-font access at runtime.

Structs§

Catalog
The complete versioned theme catalog.
CatalogFallbacks
Catalog-wide recovery choices used after emitting a missing-resource diagnostic.
ConnectorStyle
Connector line and label treatment.
FontMetrics
One deterministic font measurement table.
Icon
Theme-local icon metadata and its safe SVG asset.
IconAsset
A repository-relative icon asset and declared viewport.
NodeKindFallbacks
Complete fallback mapping for Stack 1.0 node kinds.
NodeVisual
Node shape, palette references, and fallback icon.
Palette
Required semantic color slots.
PaletteOverride
Semantic color slots changed by one user theme definition.
Provenance
Source, license, and distribution evidence for an asset.
ProviderIcon
One namespaced product icon and its locally processed safe SVG.
ProviderIconAsset
Original and processed identities for one local SVG file.
ProviderPack
A local provider icon pack produced from an archive selected by the user.
ProviderPackAdditionalSource
An additional audited archive used by a multi-source provider pack.
ProviderPackIdentity
Stable provider namespace and display name.
ProviderPackNotice
User-visible source, terms, and non-endorsement text.
ProviderPackProcessing
Local processing and artwork-preservation requirements.
ProviderPackRedistribution
Asset redistribution switches fixed by the user-imported contract.
ProviderPackRights
Provider-specific usage boundary retained with every imported pack.
ProviderPackSource
Immutable provenance for the official source archive and reviewed terms.
Redistribution
Supported artifact and application distribution channels.
ResolvedThemeCatalog
A catalog with all configured themes applied and a reproducible identity.
Theme
One theme and its theme-local icon collection.
ThemeOverride
One user theme definition resolved from a built-in theme.
ThemeOverrideError
A theme definition that cannot be resolved safely and deterministically.
ThemeOverrideWarning
A non-fatal usability concern found in one configured palette.
ThemeOverrides
Palette-only theme definitions supplied by one user configuration.
Typography
Typography values expressed without platform font measurement.
UnicodeRange
An inclusive Unicode scalar range encoded as U+XXXX labels.

Enums§

BuiltinThemeId
Built-in themes that may supply non-palette records to a user theme.
NodeShape
Renderer-supported node outlines.
PaletteToken
A reference to a required palette slot.
ProviderNodeKind
Stack node-kind recommendation attached without changing node semantics.
ProviderPackDistributionMode
Provider packs are always supplied through an explicit local import.
ProviderPackModificationPolicy
The only modification policy supported by the provider-pack schema.
ProviderPackPermittedOutput
Output categories copied from the provider’s reviewed terms.
ProviderPackTransformation
Auditable, visual-preservation-only transformations applied during import.

Constants§

CATALOG_REVISION
CATALOG_VERSION

Functions§

catalog
Returns the embedded catalog parsed into the public Rust contract.
catalog_json
Returns the exact generated JSON embedded in the crate.
catalog_schema_json
Returns the JSON Schema for the embedded catalog document shape.
icon_svg
Returns one validated SVG asset by its catalog path.
provider_pack_schema_json
Returns the JSON Schema for local user-imported provider icon packs.
resolve_theme_overrides
Applies user palette definitions over an immutable built-in catalog.
theme_overrides_schema_json
Returns the JSON Schema for palette-only user theme definitions.