Skip to content

Getting Started

Install

sh
npm install vitepress-plugin-group-icons -D
sh
yarn add vitepress-plugin-group-icons -D
sh
pnpm add -D vitepress-plugin-group-icons
sh
bun vitepress-plugin-group-icons -d

Configuration

.vitepress/config.ts
ts
import { defineConfig } from 'vitepress'
import { groupIconMdPlugin, groupIconVitePlugin } from 'vitepress-plugin-group-icons'

export default defineConfig({
  markdown: {
    config(md) {
      md.use(groupIconMdPlugin)
    },
  },
  vite: {
    plugins: [
      groupIconVitePlugin()
    ],
  }
})
.vitepress/theme/index.ts
ts
import Theme from 'vitepress/theme'
import 'virtual:group-icons.css'

export default Theme