代码拉取完成,页面将自动刷新
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,
}),
],
})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。