sass-palette
This plugin is mainly facing plugin and theme developers, it is more powerful than @vuepress/plugin-palette
.
Usage
You must invoke useSassPalettePlugin
function during plugin initialization to use this plugin.
npm i -D @vuepress/plugin-sass-palette@next
import { useSassPalettePlugin } from 'vuepress-plugin-sass-palette'
export const yourPlugin = (options) => (app) => {
useSassPalettePlugin(app, {
// plugin options
})
return {
// your plugin api
}
}