From 244dc3fdff7851fd6a2d37fc3ab26f8f4ccdaa52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Mon, 9 Oct 2023 21:03:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20unoCss=20=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8D=87=E7=BA=A7=E6=99=BA=E8=83=BD=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=A4=B1=E6=95=88=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 71a83c07698996b1adf6ebef074e9e18eac48351 --- .vscode/settings.json | 1 - uno.config.ts | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 uno.config.ts diff --git a/.vscode/settings.json b/.vscode/settings.json index 35433a8..8682667 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,4 @@ { - "unocss.root": "packages/client", "typescript.tsdk": "./node_modules/typescript/lib", "npm.packageManager": "pnpm", "editor.tabSize": 2, diff --git a/uno.config.ts b/uno.config.ts new file mode 100644 index 0000000..53bdd07 --- /dev/null +++ b/uno.config.ts @@ -0,0 +1,34 @@ +// uno.config.ts +import { + defineConfig, + presetAttributify, + presetIcons, + presetTypography, + presetUno, + presetWebFonts, + transformerDirectives, + transformerVariantGroup, +} from "unocss"; + +export default defineConfig({ + shortcuts: [ + // ... + ], + theme: { + colors: { + // ... + }, + }, + presets: [ + presetUno(), + presetAttributify(), + presetIcons(), + presetTypography(), + presetWebFonts({ + fonts: { + // ... + }, + }), + ], + transformers: [transformerDirectives(), transformerVariantGroup()], +});