kernl API
    Preparing search index...

    Function themeModule

    • The theme domain: the colours applets that hold theme:read are told. Without this module a shell does not offer theme, and it leaves the baseline every applet starts with (D-061). Its api publishes a change to the applets that are open, which is how a shell that follows the person's colour scheme keeps them matching it (D-064).

      Parameters

      • Optionaltheme: Theme

        The theme pushed to applets; kehto's default when left out.

      Returns KernlModule<"theme", ThemeApi>

      The module, whose api is kernl.theme.

      const kernl = createKernl({ host, modules: [themeModule({ colors: { background: '#000', text: '#fff', primary: '#7aa2f7' } }), socialModule()] });
      kernl.theme.publish({ colors: { background: '#111', text: '#eee', primary: '#7aa2f7' } });