vuepress-plugin-sass-palette

vuepress-plugin-sass-palette

Sass palette plugin for VuePress2

Docs open in new window

使用插件

安装

pnpm add -D vuepress-plugin-sass-palette

Usage

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
    };
  };