feat: add unocss-preset-chinese and update related configurations
All checks were successful
/ depcheck (push) Successful in 1m39s
/ build-and-deploy-to-vercel (push) Successful in 2m7s
/ surge (push) Successful in 1m47s
/ playwright (push) Successful in 3m23s

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