middag-react
    Preparing search index...

    Interface SharedPropsTheme

    interface SharedPropsTheme {
        appearance?: "light" | "dark" | "system";
        brandColor?: string;
        inherit?: boolean;
        strings?: Record<string, string>;
    }
    Index

    Properties

    appearance?: "light" | "dark" | "system"

    Current appearance preference: 'system' | 'light' | 'dark'. Sent from server to sync cross-device. Client reads localStorage first.

    brandColor?: string

    Moodle brand color (hex, e.g. "#1177d1"). Present when local_middag/inherit_theme_colors = ON. PHP injects :root { --middag-brand: } in page head.

    inherit?: boolean

    Whether Moodle theme color inheritance is active

    strings?: Record<string, string>

    Pre-loaded i18n strings for the current page (key → translated string)