vuepress-theme-hope

vuepress-plugin-sass-palette

Sass palette plugin for VuePress2

Guide 💡Config 🛠

How to use

Install

pnpm add -D vuepress-plugin-sass-palette@next

Usage

You must invoke useSassPalettePlugin function during plugin initialization to use this plugin.

// Your plugin or theme entry
import { useSassPalettePlugin } from "vuepress-plugin-sass-palette";
import type { PluginFunction } from "@vuepress/core";

export const yourPlugin =
  (options): PluginFunction =>
  (app) => {
    useSassPalettePlugin(app, {
      // plugin options
    });

    return {
      // your plugin api
    };
  };