Files
rui-docs/admin-ui/uno.config.ts
T
vifo 82a19101a8 chore: 初始化前端仓库并迁移 admin-ui
- 创建 rui-frontend 前端仓库
- 迁移 admin-ui 管理后台
- 创建 cashier-mobile 和 customer-mobile 占位项目
- 配置 pnpm workspace
2026-06-04 05:14:11 +08:00

22 lines
561 B
TypeScript

import { defineConfig, presetUno, presetAttributify, presetIcons } from 'unocss'
export default defineConfig({
presets: [
presetUno(),
presetAttributify(),
presetIcons(),
],
shortcuts: {
'btn': 'px-4 py-2 rounded cursor-pointer inline-flex items-center gap-2',
'btn-primary': 'btn bg-blue-500 text-white hover:bg-blue-600',
'btn-danger': 'btn bg-red-500 text-white hover:bg-red-600',
'card': 'bg-white rounded-lg shadow p-4',
'page-container': 'p-4',
},
theme: {
colors: {
primary: '#409eff',
},
},
})