feat: add unocss-preset-chinese and update related configurations

This commit is contained in:
mini2024
2025-02-25 00:27:05 +08:00
parent 4552bbca34
commit 97431f932f
6 changed files with 67 additions and 6 deletions

View File

@@ -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(),