5 Star 13 Fork 5

Gitee 极速下载/Handle

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/antfu/handle
克隆/下载
unocss.config.ts 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
antfu 提交于 2022-03-08 04:59 . refactor: move tools to package (#50)
import type { Theme } from '@unocss/preset-mini'
import { defineConfig, presetAttributify, presetIcons, presetUno } from 'unocss'
export default defineConfig({
shortcuts: [
{
'btn': 'px-4 py-1 rounded inline-block bg-primary text-white cursor-pointer tracking-wide op90 hover:op100 disabled:cursor-default disabled:bg-gray-600 disabled:!op50 disabled:pointer-events-none',
'icon-btn': 'text-1.2em cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100 hover:text-primary disabled:pointer-events-none',
'square-btn': 'flex flex-gap-2 items-center border border-base px2 py1 relative !outline-none',
'square-btn-mark': 'absolute h-2 w-2 bg-primary -right-0.2rem -top-0.2rem',
'bg-base': 'bg-white dark:bg-[#121212]',
'bg-overlay': 'bg-[#eee]:50 dark:bg-[#222]:50',
'bg-header': 'bg-gray-500:5',
'bg-active': 'bg-gray-500:8',
'bg-hover': 'bg-gray-500:20',
'border-base': 'border-gray-400:10',
'tab-button': 'font-light op50 hover:op80 h-full px-4',
'tab-button-active': 'op100 bg-gray-500:10',
},
[/^(flex|grid)-center/g, () => 'justify-center items-center'],
[/^(flex|grid)-x-center/g, () => 'justify-center'],
[/^(flex|grid)-y-center/g, () => 'items-center'],
],
rules: [
['max-h-screen', { 'max-height': 'calc(var(--vh, 1vh) * 100)' }],
['h-screen', { height: 'calc(var(--vh, 1vh) * 100)' }],
],
theme: <Theme>{
colors: {
'ok': 'var(--c-ok)',
'primary': 'var(--c-primary)',
'primary-deep': 'var(--c-primary-deep)',
'mis': 'var(--c-mis)',
},
},
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
}),
],
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/mirrors/Handle.git
git@gitee.com:mirrors/Handle.git
mirrors
Handle
Handle
main

搜索帮助