import fs from 'node:fs/promises' import { defineConfig, presetAttributify, presetIcons, presetTypography, presetUno, presetWebFonts, transformerDirectives, transformerVariantGroup, } from 'unocss' export default defineConfig({ shortcuts: [], presets: [ presetUno(), presetAttributify(), presetIcons({ scale: 1.2, warn: true, collections: { 'nl-logo': () => fs.readFile('./public/favicon.svg', 'utf-8'), }, }), presetTypography(), presetWebFonts({ fonts: { sans: 'DM Sans', serif: 'DM Serif Display', mono: 'DM Mono', }, }), ], transformers: [ transformerDirectives(), transformerVariantGroup(), ], safelist: 'prose m-auto text-left'.split(' '), })