1 Star 0 Fork 0

Tenny/naive-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
uno.config.js 781 Bytes
一键复制 编辑 原始数据 按行查看 历史
Tenny 提交于 2023-12-24 12:24 +08:00 . Signed-off-by: Tenny joel.shu@qq.com
import { defineConfig, presetAttributify, presetUno } from 'unocss';
export default defineConfig({
content: {
pipeline: {
exclude: [
'node_modules',
'.git',
'.github',
'.husky',
'.vscode',
'build',
'dist',
'mock',
'public',
'./stats.html',
],
},
},
shortcuts: [['f-c-c', 'flex justify-center items-center']],
presets: [presetUno(), presetAttributify()],
rules: [
[/^bc-(.+)$/, ([, color]) => ({ 'border-color': `#${color}` })],
[/^bc1v-(.+)$/, ([, cssvar]) => ({ border: `1px solid var(--${cssvar})` })],
[/^bc1-(.+)$/, ([, color]) => ({ border: `1px solid #${color}` })],
],
theme: {
colors: {
primary: 'var(--primary-color)',
},
},
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/towardly/naive-admin.git
git@gitee.com:towardly/naive-admin.git
towardly
naive-admin
naive-admin
master

搜索帮助