Riksdagsmonitor Intelligence Platform - v0.7.19
    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