1 Star 0 Fork 19

vorne/傲来操作系统训练营报告网站

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
uno.config.ts 1.57 KB
一键复制 编辑 原始数据 按行查看 历史
Burgess Chang 提交于 2024-06-13 09:42 . chore: initial this project
import {
defineConfig,
presetUno,
presetAttributify,
presetIcons,
} from "unocss";
import transformerDirectives from "@unocss/transformer-directives";
import { THEME_CONFIG } from "./src/theme.config";
const {socials, themeStyle} = THEME_CONFIG;
let foreground = "#2e405b";
let background = "#ffffff";
if(THEME_CONFIG.themeStyle === 'dark') {
foreground = "#ffffff";
background = "#2e405b";
}
export default defineConfig({
presets: [
presetUno({
dark: themeStyle === 'auto' ? 'media' : 'class',
}),
presetAttributify({ nonValuedAttribute: true }),
presetIcons({
scale: 1.2,
warn: true,
}),
],
theme: {
colors: {
foreground,
background
},
fontFamily: {
sans: '"Source Sans Pro","Roboto","Helvetica","Helvetica Neue","Source Han Sans SC","Source Han Sans TC","PingFang SC","PingFang HK","PingFang TC",sans-serif',
serif: '"HiraMinProN-W6","Source Han Serif CN","Source Han Serif SC","Source Han Serif TC",serif',
},
animation: {
keyframes: {
"fadein-down":
"{from {opacity: 0.1;transform: translateY(-20px);}to {opacity: 1;transform: translateY(0);}}",
"fadein-left":
"{from {opacity: 0.1;transform: translateX(20px);}to {opacity: 1;transform: translateX(0);}}",
},
},
},
shortcuts: [
['icon', 'inline-block '],
['post-title', 'text-5 font-bold lh-7.5 m-0'],
],
transformers: [
transformerDirectives(),
],
safelist: [
...socials.map((social) => `i-mdi-${social.name}`),
'i-mdi-content-copy',
'i-mdi-check',
],
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/vorne/pages.git
git@gitee.com:vorne/pages.git
vorne
pages
傲来操作系统训练营报告网站
main

搜索帮助