refactor(theme): remove windicss
This commit is contained in:
parent
e1e845a470
commit
cb89ffdcf3
@ -1,73 +0,0 @@
|
||||
import { getDirname, path } from '@vuepress/utils'
|
||||
import { defineConfig } from 'windicss/helpers'
|
||||
import typography from 'windicss/plugin/typography'
|
||||
|
||||
const __dirname = getDirname(import.meta.url)
|
||||
|
||||
export default defineConfig({
|
||||
darkMode: 'class',
|
||||
// attributify: true,
|
||||
plugins: [(typography as any)()],
|
||||
theme: {
|
||||
extend: {
|
||||
textColor: '#2c3e50',
|
||||
fontFamily: {
|
||||
sans: [
|
||||
'ui-sans-serif',
|
||||
'-apple-system',
|
||||
'BlinkMackSystemFont',
|
||||
'"Segoe UI"',
|
||||
'Roboto',
|
||||
'Oxygen',
|
||||
'Ubuntu',
|
||||
'Cantarell',
|
||||
'"Fira Sans"',
|
||||
'"Droid Sans"',
|
||||
'"Helvetica Neue"',
|
||||
'sans-serif',
|
||||
'"Apple Color Emoji"',
|
||||
'"Segoe UI Emoji"',
|
||||
'"Segoe UI Symbol"',
|
||||
'"Noto Color Emoji"',
|
||||
],
|
||||
mono: [
|
||||
'Consolas',
|
||||
'Monaco',
|
||||
'ui-monospace',
|
||||
'SFMono-Regular',
|
||||
'Menlo',
|
||||
'"Andale Mono"',
|
||||
'"Ubuntu Mono"',
|
||||
'monospace',
|
||||
],
|
||||
},
|
||||
typography: {
|
||||
DEFAULT: {
|
||||
css: {
|
||||
color: '#2c3e50',
|
||||
a: {
|
||||
color: 'red',
|
||||
},
|
||||
h1: { color: 'inherit' },
|
||||
h2: { color: 'inherit' },
|
||||
h3: { color: 'inherit' },
|
||||
h4: { color: 'inherit' },
|
||||
h5: { color: 'inherit' },
|
||||
h6: { color: 'inherit' },
|
||||
b: { color: 'inherit' },
|
||||
em: { color: 'inherit' },
|
||||
strong: { color: 'inherit' },
|
||||
blockquote: { color: 'inherit' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
extract: {
|
||||
include: [
|
||||
path.resolve(__dirname, '{components,layouts}/**/*'),
|
||||
path.resolve(process.cwd(), '**/.vuepress/{components,layouts}/*'),
|
||||
path.resolve(process.cwd(), '**/*.md'),
|
||||
],
|
||||
},
|
||||
})
|
||||
@ -3,7 +3,6 @@ import { baiduTongjiPlugin } from '@vuepress-plume/vuepress-plugin-baidu-tongji'
|
||||
import { blogDataPlugin } from '@vuepress-plume/vuepress-plugin-blog-data'
|
||||
import { caniusePlugin } from '@vuepress-plume/vuepress-plugin-caniuse'
|
||||
import { copyCodePlugin } from '@vuepress-plume/vuepress-plugin-copy-code'
|
||||
import { windiCSSPlugin } from '@vuepress-plume/vuepress-plugin-windicss'
|
||||
import type { App, PluginConfig } from '@vuepress/core'
|
||||
import { activeHeaderLinksPlugin } from '@vuepress/plugin-active-header-links'
|
||||
import { docsearchPlugin } from '@vuepress/plugin-docsearch'
|
||||
@ -15,7 +14,6 @@ import { palettePlugin } from '@vuepress/plugin-palette'
|
||||
import { prismjsPlugin } from '@vuepress/plugin-prismjs'
|
||||
import { searchPlugin } from '@vuepress/plugin-search'
|
||||
import { themeDataPlugin } from '@vuepress/plugin-theme-data'
|
||||
import { getDirname, path } from '@vuepress/utils'
|
||||
import { commentPlugin } from 'vuepress-plugin-comment2'
|
||||
import { mdEnhancePlugin } from 'vuepress-plugin-md-enhance'
|
||||
import { seoPlugin } from 'vuepress-plugin-seo2'
|
||||
@ -26,8 +24,6 @@ import type {
|
||||
} from '../shared/index.js'
|
||||
import autoFrontmatter from './autoFrontmatter.js'
|
||||
|
||||
const __dirname = getDirname(import.meta.url)
|
||||
|
||||
export const setupPlugins = (
|
||||
app: App,
|
||||
options: PlumeThemePluginOptions,
|
||||
@ -37,7 +33,6 @@ export const setupPlugins = (
|
||||
|
||||
return [
|
||||
palettePlugin({ preset: 'sass' }),
|
||||
windiCSSPlugin(path.resolve(__dirname, '../client/windi.config.js')),
|
||||
themeDataPlugin({ themeData: localeOptions }),
|
||||
autoFrontmatterPlugin(autoFrontmatter(app, localeOptions)),
|
||||
blogDataPlugin({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user