Skip to content

pantoken / renderers/astro/src / InstUI

Function: InstUI()

InstUI(options?): StarlightPluginLike

Alpha

Create the pantoken Starlight plugin.

Parameters

options?

InstUIOptions = {}

InstUIOptions.

Returns

StarlightPluginLike

A Starlight plugin that injects the pantoken stylesheet into the page head.

Example

astro.config.mjs

ts
import starlight from "@astrojs/starlight";
import { InstUI } from "@pantoken/astro";
import { transition } from "@pantoken/plugin-transition";

export default defineConfig({
  integrations: [
    starlight({
      title: "Docs",
      plugins: [InstUI({ theme: "rebrand", plugins: [transition()] })],
    }),
  ],
});