Riksdagsmonitor Intelligence Platform โ€” API Documentation - v0.8.54
    Preparing search index...

    A complete per-type template configuration stored in the registry. The styleClass is appended to the <article> element so the CSS custom-property cascade delivers the correct accent colour palette.

    interface ArticleTemplate {
    ย ย ย ย type: ArticleType;
    ย ย ย ย styleClass: string;
    ย ย ย ย layout: LayoutConfig;
    ย ย ย ย aiDirectives: Readonly<Record<string, AIStyleDirective>>;
    ย ย ย ย description: string;
    }
    Index

    Properties

    The article type this template governs

    styleClass: string

    CSS class added to the <article> element, e.g. "article-type-propositions". Combined with .news-article to form the full selector .news-article.article-type-propositions.

    layout: LayoutConfig

    Structural layout hints for the renderer

    aiDirectives: Readonly<Record<string, AIStyleDirective>>

    Per-section AI directives. Keys are freeform section names (e.g. "lede", "swot", "key-takeaways").

    description: string

    Human-readable description for documentation/tooling