add catppuccin theme
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
// @ts-check
|
||||
import { defineConfig } from "astro/config";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import starlight from "@astrojs/starlight";
|
||||
import react from "@astrojs/react";
|
||||
|
||||
import node from "@astrojs/node";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import starlight from "@astrojs/starlight";
|
||||
import catppuccin from "@catppuccin/starlight";
|
||||
|
||||
const getSiteURL = () => {
|
||||
if (process.env.SITE_URL) {
|
||||
@@ -16,9 +16,9 @@ const getSiteURL = () => {
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: getSiteURL(),
|
||||
|
||||
integrations: [
|
||||
tailwindcss(),
|
||||
react(),
|
||||
starlight({
|
||||
title: "My Docs",
|
||||
social: [
|
||||
@@ -28,6 +28,12 @@ export default defineConfig({
|
||||
href: "https://github.com/withastro/starlight",
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
catppuccin({
|
||||
dark: { flavor: "macchiato", accent: "sapphire" },
|
||||
light: { flavor: "latte", accent: "sky" }
|
||||
})
|
||||
],
|
||||
sidebar: [
|
||||
{
|
||||
label: "Guides",
|
||||
|
Reference in New Issue
Block a user