From 9140827cd79bc61e22185ef267470c0bc7bae60e Mon Sep 17 00:00:00 2001 From: Litrix2 Date: Wed, 18 Dec 2024 20:14:45 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20chore:=20=E6=B7=BB=E5=8A=A0UnoCS?= =?UTF-8?q?S=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + uno.config.ts | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 uno.config.ts diff --git a/package.json b/package.json index 988762a..bcb80f8 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "sass": "^1.82.0", "terser": "^5.37.0", "typescript": "^5.7.2", + "unocss": "^0.65.1", "unplugin-auto-import": "^0.17.8", "unplugin-icons": "^0.18.5", "unplugin-vue-components": "^0.26.0", diff --git a/uno.config.ts b/uno.config.ts new file mode 100644 index 0000000..c86836d --- /dev/null +++ b/uno.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'unocss'; +export default defineConfig({ + rules: [ + [ + 'absolute-self-center', + { + position: 'absolute', + top: '50%', + left: '50%', + transform: 'translate(-50%, -50%)', + }, + ], + ], +});