123456789101112131415161718192021222324252627282930 |
- import {
- transformerVariantGroup,
- transformerDirectives,
- presetAttributify,
- defineConfig,
- presetMini,
- presetUno,
- } from 'unocss';
- // https://github.com/unocss/unocss#readme
- export default defineConfig({
- presets: [
- presetMini({ dark: 'class' }),
- // https://unocss.dev/presets/attributify#properties-conflicts
- presetAttributify({ prefix: 'un-', prefixedOnly: true }),
- presetUno(),
- ],
- transformers: [transformerDirectives(), transformerVariantGroup()],
- shortcuts: {
- 'wh-full': 'w-full h-full',
- 'flex-ac': 'flex justify-around items-center',
- 'flex-bc': 'flex justify-between items-center',
- },
- theme: {
- colors: {
- grey: '#797979',
- blue: '#3078f0',
- },
- },
- });
|