代码拉取完成,页面将自动刷新
// uno.config.ts
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from "unocss"
export default defineConfig({
shortcuts: [
["wh-full", "w-full h-full"],
["f-c-c", "flex justify-center items-center"],
["j-b", "flex justify-between"],
["i-c", "items-center"],
["flex-col", "flex flex-col"],
["card-border", "border border-solid border-light_border dark:border-dark_border"],
["auto-bg", "bg-white dark:bg-dark"],
["auto-bg-hover", "hover:bg-#eaf0f1 hover:dark:bg-#1b2429"],
["auto-bg-highlight", "bg-#eaf0f1 dark:bg-#1b2429"],
["text-highlight", "rounded-4 px-8 py-2 auto-bg-highlight"],
],
theme: {
colors: {
// ...
},
},
presets: [
presetUno(),
presetAttributify(),
presetIcons(),
presetTypography(),
presetWebFonts({
fonts: {
// ...
},
}),
],
transformers: [transformerDirectives(), transformerVariantGroup()],
})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。