1 Star 0 Fork 7

BaOii/react-admin

forked from ohh/react-admin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
uno.config.ts 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
王石鹏 提交于 2024-08-08 13:20 . feat(projects): init project
import { defineConfig } from '@unocss/vite';
import transformerDirectives from '@unocss/transformer-directives';
import transformerVariantGroup from '@unocss/transformer-variant-group';
import presetUno from '@unocss/preset-uno';
import type { Theme } from '@unocss/preset-uno';
import { presetSoybeanAdmin } from '@sa/uno-preset';
import { themeVars } from './src/theme/vars';
export default defineConfig<Theme>({
content: {
pipeline: {
exclude: ['node_modules', 'dist']
}
},
theme: {
...themeVars,
fontSize: {
'icon-xs': '0.875rem',
'icon-small': '1rem',
icon: '1.125rem',
'icon-large': '1.5rem',
'icon-xl': '2rem'
}
},
rules: [
[
/^h-calc\((.*)\)$/, // 匹配 h-clac(xxx) 的正则表达式
([, d]) => ({ height: `calc(${d})px` }) // 生成对应的 CSS 样式
]
],
shortcuts: {
'card-wrapper': 'rd-8px shadow-sm'
},
transformers: [transformerDirectives(), transformerVariantGroup()],
presets: [presetUno({ dark: 'class' }), presetSoybeanAdmin()]
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/baoii/react-admin.git
git@gitee.com:baoii/react-admin.git
baoii
react-admin
react-admin
master

搜索帮助