elk/unocss.config.ts

43 lines
734 B
TypeScript
Raw Normal View History

2022-11-13 05:34:43 +00:00
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig({
shortcuts: [
],
presets: [
2022-11-14 02:56:48 +00:00
presetUno({
attributifyPseudo: true,
}),
2022-11-13 05:34:43 +00:00
presetAttributify(),
presetIcons({
scale: 1.2,
}),
presetTypography(),
presetWebFonts({
fonts: {
sans: 'DM Sans',
serif: 'DM Serif Display',
mono: 'DM Mono',
},
}),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
2022-11-13 16:05:32 +00:00
theme: {
colors: {
primary: 'var(--color-primary)',
2022-11-14 14:54:30 +00:00
border: 'var(--color-border)',
2022-11-13 16:05:32 +00:00
},
},
2022-11-13 05:34:43 +00:00
})