feat: 引入unocss

This commit is contained in:
lanyeeee
2025-07-08 20:55:19 +08:00
parent 06b01dcbf8
commit 81a98dc54a
6 changed files with 578 additions and 38 deletions

33
uno.config.ts Normal file
View File

@@ -0,0 +1,33 @@
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig({
shortcuts: [
// ...
],
theme: {
colors: {
// ...
},
},
presets: [
presetUno(),
presetAttributify(),
presetIcons(),
presetTypography(),
presetWebFonts({
fonts: {
// ...
},
}),
],
transformers: [transformerDirectives(), transformerVariantGroup()],
})