import presetWeapp from 'unocss-preset-weapp' import { extractorAttributify, transformerClass } from 'unocss-preset-weapp/transformer' import presetIcons from '@unocss/preset-icons' const { presetWeappAttributify, transformerAttributify } = extractorAttributify() export default { presets: [ // https://github.com/MellowCo/unocss-preset-weapp presetWeapp(), // attributify autocomplete presetWeappAttributify(), presetIcons({ collections: { solar: () => import('@iconify-json/solar/icons.json').then(i => i.default), 'material-symbols': () => import('@iconify-json/material-symbols/icons.json').then(i => i.default) } }) ], shortcuts: [ { 'border-base': 'border border-gray-500_10', center: 'flex justify-center items-center' } ], transformers: [ // https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerAttributify transformerAttributify(), // https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerClass transformerClass() ] }