pupbrained-xyz-nuxt/uno.config.ts
2024-08-26 23:24:28 -04:00

28 lines
753 B
TypeScript

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'
import { themesWithoutName } from '~/types/themes'
export default defineConfig<Theme>({
theme: themesWithoutName['catppuccin-mocha'],
presets: [
presetUno(),
presetAttributify(),
presetTypography(),
presetIcons(),
presetTheme<Theme>({
theme: themesWithoutName,
}) as PresetFactory<Theme>,
],
transformers: [transformerDirectives(), transformerVariantGroup(), transformerCompileClass()],
})