Skip to content

Getting Started

Starlight theme inspired by Microsoft Fluent2 design system

You will need to have a Starlight website set up. If you don’t have one yet, you can follow the “Getting Started” guide in the Starlight docs to create one.

  1. starlight-theme-fluent is a Starlight plugin. Install it by running the following command in your terminal:

    Terminal window
    npm install starlight-theme-fluent

    The theme compiles its styles with sass, a pure JavaScript compiler that works everywhere, including browser-based environments such as StackBlitz. npm and pnpm install it automatically as a peer dependency, while Yarn requires adding it explicitly.

  2. Configure the plugin in your Starlight configuration in the astro.config.mjs file.

    astro.config.mjs
    import starlight from '@astrojs/starlight'
    import { defineConfig } from 'astro/config'
    import starlightFluent from 'starlight-theme-fluent'
    export default defineConfig({
    integrations: [
    starlight({
    plugins: [starlightFluent()],
    title: 'My Docs',
    }),
    ],
    })
  3. Start the development server to preview the theme in action.

100%