You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.2 KiB
TypeScript

2 years ago
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.0,
2 years ago
warn: true,
cdn: 'https://esm.sh/',
2 years ago
collections: {
'nl-logo': () => fs.readFile('./public/favicon.svg', 'utf-8'),
'carbon': () => import('@iconify-json/carbon/icons.json').then(i => i.default),
'ant-design': () => import('@iconify-json/ant-design/icons.json').then(i => i.default),
'emojione': () => import('@iconify-json/emojione/icons.json').then(i => i.default),
'gridicons': () => import('@iconify-json/gridicons/icons.json').then(i => i.default),
2 years ago
},
}),
presetTypography(),
presetWebFonts({
fonts: {
sans: 'DM Sans',
serif: 'DM Serif Display',
mono: 'DM Mono',
},
}),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
safelist: 'prose m-auto text-left i-carbon-home i-carbon-3d-cursor'.split(' '),
2 years ago
})