Skip to content
Page

Starlight components

Starlight's own content components keep working, and the theme draws them with RefineUI tokens.

Pages can mix Starlight’s built-in components with RefineUI components. The theme restyles the built-in ones with the same tokens, so both sets look alike.

Default Note Tip Caution Danger Success
Terminal window
bun add @pelagornis/page
  1. Install the plugin.

  2. Add pagePlugin() to Starlight’s plugins.

  3. Run the dev server.

Shell

Header, sidebar, search, and footer come from RefineUI.

Components

Every RefineUI component is exported from @pelagornis/page/components.

  • astro.config.ts
  • markdoc.config.mjs
  • Directorysrc/
    • Directorycontent/
      • Directorydocs/
        • index.mdx
        • Directoryguides/
          • getting-started.mdx