pupbrained-xyz-nuxt/uno.config.ts

28 lines
753 B
TypeScript
Raw Normal View History

2024-08-25 20:36:40 -04:00
import { defineConfig, type PresetFactory } from 'unocss'
import {
presetAttributify,
presetIcons,
presetTypography,
presetUno,
transformerCompileClass,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
import type { Theme } from 'unocss/preset-uno'
import presetTheme from 'unocss-preset-theme'
2024-08-26 23:24:28 -04:00
import { themesWithoutName } from '~/types/themes'
2024-08-25 20:36:40 -04:00
export default defineConfig<Theme>({
2024-08-26 23:24:28 -04:00
theme: themesWithoutName['catppuccin-mocha'],
2024-08-25 20:36:40 -04:00
presets: [
presetUno(),
presetAttributify(),
presetTypography(),
presetIcons(),
presetTheme<Theme>({
2024-08-26 23:24:28 -04:00
theme: themesWithoutName,
2024-08-25 20:36:40 -04:00
}) as PresetFactory<Theme>,
],
transformers: [transformerDirectives(), transformerVariantGroup(), transformerCompileClass()],
})