element-plus/docs/.vitepress/theme/index.ts
云游君 7caa13e80c
feat(style): add scrollbar for docs (#4800)
* feat(style): add scrollbar for docs

* fix(style): adjust scrollbar color
2021-12-13 00:07:28 +08:00

26 lines
585 B
TypeScript

import ElementPlus from 'element-plus'
// windicss layers
import 'virtual:windi-base.css'
import 'virtual:windi-components.css'
import VPApp, { globals, NotFound } from '../vitepress'
// windicss utilities should be the last style import
import 'virtual:windi-utilities.css'
// windicss devtools support (dev only)
import 'virtual:windi-devtools'
export default {
NotFound,
Layout: VPApp,
logo: '/images/element-plus-logo-small.svg',
enhanceApp: ({ app }) => {
app.use(ElementPlus)
globals.forEach(([name, Comp]) => {
app.component(name, Comp)
})
},
}