thehrz.net/unocss.config.ts
2023-08-17 21:22:19 +08:00

32 lines
639 B
TypeScript

import {
defineConfig,
presetAttributify,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from "unocss"
export default defineConfig({
presets: [
presetUno(),
presetAttributify(),
presetTypography(),
// presetWebFonts({
// fonts: {
// sans: "DM Sans",
// serif: "DM Serif Display",
// mono: "DM Mono",
// },
// }),
presetWebFonts({
fonts: {
sans: "Inter:100,200,400,700,800",
mono: "IBM Plex Mono",
},
}),
],
transformers: [transformerDirectives(), transformerVariantGroup()],
})