feat: add unocss-preset-chinese and update related configurations
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
// https://github.dev/unocss/unocss/tree/main/examples/vite-vue3
|
||||
import { defineConfig, presetAttributify, presetUno, transformerDirectives, transformerVariantGroup } from 'unocss';
|
||||
import { defineConfig, presetAttributify, presetWind3, transformerDirectives, transformerVariantGroup } from 'unocss';
|
||||
import presetChinese, { chineseTypography } from 'unocss-preset-chinese';
|
||||
|
||||
export default defineConfig({
|
||||
theme: {
|
||||
@ -49,12 +50,16 @@ export default defineConfig({
|
||||
},
|
||||
],
|
||||
presets: [
|
||||
presetUno({
|
||||
presetWind3({
|
||||
/* prefix: "u-", */
|
||||
dark: {
|
||||
dark: '.app-dark',
|
||||
},
|
||||
}),
|
||||
chineseTypography(),
|
||||
presetChinese({
|
||||
chineseType: 'simplified', // 指定文本为简体中文
|
||||
}),
|
||||
|
||||
// https://unocss.dev/presets/attributify
|
||||
presetAttributify(),
|
||||
|
Reference in New Issue
Block a user