Getting Started
A modern and beautiful theme for Starlight.
Prerequisites
Section titled “Prerequisites”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.
Installation
Section titled “Installation”-
The Starlight Nova theme is a Starlight plugin that you can install using your favorite package manager:
-
Configure the plugin in your Starlight configuration in the
astro.config.mjsfile.Check the Options section below for available options.
-
Start the development server to preview the theme in action.
That’s it! You should now see the Starlight Nova theme applied to your Starlight website.
Options
Section titled “Options”You can add optional navigation items to the top navigation bar by passing an array of objects to the nav option.
If you want to support multiple languages, you can pass an object with values for each different locale to label and href. When using the object form, the keys must be BCP-47 tags (e.g. en, ar, or zh-CN) or the root key to set the default value:
Use with Tailwind CSS
Section titled “Use with Tailwind CSS”You can optionally use Tailwind CSS with the Starlight Nova theme. To do so, you need to:
-
Install Tailwind CSS and its dependencies:
-
Create a
./src/styles/global.cssfile and add the following content: -
Configure your Astro config file: