1 Star 0 Fork 162

Admin/lowflow-design

forked from 蔡晓峰/lowflow-design 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
unocss.config.ts 795 Bytes
一键复制 编辑 原始数据 按行查看 历史
蔡晓峰 提交于 2024-05-07 22:35 . 重构版
import {
defineConfig,
presetAttributify,
presetIcons,
presetUno,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig({
presets: [
presetUno({ dark: 'class' }),
presetAttributify(),
presetIcons({
scale: 1.2,
warn: true,
}),
],
// 自定义组合样式
shortcuts: {
bgc: 'flex red',
'flex-col-center': 'flex-center flex-col',
'flex-col': 'flex flex-col',
'flex-items-center': 'flex items-center',
'flex-center': 'flex-items-center justify-center',
'flex-between': 'flex-items-center justify-between',
'flex-space': 'flex-items-center flex-justify-between',
'wh-full': 'w-full h-full',
},
transformers: [
transformerDirectives(),
transformerVariantGroup(),
]
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/changsha-mingxi_0/lowflow-design.git
[email protected]:changsha-mingxi_0/lowflow-design.git
changsha-mingxi_0
lowflow-design
lowflow-design
main

搜索帮助