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%)', + }, + ], + ], +});