Merge pull request #53 from ProjectSegfault/unocss-presets

add more uno presets
This commit is contained in:
Akis 2022-08-08 19:07:49 +03:00 committed by GitHub
commit 185f1409af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 14 deletions

View File

@ -1,14 +0,0 @@
import {
defineConfig,
presetIcons
} from "unocss";
import { extractorSvelte } from "unocss";
export default defineConfig({
extractors: [extractorSvelte],
presets: [
presetIcons()
]
});

24
unocss.config.ts Normal file
View File

@ -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()]
});