sass-palette
This plugin is mainly facing plugin and theme developers, it is more powerful than @vuepress/plugin-palette
.
Tips
You should manually install these deps in your project:
- When using Vite bundler:
sass-embedded
- When using Webpack bundler:
sass-embedded
andsass-loader
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
}
}