1 Star 0 Fork 91

jerry/Fantastic-startkit

forked from Hooray/Fantastic-startkit 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
uno.config.ts 766 Bytes
一键复制 编辑 原始数据 按行查看 历史
Hooray 提交于 2023-09-28 13:45 . 增加 unocss 支持
import type { Theme } from 'unocss/preset-uno'
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
transformerCompileClass,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig<Theme>({
shortcuts: [
{
'flex-center': 'flex justify-center items-center',
'flex-col-center': 'flex flex-col justify-center items-center',
},
],
presets: [
presetUno(),
presetAttributify(),
presetIcons({
extraProperties: {
'display': 'inline-block',
'vertical-align': 'middle',
},
}),
presetTypography(),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
transformerCompileClass(),
],
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jerry_hds/fantastic-startkit.git
[email protected]:jerry_hds/fantastic-startkit.git
jerry_hds
fantastic-startkit
Fantastic-startkit
main

搜索帮助