From 963a09b2d036001f5b756789570e9b4a1b9dd8ab Mon Sep 17 00:00:00 2001 From: Akis Date: Mon, 8 Aug 2022 19:01:34 +0300 Subject: [PATCH] add more uno presets --- uno.config.ts | 14 -------------- unocss.config.ts | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 14 deletions(-) delete mode 100644 uno.config.ts create mode 100644 unocss.config.ts diff --git a/uno.config.ts b/uno.config.ts deleted file mode 100644 index dfecc53..0000000 --- a/uno.config.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { - defineConfig, - presetIcons -} from "unocss"; - -import { extractorSvelte } from "unocss"; - -export default defineConfig({ - extractors: [extractorSvelte], - - presets: [ - presetIcons() - ] -}); \ No newline at end of file diff --git a/unocss.config.ts b/unocss.config.ts new file mode 100644 index 0000000..abb3928 --- /dev/null +++ b/unocss.config.ts @@ -0,0 +1,24 @@ +import { + defineConfig, + presetIcons, + presetTypography, + transformerVariantGroup, + transformerDirectives, + presetWind +} from "unocss"; + +import { extractorSvelte } from "unocss"; + +export default defineConfig({ + extractors: [extractorSvelte], + + presets: [ + presetIcons(), + presetTypography(), + presetWind({ + dark: "class" + }) + ], + + transformers: [transformerVariantGroup(), transformerDirectives()] +}); \ No newline at end of file